Error catalogue
After this page you know every error code, when it happens and what to do about it.
Every error has an HTTP status and a body:
{ "code": "SESSION_EXPIRED", "message": "The game session or launch link has expired.", "request_id": "req_9f2c1a" }Act on code, never on message. Codes never change meaning. Your wallet uses the same codes in its refusals.
Each code has a category that tells you what to do:
| Category | Meaning |
|---|---|
| decline | No money moved. Safe to show the player a message. |
| session over | The session cannot continue. The player must relaunch the game. |
| fault | A bug or a configuration problem. Fix the request. |
| uncertain | The outcome is not known. The retry and rollback rules apply. |
#INVALID_SIGNATURE
HTTP 401 · fault
- When: The signature headers are missing or the signature does not match the raw request.
- What to do: Check the string to sign, the secret and that the body is sent byte for byte as signed.
#REQUEST_REPLAYED
HTTP 401 · fault
- When: An identical signed request was already received.
- What to do: Sign every attempt afresh. Retries need a new timestamp and signature.
#TIMESTAMP_OUT_OF_RANGE
HTTP 401 · fault
- When: X-Reelbit-Timestamp is more than 60 seconds from the receiver's clock, or is not unix seconds.
- What to do: Sync the server clock (NTP) and sign each attempt with a fresh timestamp.
#UNKNOWN_OPERATOR
HTTP 401 · fault
- When: The key id is unknown, retired or belongs to a suspended operator.
- What to do: Use an active key id for this environment.
#INSUFFICIENT_FUNDS
HTTP 402 · decline
- When: The player's balance in this currency is lower than the debit.
- What to do: No money moved. Offer the player a lower play amount or the cashier.
#COUNTRY_BLOCKED
HTTP 403 · decline
- When: The player's country is not available.
- What to do: Do not offer the game. Show a neutral "not available in your region" message.
#IP_NOT_ALLOWED
HTTP 403 · fault
- When: The caller's IP address is not on the operator's allowlist.
- What to do: Call from an allowlisted address or ask Reelbit to update the list.
#PLAYER_BLOCKED
HTTP 403 · decline
- When: The wallet refuses play for this player (self-exclusion, account closed, limits).
- What to do: No money moved. Show the player the operator's own message.
#STATE_BLOCKED
HTTP 403 · decline
- When: The player's US state (declared or geolocated) is not available.
- What to do: Do not offer the game. Show a neutral "not available in your region" message.
#PLAYER_NOT_FOUND
HTTP 404 · decline
- When: The wallet does not know this player.
- What to do: No money moved. Check the player_id passed at session start.
#ROUND_NOT_FOUND
HTTP 404 · fault
- When: No round with this id exists for the calling operator.
- What to do: Check the id. Rounds of other operators are never visible.
#TRANSACTION_NOT_FOUND
HTTP 404 · fault
- When: No wallet transaction with this id exists for the calling operator.
- What to do: Check the id.
#UNKNOWN_GAME
HTTP 404 · fault
- When: The game id does not exist or is not enabled for this operator.
- What to do: Use a game_id from GET /v1/games.
#DUPLICATE_TRANSACTION_MISMATCH
HTTP 409 · fault
- When: A transaction_id was reused with different details.
- What to do: Never reuse a transaction_id. Reelbit raises an alert and investigates.
#ROUND_IN_PROGRESS
HTTP 409 · decline
- When: The game session already has an open round.
- What to do: Finish the open round first.
#ROUND_ROLLED_BACK
HTTP 409 · decline
- When: A credit or late debit arrived for a round (or debit) that was already rolled back.
- What to do: Refuse it. Move no money.
#SESSION_EXPIRED
HTTP 410 · session over
- When: The game session or launch link has expired, or the wallet no longer accepts the session for a debit.
- What to do: Start a new session with POST /v1/sessions.
#CURRENCY_NOT_SUPPORTED
HTTP 422 · fault
- When: The currency is not configured for this operator, or is not this player's currency.
- What to do: Use a currency code from your configuration.
#INVALID_AMOUNT
HTTP 422 · fault
- When: The amount is not a whole positive integer, or not an allowed play amount for this currency and mode.
- What to do: Send integer minor units from the configured play amounts.
#VALIDATION_ERROR
HTTP 422 · fault
- When: The request body or query is malformed, has a missing or wrong-typed field, or is too large.
- What to do: Fix the request. The message names the field.
#RATE_LIMITED
HTTP 429 · decline
- When: Too many requests from this operator in a short time.
- What to do: Back off and retry after the number of seconds in the Retry-After header.
#INTERNAL_ERROR
HTTP 500 · uncertain
- When: Something unexpected failed on the receiving side.
- What to do: For reads, retry. For wallet calls, the retry and rollback rules apply.
#WALLET_UNAVAILABLE
HTTP 503 · uncertain
- When: Reelbit could not reach the operator's wallet in time, so the action did not complete.
- What to do: The round is voided and rolled back automatically. The player can try again.
Docs