511Status code
5xxServer error
NoCacheable by default
RFC 6585Defined in
Common causes
- Hotel or airport Wi-Fi login page
What to do
Open any page in the browser to reach the portal login.
Example response
HTTP/1.1 511 Network Authentication Required
Content-Type: application/problem+json
{"status":511,"title":"Network Authentication Required"}
Returning 511 in code
Express res.status(511).json({ … });
Flask return jsonify(…), 511
PHP http_response_code(511);
Go w.WriteHeader(511)
nginx return 511;