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

Consider adding static badRequest() builder method to ResponseEntity [SPR-12112] #16728

spring-projects-issues opened this issue Aug 21, 2014 · 1 comment
in: web type: enhancement


Copy link

@spring-projects-issues spring-projects-issues commented Aug 21, 2014

Marcel Overdijk opened SPR-12112 and commented

Just like adding notFound() via #16686, a badRequest() static method would be useful for ResponseEntity.

ok(), accepted(), created(), noContent(), notFound(), badRequest() are the most used responses I think.

Affects: 4.1 RC2

Issue Links:

  • #16374 Provide builders for HttpEntity and ResponseEntity
  • #16686 Consider adding static notFound() builder method to ResponseEntity
  • #17120 Please add static unprocessableEntity() builder method to ResponseEntity

Referenced from: commits 439ce4a, dbe337f

Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Aug 21, 2014

Rossen Stoyanchev commented

Seems reasonable.

/cc Arjen Poutsma

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
in: web type: enhancement
None yet

No branches or pull requests

2 participants