What it means
Like 401, but for a proxy between the client and the server. The proxy wants credentials first and says how in its Proxy-Authenticate header.
Why you're seeing it
- A corporate or school proxy that requires login.
- Missing or wrong proxy credentials in a tool's configuration.
How to fix it
- Configure proxy credentials, e.g.
curl -x http://proxy:3128 -U user, or theHTTPS_PROXYenvironment variable. - Check whether the host you're calling should bypass the proxy (
NO_PROXY).
Example response
HTTP/1.1 407 Proxy Authentication Required Proxy-Authenticate: Basic realm="corp-proxy" Content-Length: 0