# 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.

Canonical: https://scaplet.com/errors/http/407

Guide Error · HTTP status codes

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

407 4xx · Client error

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?](#what-does-407-mean)
2. [Who causes a 407?](#who-causes-a-407)
3. [How to fix a 407 as a user](#how-to-fix-a-407-as-a-user)
4. [How to fix a 407 as a developer](#how-to-fix-a-407-as-a-developer)
5. [What it does to SEO](#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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F407%20(%22HTTP%20407%20Proxy%20Authentication%20Required%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F407%20(%22HTTP%20407%20Proxy%20Authentication%20Required%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F407%20(%22HTTP%20407%20Proxy%20Authentication%20Required%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F407%20(%22HTTP%20407%20Proxy%20Authentication%20Required%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

_01_Which authentication error is it?

## What does 407 mean?

RFC 9110 describes the 407 [status code](/glossary/http-status-codes) 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](/errors/http/401)

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](/errors/http/403)

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](/errors/http/401) for the server version and [403 Forbidden](/errors/http/403) for a refusal.

_02_Good 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.

Cloudflare doesn't generate 407s

Cloudflare's documentation says it does not generate 407 errors but proxies them from the origin server or an upstream proxy. If a 407 shows up on a Cloudflare-powered site, review the origin server's proxy configuration and verify the client is providing the required credentials.

_03_Checklist

## How to fix a 407 as a user

1. 01 Open your browser or system proxy settings and check that the proxy address and port are the ones you were given.
2. 02 Enter 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. 03 If your credentials changed, update them everywhere the proxy is configured. A stored old password will keep failing.
4. 04 If you didn't mean to use a proxy, turn it off in your settings, or ask your network administrator whether the proxy is required.

_04_How 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
| Cause | How to spot it | Fix |
| No proxy credentials sent | 407 with a Proxy-Authenticate challenge on the first request | Add credentials for the named scheme |
| Wrong or expired proxy password | 407 repeats after sending credentials | Update the stored username and password |
| Credentials in the wrong header | Sent Authorization instead of Proxy-Authorization | Use Proxy-Authorization for the proxy |
| Scheme mismatch | Challenge says one scheme and you sent another | Match the challenge |
| Proxy settings point at the wrong proxy | Address or port isn't the one issued to you | Correct the proxy host and port |

**Basic proxy credentials are readable**MDN says the Basic scheme sends credentials encoded but not encrypted, and is only safe over a secure connection ([HTTPS](/glossary/https)/TLS). Don't paste the example header above with real credentials into logs, tickets or chat.

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.

_05_Explained

## 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](/seo-issues/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. 01 [RFC 9110: HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html) rfc-editor.org · checked 2026-10-25
2. 02 [407 Proxy Authentication Required - HTTP - MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/407) developer.mozilla.org · checked 2026-10-25
3. 03 [HTTP authentication - MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Authentication) developer.mozilla.org · checked 2026-10-25
4. 04 [Error 407 - Cloudflare Support docs](https://developers.cloudflare.com/support/troubleshooting/http-status-codes/4xx-client-error/error-407/) developers.cloudflare.com · checked 2026-10-25
5. 05 [curl man page](https://curl.se/docs/manpage.html) curl.se · checked 2026-10-25
6. 06 [How HTTP status codes affect Google's crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-10-25

Questions

## Asked a lot.

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

_01_ How 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.

_02_ Why 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.

_03_ What 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.

_04_ Does 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.

## Keep learning

[All errors](/errors)

[Learn HTTP 401 Unauthorized HTTP status codes](/errors/http/401) [Related 4xx errors Status codes and links](/seo-issues/4xx-errors) [Read next 403 Forbidden HTTP status codes](/errors/http/403) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in errors
[405 Not Allowed in nginx](/errors/http/405/nginx) [406 Not Acceptable](/errors/http/406)

More in HTTP status codes
[HTTP 201 Created](/errors/http/201) [HTTP 204 No Content](/errors/http/204) [HTTP 206 Partial Content](/errors/http/206) [HTTP 301 Moved Permanently](/errors/http/301) [HTTP 302 Found](/errors/http/302) [HTTP 303 See Other](/errors/http/303) [HTTP 304 Not Modified](/errors/http/304) [HTTP 307 Temporary Redirect](/errors/http/307) [HTTP 308 Permanent Redirect](/errors/http/308) [HTTP 400 Bad Request](/errors/http/400) [HTTP 401 Unauthorized](/errors/http/401) [HTTP 405 Method Not Allowed](/errors/http/405) [HTTP 407 Proxy Authentication Required](/errors/http/407) [HTTP 408 Request Timeout](/errors/http/408) [HTTP 409 Conflict](/errors/http/409) [HTTP 412 Precondition Failed](/errors/http/412) [HTTP 431 Request Header Fields Too Large](/errors/http/431) [HTTP 499 Client Closed Request](/errors/http/499) [HTTP 500 Internal Server Error](/errors/http/500) [HTTP 501 Not Implemented](/errors/http/501) [HTTP redirect codes](/errors/http/http-redirect-codes) [HTTP status code list](/errors/http/http-status-code-list) [REST API status codes](/errors/http/rest-api-status-codes) [100 Continue](/errors/http/100)

Terms on this page
[HTTP status codes](/glossary/http-status-codes) [HTTPS](/glossary/https)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
