Skip to main content

Error Handling

Error response formats and codes.


Error Response Format

All errors are returned with a consistent JSON body:

{
"error": {
"message": "Not enough money to make a bet",
"code": "INSUFFICIENT_FUNDS"
}
}
Error Object Fields
FieldTypeDescription
error.messagestringHuman-readable description of the error
error.codestringMachine-readable error code. Use this for error handling logic

Wallet API Error Codes

Error Codes
CodeDescription
PLAYER_UNAUTHORIZEDWrong authorization bearer token
SERVER_UNAUTHORIZEDWrong authorization HMAC hash
SESSION_EXPIREDPlayer's session has expired
LOSS_LIMITPlayer's loss limit exceeded
INSUFFICIENT_FUNDSNot enough money to place the bet
TRANSACTION_NOT_FOUNDTransaction you're trying to cancel was not found
TRANSACTION_FAILEDTransaction was not processed
INTERNAL_ERRORInternal server error
CANCEL_REQUIREDCancel request reuired to rollback bet transaction

Free Bets API Error Codes

Error Codes
CodeDescription
VALIDATION_ERRORRequest validation error (missing or invalid fields)
FREE_BETS_NOT_FOUNDFree bets campaign you're trying to cancel was not found
INTERNAL_ERRORInternal server error

General error codes for Game Launch, Free Bets and Extra API's

Error Codes
CodeDescription
SERVER_ERRORContact tech support if you get it
APPLICATION_ERRORContact tech support if you get it