Wallet IntegrationError Handling

Error Handling

The APIs use standard HTTP status codes to indicate successful processing of a request, or the type of error encountered. The response body may also contain additional application-specific error information.

HTTP Status CodeError CodeDescription
200 – OK-Succesful request
401 – UNAUTHORIZEDAUTHENTICATION_FAILEDBasic authentication failed
403 – FORBIDDENINVALID_TOKENAuth token sent in authenticate is invalid
400 – BAD REQUESTINVALID_PLAYERPlayer is either invalid or nor found
INVALID_SESSION_TOKENPlayer session is either expired or not found
INVALID_CURRENCYCurrency not supported or not match with player’s currency
INVALID_BETBet is either not found or invalid
402 – PAYMENT REQUIREDINSUFFICIENT_FUNDSPlayer doesn’t have enough funds to complete the bet
500 – INTERNAL SERVER ERROR-Unexpected Internal Error

Example of a returned error: 402 PAYMENT_REQUIRED

{
    "errorCode": "INSUFFICIENT_FUNDS",
    "description": "The player does not have sufficient funds"
}