flask_parameters.exceptions.register_error_handlers

flask_parameters.exceptions.register_error_handlers(app: Flask)

Register error handlers on the flask app for the flask_parameters exceptions.

TypeCheckException and ArgsException will both return an HTTP status code of 400 with a JSON response.

Parameters:

app – Flask app to register error handlers on.