Skip to content

gh-53852 Proxy Auth failure to raise 407 instead of 401 - #160917

Merged
orsenthil merged 2 commits into
python:mainfrom
orsenthil:issues/53852
Oct 29, 2026
Merged

orsenthil merged 2 commits into
python:mainfrom
orsenthil:issues/53852

Conversation

@orsenthil

Copy link
Copy Markdown
Member

gh-53852 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.

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.
@orsenthil
orsenthil merged commit 2e1666f into python:main Oct 29, 2026
97 of 99 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @orsenthil for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Oct 29, 2026

Copy link
Copy Markdown

GH-160919 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Oct 29, 2026
@bedevere-app

bedevere-app Bot commented Oct 29, 2026

Copy link
Copy Markdown

GH-160920 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Oct 29, 2026
orsenthil added a commit that referenced this pull request Oct 29, 2026
…0917) (#160920)

gh-53852 Proxy Auth failure to raise 407 instead of 401 (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 added a commit that referenced this pull request Oct 29, 2026
…0917) (#160919)

gh-53852 Proxy Auth failure to raise 407 instead of 401 (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>
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.

1 participant