407 Proxy Authentication Required
When the server responds with a 407 Proxy Authentication Required status code, it means that the client needs to provide valid credentials to access the requested resource through a proxy.
You can Check Your URLs HTTP Code for FREE
Introduction
In Action
Sample
Conclusion
Introduction
When the server responds with a 407 Proxy Authentication Required status code, it means that the client needs to provide valid credentials to access the requested resource through a proxy.
This is similar to a 401 Unauthorized error, and the user must authenticate themselves before they can use the proxy to access the resource.
In Action
When you encounter the 407 Proxy Authentication Required error message, it means you need to provide valid login credentials before accessing the requested resource through a proxy.
This is similar to the 401 Unauthorized response, and you can use the same authentication methods to log in. The server will include the Proxy-Authenticate header to indicate the allowed authentication methods.
Note that search engines like Google will not index URLs with the 407 Proxy Authentication Required status, and previously indexed URLs returning this status code will be removed from the search results.
Sample
In the example, when the client requests a resource, the server responds with the 407 Proxy Authentication Required status, indicating that the resource is protected and requires authentication to access it through a proxy.
The server specifies that it supports basic authorization. In response, the client sends a username:password pair using the basic authentication protocol in the Proxy-Authorization header. Once authenticated, the server sends the requested resource to the client.
Initial request
GET /documents/tech-news HTTP/1.1
Host: www.example.com
Initial response
HTTP/1.1 407 Proxy Authentication Required
Proxy-Authenticate: Basic; realm=”Documents”
Next request
GET /documents/tech-news HTTP/1.1
Host: www.example.com
Proxy-Authorization: Basic RXhhbXBsZ TphaQ==
Final response
HTTP/1.1 200 OK
Content-Type: application/pdf
Content-Length: 25000
< PDF document included in message body>
Conclusion
The 407 Proxy Authentication Required status code is returned when a client needs to authenticate itself to use a proxy server in order to access a protected resource.
The client must provide valid login credentials using the specified authentication method to gain access to the requested resource through the proxy.