Skip to main content

not_found

Function not_found 

Source
async fn not_found() -> StatusCode
Expand description

Unauthenticated 404 for non-API paths when the SPA fallback isn’t mounted (ui_enabled: false, or a binary built without the ui feature). See the comment in build_router for why this must be set explicitly rather than left as the router’s implicit default.