Add fallback route

This commit is contained in:
Martin Lensment 2015-01-16 16:51:15 +02:00
parent 8307cde4ab
commit 2b22ba18f0
3 changed files with 8 additions and 0 deletions

View file

@ -3,4 +3,9 @@ class Epp::ErrorsController < EppController
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