Troubleshooting guide · http-status · Published 2026-08-15 · 3 min read

HTTP 407 Proxy Authentication Required explained

Fix HTTP 407 Proxy Authentication Required: set proxy credentials, Proxy-Authenticate, and check captive or corporate proxy interception.

Flat editorial illustration showing a lantern-style status readout with a neat row of stacked directory rails, each rail marked with an abstract tally.
Illustration: this article at a glance.

The symptom

A browser, API, or server request returns 407 Proxy Authentication Required. Traffic is being forced through a proxy, and the proxy will not forward the request until the client provides the correct proxy credentials. The status is surfaced by the proxy, not by the destination site, so the site itself may be perfectly healthy.

Editorial close-up illustration showing a lantern-style status readout with a neat row of stacked directory rails, each rail marked with an abstract tally.
Illustration: a closer look at the technique described above.

What 407 means

407 Proxy Authentication Required is the proxy equivalent of 401 Unauthorized: it tells the client that a proxy in the path requires authentication before it will pass the request on. It is issued by the proxy with a Proxy-Authenticate header describing the challenge, and the client answers on the Proxy-Authorization header. It is distinct from 401, which comes from the origin server itself and uses WWW-Authenticate / Authorization.

Common causes

Fix the client

  1. Supply the proxy credentials the network expects. In a script with curl, set the username and password explicitly:
curl -x http://proxy.example.com:8080 \
  -U "user:password" https://example.com/
  1. When a captive portal is involved, open a browser and complete the network sign-in page (terms or login), then retry. The 407 clears once the portal session exists.
  2. If a VPN provides the expected proxy, connect it; the request then routes correctly.
  3. In a corporate environment, use the proxy configuration the organisation provides (a PAC file or system proxy) instead of guessing a proxy address.

Fix server and proxy configuration

When you run the proxy and clients fail with 407:

Distinguish from other statuses

Compare 407 with 401 (origin wants credentials, per the 401 guide) and with 511 Network Authentication Required (which asks a browser to sign in to a network to gain access, per the 511 guide). If a connection also resets after the proxy step, see ERR_CONNECTION_RESET. Get the proxy credentials and the authentication scheme aligned, and 407 disappears from your logs.

Need a website built, fixed, optimised, migrated or replaced?

This technical resource is written by CSMBAC, a small design and development studio. If you would rather hand the problem to a professional, the website service page explains how we build enquiry-ready websites.

Explore website services