Exemple #1
0
def add_html_error_views(app: Flask):
    """"""
    app.InternalServerError_handler_html = handle_500_error
    app.HttpException_handler_html = handle_generic_http_exception
    app.BadRequest_handler_html = handle_bad_request
    app.NotFound_handler_html = handle_not_found
    app.TemplateNotFound_handler_html = handle_not_found
    app.unauthenticated_handler_html = unauthenticated_handler
    app.unauthorized_handler_html = unauthorized_handler