api etiquette and 503 routing if necessary to disable api in the future

This commit is contained in:
crflynn
2018-12-12 10:52:43 -05:00
parent 41e79b3818
commit eba371d21e
3 changed files with 22 additions and 0 deletions

View File

@@ -26,3 +26,9 @@ def handle_404(err):
def handle_500(err):
"""Return 500."""
return "500", 500
@blueprint.app_errorhandler(503)
def handle_503(err):
"""Return 500."""
return "503 TEMPORARILY DISABLED", 503