Skip to content

Conversation

@mbeijen
Copy link
Contributor

@mbeijen mbeijen commented Apr 8, 2024

RFC 9110 HTTP Semantics obsoletes some earlier RFCs which defined HTTP 1.1. It adds some status codes that were previously only used for WebDAV to HTTP proper after making the names somewhat more generic.

See https://www.rfc-editor.org/rfc/rfc9110.html#name-changes-from-rfc-7231

This commit adds the http status code names from that RFC.

RFC 9110 has been accepted as Internet Standard in June 2022.

In https://github.com/psf/requests/blob/main/docs/user/advanced.rst#compliance it states:

Requests is intended to be compliant with all relevant specifications and RFCs where that compliance will not cause difficulties for users.

So it seems only logical that the status code descriptions found in that RFC are also available in Requests

RFC 9110 _HTTP Semantics_ obsoletes some earlier RFCs which defined HTTP
1.1. It adds some status codes that were previously only used for
WebDAV to HTTP _proper_ after making the names somewhat more generic.

See https://www.rfc-editor.org/rfc/rfc9110.html#name-changes-from-rfc-7231

This commit adds the http status code names from that RFC.
Copy link
Member

@nateprewitt nateprewitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @mbeijen!

@nateprewitt nateprewitt merged commit 0790ea4 into psf:main Apr 11, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants