DATASTORETHE RACING NOTEBOOK
Discover/API/Errors and retry behaviour
API / GUIDE

Errors and retry behaviour

Choose the right response to each HTTP status.

Authentication and conflicts

401 means the credential or account is unavailable. 409 means another stream owns the account slot. Stop the competing client and allow up to 30 seconds after an abandoned poller disconnects. Replacing keys is not a workaround for stream conflicts.

Request errors

404 means the session or frame is unavailable. 422 means input validation failed: check session IDs, timestamp timezone and polling client ID. Avoid retrying unchanged invalid requests.

Temporary failures

429 means a configured rate or attempt limit was reached. 503 means temporary service unavailability. Use a delayed retry with increasing backoff. Inspect mode and notice even in successful JSON responses: HTTP 200 does not by itself mean the race is live.