Skip to main content
Every error is JSON with the same two fields:
code is stable and safe to branch on. error is for humans and may change.

Codes

A retry policy that behaves

  • 4xx (except 429): do not retry. The request will fail the same way again. Log it and move on.
  • 429: wait Retry-After seconds, then retry once.
  • 5xx and network errors: exponential backoff starting at a couple of seconds, capped at about 30 seconds, for a handful of attempts. Then surface the failure — a feed that has been failing for an hour needs a human.
404 for an id you were previously given is not an error in your code. The object may have been deleted, or the share link revoked. Treat it as “gone” and keep the local copy you already have — engagement history does not become less true because the link it came through was retired.