Skip to content

Commit cdebebb

Browse files
committed
gh-102247: Improve documentation of http.HTTPStatus members update
1 parent 4265854 commit cdebebb

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Doc/library/http.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ equal to the constant name (i.e. ``http.HTTPStatus.OK`` is also available as
139139

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

144145
HTTP status category
145146
--------------------

Doc/whatsnew/3.13.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,16 @@ glob
904904
(Contributed by Barney Gale in :gh:`72904`.)
905905

906906

907+
http
908+
----
909+
910+
* :class:`http.HTTPStatus` was updated to use the names from :rfc:`9110`.
911+
This RFC includes some HTTP statuses previously only used for WEBDAV
912+
and assigns more generic names to them.
913+
The old constants are preserved for backwards compatibility.
914+
(Contributed by Michiel W. Beijen in :gh:`102247`.)
915+
916+
907917
importlib
908918
---------
909919

0 commit comments

Comments
 (0)