At One Place

HTTP 511 — Network Authentication Required

HTTP 511
Network Authentication Required
You need to log in to the network itself — this is a captive portal, not the site you asked for.

What 511 actually means

The response did not come from the site at all. Something between you and the internet — hotel Wi-Fi, an airport network, a coffee shop hotspot — is intercepting traffic until you accept terms or sign in. The code exists so that clients can tell a captive portal apart from a genuine site response, which matters because portals otherwise appear to be the site lying to you. It is defined as a 5xx precisely because the origin server never saw the request.

Common causes

  • A hotel, airport or café captive portal awaiting sign-in
  • A guest network requiring terms to be accepted
  • A corporate network requiring authentication before internet access
  • A paid hotspot whose session has expired

If you're just trying to view the page

  1. Open any plain http:// page — most portals cannot intercept HTTPS, which is why the login screen never appears when you only try secure sites
  2. On a phone, tap the Wi-Fi network name; both iOS and Android offer a "sign in to network" option that opens the portal
  3. Try visiting neverssl.com or captive.apple.com, which exist for exactly this purpose
  4. Forget the network and reconnect to trigger the portal detection again

If it's your site

  1. If you operate the portal, return 511 with a `Link` header to the login page rather than silently redirecting — silent interception breaks HTTPS and looks like an attack
  2. Do not use 511 on an origin server; it is specifically for intercepting proxies
  3. Client applications should handle 511 by prompting the user rather than retrying

Reference

Status code
511
Reason phrase
Network Authentication Required
Category
5xx — Server Error
Cacheable by default
No
Defined in
RFC 6585 §6

Common questions

What does HTTP 511 mean?
You need to log in to the network itself — this is a captive portal, not the site you asked for. The response did not come from the site at all. Something between you and the internet — hotel Wi-Fi, an airport network, a coffee shop hotspot — is intercepting traffic until you accept terms or sign in.
How do I fix a 511 error?
Open any plain http:// page — most portals cannot intercept HTTPS, which is why the login screen never appears when you only try secure sites
Is 511 a client error or a server error?
511 is in the 5xx range, which means server error. The request was acceptable but the server could not fulfil it, so retrying later can succeed.

Related pages

Sources

  1. Hypertext Transfer Protocol (HTTP) Status Code Registry — IANA
  2. RFC 9110: HTTP Semantics — IETF

How these figures are compiled and checked