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

Enhance Status.java with Additional Standard HTTP Status Codes #8444

Merged
merged 4 commits into from Mar 6, 2024

Conversation

bjcoombs
Copy link
Contributor

@bjcoombs bjcoombs commented Mar 1, 2024

Resolves #8443

This PR extends the Status.java class within Helidon to include a series of standard HTTP status codes that were previously absent. These additions aim to align Helidon with web standards, facilitating developers to utilize a broader spectrum of HTTP responses directly within their applications, especially for those leveraging WebDAV or requiring precise network error management.

Newly Added Status Codes:

Key Enhancements:

  • Each status code addition is accompanied by JavaDoc comments that provide direct links to their defining RFC or documentation, ensuring clarity and ease of reference.
  • Updated @since annotation to 4.0.6 for all newly added status codes, marking their introduction in this version.

Targeted Environment:

  • Helidon Version: 4.0.6
  • JDK Version: 21
  • Applicable across all operating systems
  • Helidon SE/MP

Motivation:
The inclusion of these status codes fills existing gaps in Helidon's HTTP status code support, offering developers a more versatile toolkit for HTTP response management. This enhancement is essential for ensuring that applications can handle a wider range of web protocols and standards, particularly benefiting those that integrate with WebDAV or require specific network authentication handling.

Impact:
This contribution introduces no breaking changes. Instead, it broadens Helidon's adherence to established web standards and enriches the developer's toolkit for handling diverse HTTP scenarios out of the box.

- Updated copyright notice at the top of Status.java to reflect the current year.
- Added HTTP status codes 203, 207, 507, 508, 510, and 511 with documentation links to respective RFCs.
- Annotated newly introduced status codes with `@since 4.0.5` to mark their addition in this version.
- Updated copyright notice at the top of Status.java to reflect the current year.
- Added HTTP status codes 203, 207, 507, 508, 510, and 511 with documentation links to respective RFCs.
- Annotated newly introduced status codes with `@since 4.0.5` to mark their addition in this version.
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Mar 1, 2024
@tomas-langer tomas-langer merged commit 2547e21 into helidon-io:main Mar 6, 2024
12 checks passed
hrstoyanov pushed a commit to hrstoyanov/helidon that referenced this pull request Mar 12, 2024
…on-io#8444)

* Update copyright and add new HTTP status codes

- Updated copyright notice at the top of Status.java to reflect the current year.
- Added HTTP status codes 203, 207, 507, 508, 510, and 511 with documentation links to respective RFCs.
- Annotated newly introduced status codes with `@since 4.0.6` to mark their addition in this version.
hrstoyanov pushed a commit to hrstoyanov/helidon that referenced this pull request Mar 12, 2024
…on-io#8444)

* Update copyright and add new HTTP status codes

- Updated copyright notice at the top of Status.java to reflect the current year.
- Added HTTP status codes 203, 207, 507, 508, 510, and 511 with documentation links to respective RFCs.
- Annotated newly introduced status codes with `@since 4.0.6` to mark their addition in this version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x OCA Verified All contributors have signed the Oracle Contributor Agreement. SE webserver
Projects
Backlog
  
Awaiting triage
Development

Successfully merging this pull request may close these issues.

Enhance Status.java with Additional Standard HTTP Status Codes
3 participants