mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Added a 400 error handler
This commit is contained in:
@@ -529,6 +529,10 @@ def register_errorhandlers(application): # noqa (C901 too complex)
|
||||
error_code = 500
|
||||
return _error_response(error_code)
|
||||
|
||||
@application.errorhandler(400)
|
||||
def handle_400(error):
|
||||
return _error_response(400)
|
||||
|
||||
@application.errorhandler(410)
|
||||
def handle_gone(error):
|
||||
return _error_response(410)
|
||||
|
||||
Reference in New Issue
Block a user