Expand description
Centralized error mapping for Axum
This module provides utilities for automatically converting all framework and module errors into consistent RFC 9457 Problem+JSON responses, eliminating per-route boilerplate.
Traits§
- Into
Problem - Helper trait for converting errors to Problem responses with context
Functions§
- error_
mapping_ middleware - Middleware function that provides centralized error mapping
- extract_
trace_ id - Extract trace ID from headers or generate one
- map_
error_ to_ problem - Centralized error mapping function