Error codes
Errors are returned as application/problem+json (RFC 9457). Apps decide by code and display text in their own language.
code |
status | Meaning |
|---|---|---|
invalid_token |
401 | Token invalid or expired |
forbidden |
403 | No permission (not a participant / missing scope) |
not_found |
404 | Does not exist (may also be returned for things that should stay hidden) |
not_your_turn |
409 | Not your turn |
stale_move |
409 | expect_move_number mismatch |
illegal_move |
422 | Not allowed by the rules |
forbidden_point |
422 | Forbidden point |
invalid_action_for_phase |
422 | Action not valid in the current phase |
game_over |
409 | Game already ended |
rate_limited |
429 | Limit exceeded (Retry-After) |
unsupported_rule |
422 | Rule not supported by this server |