Skip to main content

Server Error (5xx)

HTTP/1.1

511 Network Authentication Required

The client needs to authenticate to gain network access.

CategoryServer Error (5xx)
API error types0 error schemas
Related headers0 headers
Defined inRFC 6585
Updated2026-07-09

What does HTTP status code 511 mean?

The 511 Network Authentication Required status code indicates that the client must authenticate to gain network access (e.g., captive portals).

When to use it in APIs

Typically generated by public Wi-Fi networks or proxies before letting request traffic through to the internet.

How it compares to other codes

  • 401 Unauthorized: Identifies authentication needed for the target API host, whereas 511 is for access to the network itself.
1