Skip to content

Conversation

shivamgupta29
Copy link

@shivamgupta29 shivamgupta29 commented Sep 13, 2025

Adds the HttpStatus.UNPROCESSABLE_CONTENT enum in alignment with RFC 9110. The previous HttpStatus.UNPROCESSABLE_ENTITY is now marked as deprecated.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

The framework currently only provides HttpStatus.UNPROCESSABLE_ENTITY for the 422 status code. This name is based on the obsolete RFC 4918.

Closes #15624

What is the new behavior?

This PR introduces HttpStatus.UNPROCESSABLE_CONTENT for the 422 status code, aligning the framework with the current RFC 9110 standard. The previous enum, HttpStatus.UNPROCESSABLE_ENTITY, has been marked as @deprecated to maintain backward compatibility while guiding users to the correct, modern standard.

Does this PR introduce a breaking change?

  • Yes
  • No

Adds the HttpStatus.UNPROCESSABLE_CONTENT enum in alignment with RFC 9110. The previous HttpStatus.UNPROCESSABLE_ENTITY is now marked as deprecated.
@coveralls
Copy link

Pull Request Test Coverage Report for Build e477f746-46bc-447a-9c99-453ca022d9d4

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.002%) to 88.736%

Totals Coverage Status
Change from base Build 87823697-4182-4d9a-8625-1cc37cfa7f74: 0.002%
Covered Lines: 7271
Relevant Lines: 8194

💛 - Coveralls

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.

RFC 9110: HttpStatus.UNPROCESSABLE_ENTITY should be HttpStatus.UNPROCESSABLE_CONTENT
2 participants