Skip to main content

not_found_fallback

Function not_found_fallback 

Source
pub async fn not_found_fallback() -> HttpError
Expand description

Default unmatched-route handler for Nidus HTTP applications.

Install this with axum::Router::fallback when missing routes should produce the same Nidus JSON error shape as handler-created 404 responses. crate::middleware::ApiDefaults::production installs it by default.