Basic Pattern
- Check
success— iffalse, the request failed - Read
errorCode— use this for programmatic logic - Never parse
message— it is human-readable and may change without notice
HTTP Status Categories
Retry Strategy
- Only retry
429and500errors - Never retry
400,401,402, or403— these require a change in the request or account - For
429, use theRetry-Afterresponse header (value in seconds) - For
500, use exponential backoff (1s, 2s, 4s, max 3 retries)

