mirror of
https://github.com/LukeHagar/pypistats.dev.git
synced 2025-12-08 20:57:49 +00:00
api etiquette and 503 routing if necessary to disable api in the future
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user