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

added unprocessableEntity() to ResponseEntity #705

Closed
wants to merge 1 commit into from
Closed

added unprocessableEntity() to ResponseEntity #705

wants to merge 1 commit into from

Conversation

marceloverdijk
Copy link

https://jira.spring.io/browse/SPR-12515

Lately I'm using http 422 Unprocessable Entity for returning validation errors. instead of a 400. It seems many public api's are changing to this (like github api).
So please add a static unprocessableEntity() builder method to ResponseEntity to have a shortcut for returning this http code.
This just like earlier request like SPR-12070 and SPR-12112.

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.

None yet

2 participants