Proxy Authentication Required
Production Risk
Low. This is a standard part of network architecture in many corporate environments. Applications that need to operate in such environments must be designed to handle it.
This is similar to 401 (Unauthorized), but it indicates that the client must first authenticate itself with the proxy. The proxy must send a Proxy-Authenticate header field containing a challenge applicable to the proxy for the requested resource.
- 1A user is on a corporate or school network that requires authentication to access external websites.
- 2The client has not provided credentials for the proxy server.
- 3The provided proxy credentials are invalid or have expired.
An employee tries to access an external website from their work computer, but the corporate proxy blocks the request until they provide their network credentials.
GET http://www.example.com/ HTTP/1.1
expected output
HTTP/1.1 407 Proxy Authentication Required Proxy-Authenticate: Basic realm="Corporate Proxy"
Fix
Provide Proxy Credentials
WHEN Your client application needs to work behind a proxy.
curl --proxy-user user:pass --proxy http://proxy.example.com:8080 http://example.com
Why this works
Client Configuration
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev