Skip to main content
apiguide.dev

HTTP 511 — Network Authentication Required

The client needs to authenticate to gain network access.

Status CodeHTTP 511
CategoryServer Error (5xx)
API Error Subtypes0 error schemas
HTTP Headers0 headers

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.

Specific API Error Types for 511

No specific Problem+JSON schemas have been defined for HTTP 511 on apiguide.dev yet.

Associated HTTP Headers

No specific HTTP headers are explicitly linked to HTTP 511 in our directory yet.

Related HTTP Status Codes