Is there a way to add a global catch-all error handler in which I can change the response to a generic JSON response?
I can\'t use the got_request_exception
got_request_exception
If the Exceptions doesn't work, you may try app.register_error_handler (or use app.errorhandler in a non-decorator way)
app.register_error_handler
app.errorhandler
Source: https://github.com/pallets/flask/issues/1837