Close codes
See Close codes on the WebSocket API page.
On the WebSocket
Errors on an open socket are messages, and the socket stays open. Codes:invalid_airports, bad_request, unknown_action, too_many_airports. Other events close the socket with a close code instead, for example 4403 when an API key is revoked or expires. See Errors on the socket.
HTTP
502 and 504 are not used: MOBS answers from memory.
Bodies are JSON with
error, message and, on 429 and a full-server 503, retry_after_s.
Placeholder · A11
These messages use the “API key” wording that shipped in v0.11.3, which is the current
main. The 403 message names the missing scope (stream or latest), so the example above is the stream case.