HTTP 407 Proxy Authentication Required — What It Means
What HTTP status code 407 Proxy Authentication Required means, when servers return it, and how to handle it correctly.
Published September 24, 2026
HTTP 407 Proxy Authentication Required is like 401 but for a proxy: you must authenticate with the proxy before it forwards your request.
What it means
The proxy sends a Proxy-Authenticate header describing how.
Common causes: Corporate proxy needing credentials; Expired proxy login; Missing Proxy-Authorization.
On the wire
GET http://example.com/ HTTP/1.1
HTTP/1.1 407 Proxy Authentication Required
Proxy-Authenticate: Basic realm="corp"
Practical examples
Test it from the shell
curl -i https://example.com/path # look for HTTP 407Handling 407 in code or config
curl -x http://user:pass@proxy:3128 https://example.comHow to fix it
Provide proxy credentials; Configure HTTP_PROXY with user:pass; Check proxy settings.
1. Reproduce: curl -i <url>
2. Confirm the status is 407
3. Apply the fix above and re-testCommon mistakes
- Provide proxy credentials
- Configure HTTP_PROXY with user:pass
- Ignoring the response headers that explain the details.
Key takeaways
- 407 means Proxy Authentication Required.
- HTTP 407 Proxy Authentication Required is like 401 but for a proxy: you must authenticate with the proxy before it forwards your request.
- Read the response headers and logs for the exact cause.
FAQ
407 vs 401?
407 is from the proxy, 401 from the origin server.
Is 407 a client or server error?
It is a client error status code, in the 4xx class.