Axum Route Error
A common error response for Axum servers
This exists to encapsulate a number of common patterns when returning errors from Axum routes.
These patterns include ...
- returning errors as JSON objects
- optionally adding data to those error objects
- automatically converting errors raised in the route hander into a standardised error response
- to hold 'public' error messages for the user, and internal errors