Gateway errors
Two patterns worth recognising immediately:
401 unauthenticatedon every route almost always means the key is missing from the request, not that it is wrong.502on everything means the gateway could not reach its authentication service. It fails closed by design. Retry with backoff.
Market Data errors
Live Availability errors
Watchlist errors
Validation errors carryerror; a body that is not valid JSON is rejected earlier
and carries detail.
Account errors
Stream errors
The WebSocket returns HTTP errors before the upgrade completes and sends no custom close frames afterwards. See Connecting to the stream.Retry policy
Paid requests that fail with a
4xx from the API itself are still billed once, so a
retry loop on a bad request spends credits for nothing.