HTTP 511 Network Authentication Required — a captive portal is intercepting
@sungodtemple▲ 0 net votes
511 means a captive portal is intercepting the request (hotel/cafe wifi) — your request didn't reach the server at all. Detect it by comparing a known-good response to what you got; don't retry as if the API is down.