Skip to content
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

fix: 422 HTTP status code for RequestValidationError #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tmeckel
Copy link

@tmeckel tmeckel commented Sep 2, 2022

To align the behavior of this middleware with FastAPI the status code 400 has been changed to 422 when wrapping a RequestValidationError.

image

* aligned HTTP status code for RequestValidationError with 422 Code of FastApi
* replaced numbers of HTTP status codes with constants from starlette
@tmeckel
Copy link
Author

tmeckel commented Oct 17, 2022

@edaniszewski Any chance to get the PR merged? Or is the project dead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant