Skip to content

[3.15] gh-53852 Proxy Auth failure to raise 407 instead of 401 (GH-160917) - #160919

Merged
orsenthil merged 2 commits into
python:3.15from
miss-islington:backport-2e1666f-3.15
Oct 29, 2026
Merged

orsenthil merged 2 commits into
python:3.15from
miss-islington:backport-2e1666f-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Proxy Auth failure to raise 407 instead of 401

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/407
is the correct status code to raise for the Proxy Authentication.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/401
is the generic code that can be raised for unauthorized response.
(cherry picked from commit 2e1666f)

Co-authored-by: Senthil Kumaran senthil@python.org

…GH-160917)

Proxy Auth failure to raise 407 instead of 401

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/407
is the correct status code to raise for the Proxy Authentication.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/401
is the generic code that can be raised for unauthorized response.
(cherry picked from commit 2e1666f)

Co-authored-by: Senthil Kumaran <senthil@python.org>
@orsenthil
orsenthil enabled auto-merge (squash) October 29, 2026 20:30
@orsenthil
orsenthil merged commit 14d9694 into python:3.15 Oct 29, 2026
54 checks passed
@miss-islington
miss-islington deleted the backport-2e1666f-3.15 branch October 29, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants