5xx Server Error
You need to log in to the WiFi or network first before you can access any websites.
Use 511 only for captive-portal or network-access control flows where an intercepting proxy requires network authentication before wider access is allowed.
GET https://api.example.test/captive-portal-check511 Network Authentication Required
# Headers
Content-Type: text/html; charset=utf-8
# Body
<!doctype html>
<html><body>Network login required.</body></html>Must authenticate with WiFi portal before accessing internet