511 Network Authentication Required

HTTP 511 Network Authentication Required is a 5xx server error status. The client must authenticate to gain network access, typically on a captive portal.

511Status code
5xxServer error
NoCacheable by default
RFC 6585Defined in

Common causes

What to do

Open any page in the browser to reach the portal login.

Example response

HTTP/1.1 511 Network Authentication Required
Content-Type: application/problem+json

{"status":511,"title":"Network Authentication Required"}

Returning 511 in code

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

Other 5xx codes

Frequently asked questions

What does HTTP 511 mean?
The client must authenticate to gain network access, typically on a captive portal.
Is 511 an error?
Yes. It is a server error: the request may be fine and the problem lies on the server or an upstream service.
Does a 511 hurt SEO?
If search engines see it repeatedly on pages that should rank, those pages can be dropped from the index. Fix it quickly.