From 62383ff740729977abf468e331d8dbdfcee62311 Mon Sep 17 00:00:00 2001 From: Rihaan Meher Date: Tue, 17 Jun 2025 22:26:27 +0530 Subject: [PATCH 1/4] gh-135615 Fix incorrect caption outlining http status codes --- Doc/library/http.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Doc/library/http.rst b/Doc/library/http.rst index ce3fb9f8120502..866be5a7245395 100644 --- a/Doc/library/http.rst +++ b/Doc/library/http.rst @@ -52,8 +52,7 @@ The :mod:`http` module also defines the following enums that help you work with HTTP status codes ----------------- -Supported, -`IANA-registered status codes `_ +Supported HTTP status codes available in :class:`http.HTTPStatus` are: ======= =================================== ================================================================== From a04d06d2812f8391675d289a917be51621b135b6 Mon Sep 17 00:00:00 2001 From: Rihaan Meher Date: Wed, 18 Jun 2025 09:19:28 +0530 Subject: [PATCH 2/4] gh-135615 List 418 as an exception --- Doc/library/http.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Doc/library/http.rst b/Doc/library/http.rst index 866be5a7245395..121a130a159f0a 100644 --- a/Doc/library/http.rst +++ b/Doc/library/http.rst @@ -52,8 +52,7 @@ The :mod:`http` module also defines the following enums that help you work with HTTP status codes ----------------- -Supported HTTP status codes -available in :class:`http.HTTPStatus` are: +:class:`http.HTTPStatus supports some `IANA-registered status codes `_, as well as 418 (the requested entity is a teapot incapable of brewing coffee) ======= =================================== ================================================================== Code Enum Name Details From e783c206ed01e1d8adda12bdfcb333ccdb4934af Mon Sep 17 00:00:00 2001 From: Rihaan Meher Date: Wed, 18 Jun 2025 09:27:10 +0530 Subject: [PATCH 3/4] Forgot a backtick :) --- Doc/library/http.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/http.rst b/Doc/library/http.rst index 121a130a159f0a..472bfc190e4dbc 100644 --- a/Doc/library/http.rst +++ b/Doc/library/http.rst @@ -52,7 +52,7 @@ The :mod:`http` module also defines the following enums that help you work with HTTP status codes ----------------- -:class:`http.HTTPStatus supports some `IANA-registered status codes `_, as well as 418 (the requested entity is a teapot incapable of brewing coffee) +:class:`http.HTTPStatus` supports some `IANA-registered status codes `_, as well as 418 (the requested entity is a teapot incapable of brewing coffee) ======= =================================== ================================================================== Code Enum Name Details From f2009cfbe30f2eb029e278941ebac2f106a16385 Mon Sep 17 00:00:00 2001 From: R Chintan Meher Date: Wed, 30 Jul 2025 18:24:12 -0400 Subject: [PATCH 4/4] Reword Suggestiob Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> --- Doc/library/http.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Doc/library/http.rst b/Doc/library/http.rst index 472bfc190e4dbc..7c2ecdf362f8f4 100644 --- a/Doc/library/http.rst +++ b/Doc/library/http.rst @@ -52,7 +52,11 @@ The :mod:`http` module also defines the following enums that help you work with HTTP status codes ----------------- -:class:`http.HTTPStatus` supports some `IANA-registered status codes `_, as well as 418 (the requested entity is a teapot incapable of brewing coffee) +The supported `IANA-registered status codes`__ available in +:class:`http.HTTPStatus` are enumerated in the table below, +including some codes marked by IANA as 'unused'. + +__ https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml ======= =================================== ================================================================== Code Enum Name Details