httpstatuses/contents/codes/407.md
WALL-E 62df9e637c Add Python status constants (#57)
* Add Python status constants

* Add Python 2, Python 3+, Python 3.5+ status constants
2016-05-22 00:07:16 +01:00

29 lines
1.3 KiB
Markdown

---
set: 4
code: 407
title: Proxy Authentication Required
references:
"Rails HTTP Status Symbol": ":proxy_authentication_required"
"Go HTTP Status Constant": "http.StatusProxyAuthRequired"
"Symfony HTTP Status Constant": "Response::HTTP_PROXY_AUTHENTICATION_REQUIRED"
"Python2 HTTP Status Constant": "httplib.PROXY_AUTHENTICATION_REQUIRED"
"Python3+ HTTP Status Constant": "http.client.PROXY_AUTHENTICATION_REQUIRED"
"Python3.5+ HTTP Status Constant": "http.HTTPStatus.PROXY_AUTHENTICATION_REQUIRED"
---
Similar to [401 Unauthorized](/401), but it indicates that the client needs to authenticate itself in order to use a proxy.
The proxy MUST send a Proxy-Authenticate header field<sup>[1](#ref-1)</sup> containing a challenge applicable to that proxy for the target resource. The client MAY repeat the request with a new or replaced Proxy-Authorization header field<sup>[2](#ref-2)</sup>.
---
* <span id="ref-1"><sup>1</sup> Proxy-Authenticate
[RFC7235 Section 4.3][2]</span>
* <span id="ref-2"><sup>2</sup> Proxy-Authorization
[RFC7235 Section 4.4][3]</span>
* Source: [RFC7235 Section 3.2][1]
[1]: <http://tools.ietf.org/html/rfc7235#section-3.2>
[2]: <http://tools.ietf.org/html/rfc7235#section-4.3>
[3]: <http://tools.ietf.org/html/rfc7235#section-4.4>