Expand description
§Error Handling Layer
This layer intercepts errors returned by the inner service and converts them into valid HTTP responses using a configured ErrorHandler.
This is crucial for returning user-friendly error messages (e.g., JSON) instead of raw server errors or dropped connections.
Structs§
- Error
Layer - A Tower middleware that handles errors from the inner service.