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
Unused status_code
field in ValidationError
?
#85
Labels
Comments
This is a known bug. Since marshmallow catches I welcome any help and ideas on how to address this. |
sloria
added a commit
to marshmallow-code/marshmallow
that referenced
this issue
Apr 4, 2016
This is to address issues like marshmallow-code/webargs#85, where additional arguments may be passed to ValidationError. These additional arguments should be passed when marshmallow reraises ValidationErrors
@ParthGandhi any thoughts on marshmallow-code/marshmallow#996? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to figure out how to return specific status codes from validation errors. Looks like it always returns a
422
, ignoring whats specified in theValidationError
.Then:
curl -v http://localhost:5000?test_field=hello
returns422 Unprocessable Entity
instead of500 Internal Server Error
.The text was updated successfully, but these errors were encountered: