Loading...
Loading...
Register the process-wide error handler. Call this once, early (typically from src/app.rs main()); a later call is ignored (the first registration wins). The handler runs on every error thrown by a request handler. Return Some(response) to send a custom HTTP response, or None to fall back to Ossido's default error page / JSON. See the module docs.
Register once, early (typically from src/app.rs main()), before the server starts - the first registration wins. The closure runs for every error thrown by a handler or action.
Report every error, then fall back to the default error page:
Return Some(response) to override the default 500 with your own: