krapio
Library referenceTypes

AppErrorCode

type AppErrorCode = 
  | "invalid_request"
  | "approval_unavailable"
  | "invalid_redirect_uri"
  | "text_too_long"
  | "invalid_token"
  | "insufficient_scope"
  | "not_clan_officer"
  | "not_friends"
  | "not_found"
  | "busy"
  | "idempotency_in_progress"
  | "item_locked"
  | "rejected"
  | "rate_limited"
  | "dm_limit_reached"
  | "server_error"
  | "temporarily_unavailable"
  | string & {
};

the codes that are not a game rule; a 422 can carry any game code (market_price_changed, trade_level_too_low, ...)