Free auditStart free
GuideError · HTTP status codes

HTTP 407 Proxy Authentication Required

A 407 means a proxy between you and the server needs credentials. See the Proxy-Authenticate challenge, how to send Proxy-Authorization and what to check.

4 min
read
6
sources
Oct 25, 2026
updated
Scaplet Editorial Team
author
The short answer

HTTP 407 Proxy Authentication Required means the request did not succeed because it lacks valid credentials for a proxy server sitting between the client and the server. The proxy sends a Proxy-Authenticate header. Fix it by sending valid credentials in a Proxy-Authorization header, or by correcting the proxy settings and username and password on the client.

  1. What does 407 mean?
  2. Who causes a 407?
  3. How to fix a 407 as a user
  4. How to fix a 407 as a developer
  5. What it does to SEO
30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Which authentication error is it?

What does 407 mean?

RFC 9110 describes the 407 status code as similar to 401, but it indicates that the client needs to authenticate itself in order to use a proxy for this request. The proxy must send a Proxy-Authenticate header containing a challenge applicable to that proxy. The client may repeat the request with a new or replaced Proxy-Authorization header.
Status

401 Unauthorized

Who wants credentials
The server hosting the resource
Challenge header
WWW-Authenticate
Credentials header
Authorization
Status

407 Proxy Authentication Required

Who wants credentials
A proxy on the path
Challenge header
Proxy-Authenticate
Credentials header
Proxy-Authorization
Status

403 Forbidden

Who wants credentials
Nobody; the request is refused
Challenge header
None
Credentials header
Not applicable

MDN states the same idea from the client's side: the request did not succeed because it lacks valid authentication credentials for the proxy server that sits between the client and the server with access to the requested resource.

A 407 response as MDN shows it
HTTP/1.1 407 Proxy Authentication Required
Date: Wed, 21 Oct 2015 07:28:00 GMT
Proxy-Authenticate: Basic realm="Access to internal site"

MDN's authentication guide notes that resource authentication and proxy authentication can coexist, which is why a separate set of headers and status codes exists. See 401 Unauthorized for the server version and 403 Forbidden for a refusal.

02Good to know

Who causes a 407?

The proxy. A 407 is created by a proxy server that the client's traffic passes through and that requires authentication. The status concerns that proxy, not the destination site.
03Checklist

How to fix a 407 as a user

  1. 01Open your browser or system proxy settings and check that the proxy address and port are the ones you were given.
  2. 02Enter the proxy username and password when prompted, or save them in the application's proxy settings. The client may repeat the request with a Proxy-Authorization header.
  3. 03If your credentials changed, update them everywhere the proxy is configured. A stored old password will keep failing.
  4. 04If you didn't mean to use a proxy, turn it off in your settings, or ask your network administrator whether the proxy is required.
04How it works

How to fix a 407 as a developer

Send proxy credentials with curl
# Credentials in the proxy option
curl -i -x http://proxy.example.com:3128 \
  --proxy-user username:password https://example.com/

# Or set the header yourself (Basic value is base64 of username:password)
curl -i -x http://proxy.example.com:3128 \
  -H "Proxy-Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" https://example.com/
407 causes and fixes
CauseHow to spot itFix
No proxy credentials sent407 with a Proxy-Authenticate challenge on the first requestAdd credentials for the named scheme
Wrong or expired proxy password407 repeats after sending credentialsUpdate the stored username and password
Credentials in the wrong headerSent Authorization instead of Proxy-AuthorizationUse Proxy-Authorization for the proxy
Scheme mismatchChallenge says one scheme and you sent anotherMatch the challenge
Proxy settings point at the wrong proxyAddress or port isn't the one issued to youCorrect the proxy host and port
  1. 01

    Confirm the proxy is the sender

    Read the response headers. A 407 carries Proxy-Authenticate, not WWW-Authenticate. Note the scheme and realm in the challenge.

  2. 02

    Send Proxy-Authorization

    Use the scheme the proxy named. The header form is Proxy-Authorization: <type> <credentials>, and MDN's guide uses Basic as the most common scheme.

  3. 03

    Check how the client sends it

    Configure the credentials in the HTTP library or environment, not in the Authorization header, which is for the destination server.

  4. 04

    Retest through the proxy

    Repeat the same request and check you get the destination's response, not another 407.

05Explained

What it does to SEO

A 407 comes from a proxy between the client and the server, so it is rarely something your own site sends to search engines. Google's page on HTTP status codes does not list 407 among the codes it explains, so don't assume how a crawler treats it. If your own reverse proxy or CDN sends 407 on public URLs, treat it as a configuration error: fix it, then confirm the URLs return 200 to an unauthenticated request. Compare 4xx errors for how Google handles the status codes it does document.
Sources · 6

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • rfc-editor.org
  • mozilla.org
  • cloudflare.com
  • curl.se
  • google.com
  1. 01RFC 9110: HTTP Semanticsrfc-editor.org · checked 2026-10-25
  2. 02407 Proxy Authentication Required - HTTP - MDN Web Docsdeveloper.mozilla.org · checked 2026-10-25
  3. 03HTTP authentication - MDN Web Docsdeveloper.mozilla.org · checked 2026-10-25
  4. 04Error 407 - Cloudflare Support docsdevelopers.cloudflare.com · checked 2026-10-25
  5. 05curl man pagecurl.se · checked 2026-10-25
  6. 06How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-10-25
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01How can I fix HTTP error 407?

Supply valid credentials to the proxy. The client may repeat the request with a new or replaced Proxy-Authorization header. On a device, check the proxy address, port, username and password in your proxy settings.

02Why am I getting a proxy authentication error?

A proxy between you and the site is asking you to authenticate and didn't receive valid credentials. It sent a Proxy-Authenticate header describing how to do it.

03What is the difference between 401 and 407?

407 is similar to 401 but concerns authenticating with a proxy rather than the destination server. The challenge is Proxy-Authenticate and the answer goes in Proxy-Authorization, instead of WWW-Authenticate and Authorization.

04Does Cloudflare cause 407 errors?

No. Cloudflare says it does not generate 407 errors but proxies them from the origin server or an upstream proxy. Check the origin's proxy configuration.

Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane