Skip to Content
Errors

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.

HTTPerrordescription or bodyCallMeans
403the platform’s envelope, code FORBIDDEN (body)launch, closeYour address is not on the platform’s address filter. Checked first; see Launch & close.
4001Missing secureLogin or hashlaunch, closesecureLogin or hash is missing or empty.
4031Unknown or inactive operatorlaunch, closeNo operator has this secureLogin.
4031Operator is pausedlaunch, closeYour operator is suspended.
4031Operator is archivedlaunch, closeYour operator is archived.
4031Unknown or inactive operatorlaunch, closeYour operator has no live secret key.
4011Invalid signaturelaunch, closeThe hash does not verify against any live key. See Signatures.
4031IP not allowedlaunch, closeThe signature verified; your address is not on your operator’s IP allowlist.
4007Invalid parameters: <field>launchexternalPlayerId, language or playMode breaks its rule, or currency or marketId is not text.
4001invalid theme: <reason>launchThe theme is refused; <reason> says why.
4007Invalid parameters: <field>launchlobbyUrl or cashierUrl breaks its rule.
40021Invalid currencylaunchThe currency is not one of your operator currencies, or none was given and none could be chosen.
400v1.0’s validation body (body)closeThe body has a field other than secureLogin, token and hash, or token is not text.
20122Session not foundcloseNo open session of yours has this token. A session past its time also answers this; it still ends, and /session/expired is sent.
2010OKcloseThe session is closed.
404the platform’s envelope, code NOT_FOUND (body)anyNo such path.
500the platform’s envelope, code INTERNAL (body)anyAn unexpected failure on the platform. Try again.
2xx0every wallet callSuccess.
2xx8/bet, /result, /refundAlready applied: success. On /bet, the stake was taken.
2xx8/balanceA refusal, as below.
2xxany other numberevery wallet callA 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.
4xxevery wallet callA refusal, as above.
5xx, time-out, no connection, or a body without a numeric errorevery wallet callUnknown. /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." } }