407 Proxy Authentication Required

HTTP 407 Proxy Authentication Required is a 4xx client error status. Like 401, but the client must authenticate with a proxy in between.

407Status code
4xxClient error
NoCacheable by default
RFC 9110 §15.5.8Defined in

Common causes

What to do

Configure proxy credentials in the client or OS settings.

Example response

HTTP/1.1 407 Proxy Authentication Required
Content-Type: application/problem+json

{"status":407,"title":"Proxy Authentication Required"}

Returning 407 in code

Express   res.status(407).json({ … });
Flask     return jsonify(…), 407
PHP       http_response_code(407);
Go        w.WriteHeader(407)
nginx     return 407;

Other 4xx codes

Frequently asked questions

What does HTTP 407 mean?
Like 401, but the client must authenticate with a proxy in between.
Is 407 an error?
Yes. It is a client error: the request needs to change before retrying.
Does a 407 hurt SEO?
If search engines see it repeatedly on pages that should rank, those pages can be dropped from the index. Fix it quickly.