Skip to content
Last updated

Responses and Errors

All successful responses are sent with 2xx HTTP codes.

All errors will be sent with 4xx, 5xx HTTP codes.

Error Response Body:

FieldRequiredDescription
codeTrueSystem code for identification type of the error.
messageFalseMessage with error details.

Example of Error Response Body:

{
    "code": "REQUEST_NOT_VALID",
    "message": "gameId - must not be empty, betNumber - must not be null, startDate - must not be null, timezone - must not be empty, currencyCode - must not be null, endDate - must not be null, strategy - must not be null, bet - must not be null, name - must not be empty"
}

Errors

HTTP CodeCodeDescription
400ACTION_FORBIDDENAction is forbidden for current state of the campaign.
400REQUEST_NOT_VALIDInvalid request arguments.
400CAMPAIGN_ALREADY_STARTEDCampaign could not be changed after it was started.
400CAMPAIGN_ALREADY_ENDEDCampaign could not be changed after it was ended.
400CAMPAIGN_DISABLEDCampaign could not be changed after it was disabled.
400ROUND_NOT_FINISHEDRound is not finished.
400GAME_NOT_SUPPORTEDGame is not supported.
401NOT_AUTHORIZEDAuthentication failed.
403ACCESS_TO_ROUND_DENIEDAccess to round denied.
404CAMPAIGN_NOT_FOUNDCampaign not found.
404PARTICIPANT_NOT_FOUNDCampaign participant not found.
404ROUND_NOT_FOUNDRound not found.
404GAME_ACTION_EVENTS_SUBSCRIPTION_NOT_FOUNDGame Action Events Subscription not found.
429TOO_MANY_REQUESTSWhen requests per second exceed the limit.
500UNKNOWN_ERRORSomething went wrong, request not processed.
504TIMEOUTThe server did not respond within the expected time.