Error format and error code use cases
Error code indicating the type of error
BAD_REQUEST
UNAUTHORIZED
NOT_FOUND
DENIED
LOW_BALANCE
AMOUNT_LIMIT
EXPIRED
CONFLICT
TIMEOUT
OTHER
Detailed error message
401
Signature is missing or invalid
404
Any id in request is invalid
400
Request is denied
Player balance is less than bet amount
Bet amount exceeds limit
Game session or round are expired
409
Transaction with such id already exists
Any other issues with request data
500
Any issues that are not related to the request data
Last updated 27 minutes ago
{ "code": "BAD_REQUEST", "message": "text" }