Status Codes
HTTP status codes used by the RealtimeX API and how your client should react.
Overview
RealtimeX uses standard HTTP status codes together with the JSON response envelope. Treat the status as the primary signal for control flow (retry, re-auth, show validation errors), and use message for human-readable detail.
Most successful reads and updates return 200. Creates often return 201. Client mistakes land in the 4xx range; unexpected failures return 500.
Endpoint pages list the statuses you are most likely to see for that call. This page is the complete cross-API reference.
Success codes
Client errors (4xx)
4xx means the request should not be blindly retried without a change (except 429 after backoff, and 401 after refreshing the token).
Typical 401 body
json
{ "success": false, "message": "No token, authorization denied", "data": null, "error": "Unauthorized"}Server errors (5xx)
Full reference table
Handling guide
Best practices
- Centralize status handling in your API client so every screen behaves consistently on 401/403/404.
- Pair status handling with envelope parsing - see Sample responses.
- Do not treat every non-200 as fatal; some flows expect 409 and should guide the user to resolve the conflict.
- For idempotent GETs, safe retries on 500/429 are fine; for POSTs, confirm whether a retry could create duplicates.