-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HandlerError with body data #542
Comments
It is not possible to attach any data except for the status code to a |
Thanks, reading through #529 gave me a better picture on the design choice of gotham here. |
Maybe this should be done different, but I would assume that I can additionally to modify the status_code of the
HandlerError
also add body data.My use-case would be e.g.: parsing JSON data from the request and if there is a syntax error return the error message from serde(as body) with an UNPROCESSABLE_ENTITY status code.
The text was updated successfully, but these errors were encountered: