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 (Unused) 306 HTTP Status Code #1162

Merged
merged 1 commit into from Jan 8, 2020
Merged

Added (Unused) 306 HTTP Status Code #1162

merged 1 commit into from Jan 8, 2020

Conversation

snood1205
Copy link
Contributor

Per RFC 7231 Section 6.4.6, I added Status Code 306. While it is unused, it is a reserved status code and unlike the other status codes that are not in this document, this was explicitly noted as unused and not unassigned making it a possible safeguard against people trying to use it for custom status codes (much like nginx does with 499 and 599).

@matthewd
Copy link
Contributor

Hi!

I don't see what we gain by adding this. Could you expand on why you think we should?

@snood1205
Copy link
Contributor Author

@matthewd the thought was that because it was denoted differently in the RFC from all of those that are unassigned, and that 306 is the only (unused) status code, that it might be useful to have there.

@ioquatix ioquatix merged commit 7d14bac into rack:master Jan 8, 2020
@ioquatix
Copy link
Member

ioquatix commented Jan 8, 2020

Checked RFC, it's valid, and it's marked as literally "(Unused)" in exactly the same way all the other status codes are labeled, so for consistency and the other reasons stated above, merged.

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

3 participants