407 Proxy Authentication Required
The HTTP 407 Proxy Authentication Required client error response status code indicates that the request did not succeed because it lacks valid authentication credentials for the {{Glossary("proxy server")}}server that sits between the client and the server with access to the requested resource.
This response is sent with a {{HTTPHeader("Proxy-Authenticate")}}Authenticate header that contains information on how to correctly authenticate requests.
The client may repeat the request with a new or replaced {{HTTPHeader("Proxy-Authorization")}}Authorization header field.
Status
407 Proxy Authentication Required
Examples
Proxy auth
A GET request is made to example.com/admin:
GET /admin HTTP/1.1
Host: example.com
Along the way, an intermediary lets the client know that clients must be authenticated and provides information about the authentication scheme:
HTTP/1.1 407 Proxy Authentication Required
Date: Wed, 21 Oct 2015 07:28:00 GMT
Proxy-Authenticate: Basic realm="Access to internal site"
Specifications
{{Specifications}}
See also
- HTTP response status codes
- HTTP authentication
{{HTTPHeader("WWW-Authenticate")}}Authenticate{{HTTPHeader("Authorization")}}Authorization{{HTTPHeader("Proxy-Authorization")}}Authorization{{HTTPHeader("Proxy-Authenticate")}}Authenticate{{HTTPStatus("401")}}401,{{HTTPStatus("403")}}403