setup views, templates, plots

This commit is contained in:
crflynn
2018-04-05 15:57:08 -04:00
parent 741e385e1e
commit 03995ebf5a
20 changed files with 881 additions and 32 deletions

View File

@@ -7,22 +7,22 @@ blueprint = Blueprint('error', __name__, template_folder='templates')
@blueprint.app_errorhandler(400)
def handle_400(err):
"""Return 400."""
return "400"
return "400", 400
@blueprint.app_errorhandler(401)
def handle_401(err):
"""Return 401."""
return "401"
return "401", 401
@blueprint.app_errorhandler(404)
def handle_404(err):
"""Return 404."""
return "404"
return "404", 404
@blueprint.app_errorhandler(500)
def handle_500(err):
"""Return 500."""
return "500"
return "500", 500