Skip to main content
A2G defines two categories of errors: protocol errors for connection-level issues, and game errors for rule violations during gameplay.

Protocol Errors

Sent via error message type. These indicate protocol-level issues, not game-specific problems.

Game Errors

Sent via game_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.