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

Return 422 instead of 400 when validation fails #240

Open
evillemez opened this issue Oct 8, 2014 · 1 comment
Open

Return 422 instead of 400 when validation fails #240

evillemez opened this issue Oct 8, 2014 · 1 comment

Comments

@evillemez
Copy link
Contributor

422 is more descriptive of what is actually happening when validation fails on an object - the entity is unprocessable. The request its self is still ok, it's just the contents that are bad, so 400 is the wrong code for this scenario.

@gliese1337 Will this cause you any issues if I make this change?

@gliese1337
Copy link

No problems here. I think it is an excellent idea. Always good to have more fine-grained error information.

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

No branches or pull requests

2 participants