Skip to main content

not_found

Function not_found 

Source
pub async fn not_found(request_uri: Uri, method: Method) -> HttpError
Expand description

Fallback handler that returns RFC 7807 Problem JSON for all unmatched routes.

Uses only Uri::path (not the full URI) to avoid leaking sensitive query parameters in error responses.