Handling Errors


Here is a list of all available errors

genericError

We cannot elaborate the request. Something happened

{
    "object_id" : "CCRkBRNQrU",
    "key" : "genericError",
    "title" : "Generic error",
    "description" : "We cannot elaborate the request. Something happened",
    "status_code" : 400
}

misconfiguredSweepstake

Check that Terms&Conditions doc is attached, that you setup extraFields or uncheck extraFields option if you don't want them to exist, that you setup correctly awards and that you have generated winning moments

{
    "object_id" : "bq2Oqrxc5h",
    "key" : "misconfiguredSweepstake",
    "title" : "Your sweepstake is misconfigured",
    "description" : "Check that Terms&Conditions doc is attached, that you setup extraFields or uncheck extraFields option if you don't want them to exist, that you setup correctly awards and that you have generated winning moments",
    "status_code" : 403
}

sweepstakeEnded

Unfortunately sweepstake is ended!

{
    "object_id" : "wdjTh9Feaz",
    "key" : "sweepstakeEnded",
    "title" : "Sweepstake is ended",
    "description" : "Unfortunately sweepstake is ended!",
    "status_code" : 400
}

sweepstakeIsEnded

Unfortunately sweepstake is ended and you cannot interact with it!

{
    "object_id" : "TipCrlBKXP",
    "key" : "sweepstakeIsEnded",
    "title" : "Sweepstake is ended",
    "description" : "Unfortunately sweepstake is ended and you cannot interact with it!",
    "status_code" : 400
}

sweepstakeIsStarted

Unfortunately sweepstake is started and you cannot delete it at the moment!

{
    "object_id" : "PIBVXnQosm",
    "key" : "sweepstakeIsStarted",
    "title" : "Sweepstake is started",
    "description" : "Unfortunately sweepstake is started and you cannot delete it at the moment!",
    "status_code" : 400
}

sweepstakeNotEnded

Unfortunately sweepstake is not ended yet and you cannot interact with it!

{
    "object_id" : "MiBVR1waIm",
    "key" : "sweepstakeNotEnded",
    "title" : "Sweepstake is not ended yet",
    "description" : "Unfortunately sweepstake is not ended yet and you cannot interact with it!",
    "status_code" : 400
}

sweepstakeNotFound

Sweepstake has not been found

{
    "object_id" : "9zm3PLX1UY",
    "key" : "sweepstakeNotFound",
    "title" : "Sweepstake not found",
    "description" : "Sweepstake has not been found",
    "status_code" : 404
}

sweepstakeNotStarted

Unfortunately sweepstake has not started yet!

{
    "object_id" : "AtBrNdjB3K",
    "key" : "sweepstakeNotStarted",
    "title" : "Sweepstake not started",
    "description" : "Unfortunately sweepstake has not started yet!",
    "status_code" : 400
}

userUnauthorized

User is not authorized to interact with this resource

{
    "object_id" : "Dj6eLUr5wv",
    "key" : "userUnauthorized",
    "title" : "User unauthorized",
    "description" : "User is not authorized to interact with this resource",
    "status_code" : 401
}