Is there a way in Falcon framework to respond with HTTP 500 status on any unspecific exception that is not handled in resource handler? I've tried to add following handler for Exception:
api.add_error_handler(Exception,
handler=lambda e,
*_: exec('raise falcon.HTTPInternalServerError("Internal Server Error", "Some error")'))
But this makes impossible to throw, for example, falcon.HTTPNotFound
— it is handled by the handler above and I receive 500 instead of 404.