What is HTTP Status 407?
HTTP status code 407 (Proxy Authentication Required) indicates that the client must authenticate with the proxy server before the request can be forwarded. It is the proxy equivalent of 401 (Unauthorized) and signals that valid proxy credentials are required.
The 407 Challenge-Response Flow
When a proxy server receives a request without proper authentication credentials, it responds with a 407 status code and includes a Proxy-Authenticate header specifying the accepted authentication scheme (typically Basic or Digest). The client must retry the request with a Proxy-Authorization header containing valid credentials encoded according to the specified scheme. For Basic authentication, this is a Base64-encoded username:password string. Persistent connections can cache the authentication to avoid repeating it for every request.
If you connect to gate.hexproxies.com:8080 without credentials and your IP is not whitelisted, you will receive a 407 response. The fix is straightforward: include your Hex Proxies username and password in the Proxy-Authorization header, or add your source IP to the whitelist in the dashboard.
Troubleshooting 407 Errors
Encountering a 407 error means your proxy connection is not properly authenticated. Common causes include missing credentials, expired credentials, typos in username or password, or connecting from a non-whitelisted IP when using IP authentication. Hex Proxies provides clear authentication documentation and dashboard tools to verify your credentials and whitelisted IPs.