Error Codes Wiki

HTTP 407 Proxy Authentication Required — Proxy Login Needed

Warning4xx client error

Overview

HTTP 407 Proxy Authentication Required means you must authenticate with a proxy server before the request can be forwarded to the destination.

Key Details

  • Similar to 401 Unauthorized but for proxy servers, not origin servers
  • The response includes a Proxy-Authenticate header specifying the authentication scheme
  • Client must resend the request with a Proxy-Authorization header
  • Common in corporate environments with authenticated web proxies
  • Applications must handle this differently from 401 — use proxy credentials, not server credentials

Common Causes

  • Corporate proxy requires username and password authentication
  • Proxy session expired and requires re-authentication
  • Application not configured with proxy credentials
  • Proxy auto-detect sending traffic through an authenticated proxy
  • VPN or security software adding a local authenticated proxy

Steps

  1. 1Enter proxy credentials when prompted by the browser
  2. 2Configure proxy authentication in your application: set http_proxy=http://user:pass@proxy:port
  3. 3In browsers, check proxy settings: Settings > System > Proxy
  4. 4For CLI tools, set environment variables: export HTTP_PROXY=http://user:pass@proxy:8080
  5. 5Contact your network administrator for proxy credentials if you do not have them

Tags

http407proxyauthenticationcorporate

More in 4xx Client Error

Frequently Asked Questions

401 requires authentication with the website server. 407 requires authentication with an intermediate proxy server.