mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
13 lines
378 B
Ruby
13 lines
378 B
Ruby
class Epp::ErrorsController < EppController
|
|
skip_authorization_check # TODO: remove it
|
|
|
|
def error
|
|
epp_errors << { code: params[:code], msg: params[:msg] }
|
|
render_epp_response '/epp/error'
|
|
end
|
|
|
|
def not_found
|
|
epp_errors << { code: 2400, msg: t('could_not_determine_object_type_check_xml_format_and_namespaces') }
|
|
render_epp_response '/epp/error'
|
|
end
|
|
end
|