Visitar URL original
Update the outdated list of HTTP status codes in the docs · Issue #134835 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20250530141558/https://github.com/python/cpython/issues/134835
Skip to content

Update the outdated list of HTTP status codes in the docs #134835

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

Open
Wulian233 opened this issue May 28, 2025 · 2 comments
Open

Update the outdated list of HTTP status codes in the docs #134835

Wulian233 opened this issue May 28, 2025 · 2 comments
Labels
docs Documentation in the Doc dir

Comments

@Wulian233
Copy link
Contributor

Wulian233 commented May 28, 2025 •

Documentation

In recent years, more missing HTTP status codes have been gradually added to https://github.com/python/cpython/blob/main/Lib%2Fhttp%2F__init__.py#L54, such as 61ac612, #127089 and #102247.

However, there is a list of status codes in the document that has not been updated. If we check the GitHub blame, the last update was 18 years ago!

IMG_20250528_204649.jpg

https://github.com/python/cpython/blob/main/Doc%2Fhowto%2Furllib2.rst#L248-L317

I hope a volunteer can complete it. It's a simple issue

Linked PRs

@Wulian233 Wulian233 added the docs Documentation in the Doc dir label May 28, 2025
@donBarbos
Copy link
Contributor

I don't think it implies a full list of HTTP codes, but it can be done or noted that the list is not full

@StanFromIreland
Copy link
Contributor

It does not imply a full list, but it does imply it is (should be) equivalent to http.server.BaseHTTPRequestHandler.responses

The dictionary is reproduced here for convenience

We could simply remove this, or update it and make it a doctest somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
Status: Todo
Development

No branches or pull requests

3 participants