155API

Error Codes

All error status codes used in the 155.io API


This page lists all error status codes used across the API.

Security Errors

StatusDescription
INVALID_SIGNATURERequest signature validation failed. Check your signing implementation.

System Errors

StatusDescription
EXTERNAL_SERVICE_TIMEOUT_ERRORRequest to external service timed out. Retry the request.

155.io API Errors

Errors returned by our endpoints.

/game/games

StatusHTTP CodeDescription
UNKNOWN_OPERATOR404No operator exists for the provided operatorId

Operator API Errors

Errors you should return from your endpoints.

/balance

StatusHTTP CodeDescription
SESSION_EXPIRED_ERROR400Player session has expired
PLAYER_NOT_FOUND_ERROR404Player does not exist
SESSION_NOT_FOUND_ERROR404Session does not exist

/bet

StatusHTTP CodeDescription
INSUFFICIENT_BALANCE_ERROR200Player does not have enough balance for this bet
DUPLICATE_TRANSACTION_ERROR200Transaction ID already exists with a different payload
BONUS_ERROR200Bet does not pass bonus rules
BET_LIMIT_REACHED_ERROR200Player has reached their betting limit
UNKNOWN_ERROR200Bet could not be registered

/rollback

StatusHTTP CodeDescription
DUPLICATE_TRANSACTION_ERROR200Transaction ID already exists with a different payload
UNKNOWN_ERROR200Rollback could not be processed

/win

StatusHTTP CodeDescription
DUPLICATE_TRANSACTION_ERROR200Transaction ID already exists with a different payload
UNKNOWN_ERROR200Win could not be registered

Error Response Format

All error responses should include the status field and echo back the requestId and clientPlayerId:

{
  "status": "ERROR_CODE_HERE",
  "requestId": "original-request-id",
  "clientPlayerId": "player-id"
}

All responses must be signed with the X-Marbles-Signature header, including error responses.

On this page