Skip to main content
Errors use standard HTTP status codes and always have this shape:
Branch on code; it never changes. message is written for people and may be reworded. details adds context where it helps.

Retrying

  • Retry 429 after details.resetsAt, and 500 with exponential backoff.
  • Don’t retry 4xx errors other than 429 unchanged: fix the request first.
  • Retrying a post creation is safe: an identical post within 5 minutes returns duplicate_post instead of posting twice.