-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-135615: Rephrase HTTP status codes overview #135625
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to note that 418 is an exception than to remove this useful reference.
A
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
I have made the requested changes; please review again |
Thanks for making the requested changes! @AA-Turner: please review the changes made to this pull request. |
Gentle ping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the reminder.
Revisiting the substance of this change, I'm on the fence. The website lists 418 as "418 (Unused) [RFC9110, Section 15.5.19]". This contrasts to other ranges, which are listed as "Unassigned". The RFC goes on to note that "the 418 status code is reserved in the IANA HTTP Status Code Registry".
If we do go ahead with this change, I've suggested a rewording that I hope clarifies matters.
A
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Oops typo in commit msg |
I have made the requested changes; please review again |
Thanks for making the requested changes! @AA-Turner: please review the changes made to this pull request. |
The HTTP module supports status codes that are unregistered/unofficial. Take http status code
418: I'm a teapot
Due to the save418 movement (https://save418.com/), python decided to preserve http code 418 in its codebase, but the documentation contradicts itself.In the documentation, right above the table of status codes supported by the http library we have this:
This is factually incorrect, because code 418, (among others) is not official, and this PR lists 418 as an exception
Fix #135615
📚 Documentation preview 📚: https://cpython-previews--135625.org.readthedocs.build/