Skip to content

gh-102247: Improve documentation of http.HTTPStatus members update #133190

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
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Doc/library/http.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ equal to the constant name (i.e. ``http.HTTPStatus.OK`` is also available as

.. versionchanged:: 3.13
Implemented RFC9110 naming for status constants. Old constant names are preserved for
backwards compatibility.
backwards compatibility: ``413 REQUEST_ENTITY_TOO_LARGE``, ``414 REQUEST_URI_TOO_LONG``,
``416 REQUESTED_RANGE_NOT_SATISFIABLE`` and ``422 UNPROCESSABLE_ENTITY``.

HTTP status category
--------------------
Expand Down
10 changes: 10 additions & 0 deletions Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,16 @@ glob
(Contributed by Barney Gale in :gh:`72904`.)


http
----

* :class:`http.HTTPStatus` was updated to use the names from :rfc:`9110`.
This RFC includes some HTTP statuses previously only used for WEBDAV
and assigns more generic names to them.
The old constants are preserved for backwards compatibility.
(Contributed by Michiel W. Beijen in :gh:`102247`.)


importlib
---------

Expand Down
Loading