511 Network Authentication Required

Log in to the network first (captive portal).

5xx · Server error

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

<meta http-equiv="refresh" content="0; url=https://login.wifi.example/">