pub async fn error_mapping_middleware(request: Request, next: Next) -> ResponseExpand description
Middleware function that provides centralized error mapping
This middleware can be applied to routes to automatically extract request context
and provide it to error handlers. The actual error conversion happens in the
IntoProblem trait implementations and map_error_to_problem function.