Guides
Errors and retries
Both directions follow one rule: a lost answer or a timeout doesn’t mean nothing happened. Retry the same operation with the same identity, and let idempotency make the retry safe.
Problem responses
Every Operator API error is an RFC 9457 problem in application/problem+json, sent with Cache-Control: no-store and the effective X-Request-Id.
{
"type": "https://operator-api.example.com/problems/validation-failed",
"title": "Request validation failed",
"status": 422,
"detail": "One or more request values are invalid.",
"instance": "/requests/3f0e8f1a-6f7d-4e8c-9a3b-1d2c4b5a6e7f",
"code": "validation_failed",
"request_id": "3f0e8f1a-6f7d-4e8c-9a3b-1d2c4b5a6e7f",
"errors": [
{ "code": "required", "detail": "Currency is required for real mode.", "pointer": "/player/currency" }
],
"retryable": false
}
- Branch on
statusandcode.typeis a stable identifier, not a page to fetch. Never parsetitleordetail: they’re for people and can change. request_idequals theX-Request-Idheader. Quote it when you contact us.errorsappears for validation problems. Each item has acode, adetailand at most one location: a JSON Pointer into your body, a query or pathparameter, or aheader.retryable: truemeans a retry may help. It never allows a new Idempotency-Key for the same intent.
Operator API errors
| Status | Code | Retryable | What to do |
|---|---|---|---|
| 400 | malformed_request | No | Fix the request: malformed JSON, duplicate JSON keys or a bad URL encoding. |
| 401 | authentication_failed | No | Fix the token, key or signature. A missing or repeated Idempotency-Key also lands here, because the signature must cover exactly one. See the signing checklist. |
| 403 | authorization_failed | No | Your token lacks the operation’s scope. |
| 404 | resource_not_found | No | The resource doesn’t exist or isn’t yours. On session creation: the Brand, Game or launch combination isn’t provisioned for you. |
| 405 | method_not_allowed | No | Use the documented method. |
| 409 | idempotency_conflict | No | The key belongs to a request with another body. Resend the original body, or use a new key for a new GameSession. |
| 409 | game_session_not_launchable | No | The GameSession ended or expired, or current launch policy no longer allows it. Create a new one with a new key. |
| 413 | payload_too_large | No | Send a smaller body. |
| 415 | unsupported_media_type, unsupported_content_encoding | No | Send Content-Type: application/json exactly, with no charset, and without Content-Encoding. |
| 422 | validation_failed | No | Fix the values listed in errors. An expired or mismatched catalog cursor also lands here: start the listing again. |
| 429 | rate_limit_exceeded | Yes | Wait for Retry-After seconds, then retry with a new signature. |
| 500 | internal_error | No | Something failed on our side. Retrying a session creation once with the same key is still safe; if it fails again, contact us with the request_id. |
| 503 | service_overloaded, dependency_unavailable | Yes | Retry after Retry-After, if present, with the same key. |
| 504 | request_timeout | Yes | The outcome may be unknown. Retry with the same key. |
Why 404 can hide a cause
Requests never reveal what belongs to another Operator. A resource that doesn’t exist, one that belongs to someone else and a launch combination you may not use all return the same 404 resource_not_found. If you expect a resource to be there, check the IDs and your launch combinations, then contact us with the request_id.
Answers that don’t come from us
Your request passes through our network edge before it reaches the API, and the edge can answer it on its own. Such an answer isn’t a problem response: its body is plain text, HTML or empty, never application/problem+json, and it has no request_id. So an error status without a problem body came from the edge. Don’t parse that body; act on the status:
| Status | What it means | What to do |
|---|---|---|
| 429 | The edge’s flood limit. It sits above our own rate limits, so a client within those never sees it. | Wait for Retry-After seconds, then retry as after 429 rate_limit_exceeded. |
| 5xx | The edge couldn’t get an answer from the API, for example a 502, 503 or 504, or a 520–530 error page. Your request may or may not have arrived. | Treat it as temporary and retry with backoff; retry a session creation only with the same Idempotency-Key and body bytes. |
| 403 | The edge didn’t admit the request. | Don’t retry: it won’t change. Contact us with the time, the host you called and the IP address your request came from. |
| Any other | An unexpected answer. | Don’t retry. Contact us if it repeats. |
The OpenAPI document describes only our own answers, so a client generated from it won’t know these either.
Retrying Operator API requests
- Reads can be retried freely, each attempt with a new signature.
- Session creation after a timeout, a dropped connection, a
429,500,503or504, or a 5xx from the edge: retry with the same Idempotency-Key and the same body bytes, and a new nonce and signature. You get the original GameSession, or a new one if the first attempt never arrived, never two. - Wait between attempts, honor
Retry-After, and add jitter. Stop well before 24 hours after the first attempt: then the key no longer protects you. - Our server-side deadline is 10 seconds per request by default. A client timeout shorter than that is fine, as long as you retry with the same key.
How we treat your Wallet’s answers
For a Debit, Credit or Reversal, only a 200 receipt whose identity matches the command is final. Here’s what each other answer means to us:
| Your Wallet answers | We conclude | We do next |
|---|---|---|
200 receipt with the matching identity | Final outcome | Record it and continue the Round. |
200 that’s malformed or doesn’t match the command | Outcome unknown | Ask the status endpoint, then retry the same ID. |
A timeout, a dropped connection, 429, 500, 503 or 504 | Outcome unknown | Ask the status endpoint, then resend the same ID with backoff. |
401 or 403 | Our credentials need attention; the outcome of earlier attempts stays unknown | Back off and fix the credentials with you, then look the transaction up. |
409 transaction_conflict | The request conflicts with what you stored; the original’s outcome is unknown | Stop sending it and investigate with you. |
Status lookup: pending | Still in progress | Ask again later. |
Status lookup: 404 not_found | No record right now | Resend the same ID while that’s still allowed. |
| Two receipts that contradict each other | An incident | Hold it for review. The later answer never simply wins. |
A later error never erases an earlier unknown: a 401 after a timeout doesn’t mean the timed-out Debit failed. And no answer of yours makes us invent a new transaction ID, a balance or a Reversal. How we retry has the timing.
Timeouts in short
Retry with the same key
A timeout on session creation means “unknown”. Repeat it with the same Idempotency-Key and body; you can’t create a duplicate.
Return the original receipt
When we repeat a transaction_id, answer with the receipt you stored. Your deduplication is what makes our retries safe.