diff --git a/Doc/library/http.rst b/Doc/library/http.rst index ce3fb9f8120502..b0bdfc65e4508d 100644 --- a/Doc/library/http.rst +++ b/Doc/library/http.rst @@ -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 -------------------- diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index 2090759d3c4fde..de64555c152219 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -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 ---------