@http · HTTP status codes, explained HTTP/1.1 511 Network Authentication Required ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5xx · Server error Log in to the network first (captive portal). WHAT IT MEANS ──────────────────────────────────────────────────────────── The client needs to authenticate to the network before it can reach the internet. Captive portals on public Wi-Fi send it. It comes from the network, not the site you were trying to reach, which should never send it. WHY YOU'RE SEEING IT ───────────────────────────────────────────────────── → Hotel, airport or café Wi-Fi with a login or terms page. → An expired session on a paid network. HOW TO FIX IT ──────────────────────────────────────────────────────────── → Open any page in a browser and complete the portal's login. → Apps should recognise 511 and prompt the user to sign in, instead of treating it as a server error. EXAMPLE RESPONSE ───────────────────────────────────────────────────────── HTTP/1.1 511 Network Authentication Required Content-Type: text/html   related 401 Unauthorized   407 Proxy Authentication Required   403 Forbidden spec RFC 6585 https://www.rfc-editor.org/rfc/rfc6585 web https://athttp.com/511 ← curl athttp.com/510