Skip to main content

Module fallback

Module fallback 

Source
Expand description

Framework-level fallback handlers for unmatched routes.

These handlers ensure that 404 and 405 responses return JSON bodies consistent with AroError responses, rather than Axum’s default plain-text responses.

App::build wires fallback_404 and fallback_405 by default. They remain public for manual axum::Router composition when not using the app builder.

Functions§

fallback_404
Fallback handler for routes that do not match any registered route.
fallback_405
Handler for method-not-allowed responses.