Errors
Every error code of the wire protocol in one table.
Error codes
The first rows are what the platform answers your launch and close, in the order the platform checks them: the environment’s allowlist, then your operator and signature (for the close too), then the launch’s fields. The last rows are the error you return from your wallet and what the platform does with it.
| HTTP | error | description or body | Call | Means |
|---|---|---|---|---|
| 403 | the platform’s envelope, code FORBIDDEN (body) | launch, close | Your address is not on the platform’s address filter. Checked first; see Launch & close. | |
| 400 | 1 | Missing secureLogin or hash | launch, close | secureLogin or hash is missing or empty. |
| 403 | 1 | Unknown or inactive operator | launch, close | No operator has this secureLogin. |
| 403 | 1 | Operator is paused | launch, close | Your operator is suspended. |
| 403 | 1 | Operator is archived | launch, close | Your operator is archived. |
| 403 | 1 | Unknown or inactive operator | launch, close | Your operator has no live secret key. |
| 401 | 1 | Invalid signature | launch, close | The hash does not verify against any live key. See Signatures. |
| 403 | 1 | IP not allowed | launch, close | The signature verified; your address is not on your operator’s IP allowlist. |
| 400 | 7 | Invalid parameters: <field> | launch | externalPlayerId, language or playMode breaks its rule, or currency or marketId is not text. |
| 400 | 1 | invalid theme: <reason> | launch | The theme is refused; <reason> says why. |
| 400 | 7 | Invalid parameters: <field> | launch | lobbyUrl or cashierUrl breaks its rule. |
| 400 | 21 | Invalid currency | launch | The currency is not one of your operator currencies, or none was given and none could be chosen. |
| 400 | v1.0’s validation body (body) | close | The body has a field other than secureLogin, token and hash, or token is not text. | |
| 201 | 22 | Session not found | close | No open session of yours has this token. A session past its time also answers this; it still ends, and /session/expired is sent. |
| 201 | 0 | OK | close | The session is closed. |
| 404 | the platform’s envelope, code NOT_FOUND (body) | any | No such path. | |
| 500 | the platform’s envelope, code INTERNAL (body) | any | An unexpected failure on the platform. Try again. | |
| 2xx | 0 | every wallet call | Success. | |
| 2xx | 8 | /bet, /result, /refund | Already applied: success. On /bet, the stake was taken. | |
| 2xx | 8 | /balance | A refusal, as below. | |
| 2xx | any other number | every wallet call | A refusal. /bet: the trade does not happen and nothing follows. /result, /refund: a pending payment at once, not retried. /authenticate: the player cannot open the session. /balance: the balance shows as unknown. /session/expired: delivered. | |
| 4xx | every wallet call | A refusal, as above. | ||
5xx, time-out, no connection, or a body without a numeric error | every wallet call | Unknown. /bet: the trade does not happen and the whole stake is refunded under the same reference. /result, /refund, /session/expired: sent again (see Idempotency). /authenticate: the player cannot open the session now. /balance: the balance shows as unknown. |
/authenticate is also refused when betLimits is missing or invalid, and /balance is unknown when cash is not a number or currency is not the session’s (Wallet callbacks).
Answer bodies
The answers above that are not { "error", "description" }. Your address not on the environment’s allowlist:
HTTP/1.1 403
Content-Type: application/json
{
"error": {
"code": "FORBIDDEN",
"message": "Requests from this address are not accepted."
}
}A close with a field it does not take:
HTTP/1.1 400
Content-Type: application/json
{
"message": [
"property reason should not exist"
],
"error": "Bad Request",
"statusCode": 400
}A path the platform does not have, here POST /markets/stop:
HTTP/1.1 404
Content-Type: application/json
{
"error": {
"code": "NOT_FOUND",
"message": "Cannot POST /markets/stop"
}
}An unexpected failure:
HTTP/1.1 500
Content-Type: application/json
{
"error": {
"code": "INTERNAL",
"message": "Internal server error."
}
}