-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
Add missing description for codes in http.HTTPStatus
#127089
Comments
I think it's good for completeness but is it possible for the strings to match the RFC if any? |
I have not seen such RFC and I think that the description was created by the developers. but I can try to search for the necessary RFCs and if I don't find them I will inform you |
IIRC those codes are described in rfc2616 (and other rfcs that supersede that one, but those specific rfcs can be found on that one). If there is no short description, let's just use their name. |
I didn't find any mentions of the description in the RFCs that were specified in this file (there are only phrases): Lines 7 to 25 in 1629d2c
I found only commit which was made in 2014 and where the description field was added. But there are no explanations: |
Bug report
Bug description:
We have Enum of
62
HTTP status codes. They stores inhttp.HTTPStatus
class and14
of them don't have description field.I think it is not-obvious behavior when calling the description field, one code returns text and another returns an empty string:
Path file:
./Lib/http/__init__.py
List of codes with empty description:
I am ready to send PR
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
http.HTTPStatus
#127100The text was updated successfully, but these errors were encountered: