Skip to content

feat: Add additional HTTP status codes (203, 421, 422, 426)#1319

Open
halissontorres wants to merge 1 commit into
jakartaee:mainfrom
halissontorres:feature/rfc-9110-status-codes
Open

feat: Add additional HTTP status codes (203, 421, 422, 426)#1319
halissontorres wants to merge 1 commit into
jakartaee:mainfrom
halissontorres:feature/rfc-9110-status-codes

Conversation

@halissontorres

Copy link
Copy Markdown

Add RFC 9110 missing HTTP status codes

Implements #1318

Description

This PR adds missing HTTP status codes from RFC 9110 to the Jakarta EE REST Response.Status enum to ensure full compliance with the current HTTP specification.

Changes

Added the following status codes to Response.Status:

  • 203 NON_AUTHORITATIVE_INFORMATION - "Non-Authoritative Information"
  • 421 MISDIRECTED_REQUEST - "Misdirected Request"
  • 422 UNPROCESSABLE_CONTENT - "Unprocessable Content"
  • 426 UPGRADE_REQUIRED - "Upgrade Required"

Implementation Details

  • Added enum constants following the existing naming pattern
  • Added appropriate JavaDoc documentation for each status code
  • Included proper HTTP status code numbers and reason phrases per RFC 9110

References

@halissontorres halissontorres force-pushed the feature/rfc-9110-status-codes branch from 1b112d2 to b3e4019 Compare July 1, 2025 21:35
@halissontorres halissontorres force-pushed the feature/rfc-9110-status-codes branch from b3e4019 to 3de1c66 Compare July 1, 2025 21:40
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