407 Proxy Authentication Required

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.

Related articles

999 Request Denied

999 Request Denied The 999 HTTP response status code is...

599 Network Connect Timeout Error

599 Network Connect Timeout Error The 599 HTTP response status...

598 Network read timeout error

598 Network read timeout error The 598 HTTP response status...

561 Unauthorized

561 Unauthorized The 561 HTTP response status code means there...

530 Site Frozen

530 Site Frozen The 530 HTTP response status code is...

999 Request Denied

0
999 Request Denied The 999 HTTP response status code is an unofficial catch-all error code returned...

599 Network Connect Timeout Error

0
599 Network Connect Timeout Error The 599 HTTP response status code indicates a timeout when trying...

598 Network read timeout error

0
598 Network read timeout error The 598 HTTP response status code indicates a timeout occurred during...

561 Unauthorized

0
561 Unauthorized The 561 HTTP response status code means there was an authentication failure. You can Check...

530 Site Frozen

0
530 Site Frozen The 530 HTTP response status code is a specialized server error used by...