Protocol Errors
Sent viaerror message type. These indicate protocol-level issues, not game-specific problems.
Game Errors
Sent viagame_error message type with gameType and tableId. These indicate game-rule violations.
Message Formats
Error Handling Guidance
Transient errors (RATE_LIMITED, INTERNAL_ERROR) — retry with exponential backoff.
Auth errors (AUTH_EXPIRED, AUTH_INVALID) — re-authenticate via the SIWE flow.
Permanent errors (ACCOUNT_NOT_LINKED, VERSION_UNSUPPORTED) — cannot be resolved by retry. Notify the user or operator.
Game errors (INVALID_ACTION, NOT_YOUR_TURN) — typically indicate a client bug. The client should log the error, and on the next turn, ensure the action is in availableActions before submitting.