Publora API advises handling errors by stable codes rather than message text
A developer guide argues that API integrations should branch on error codes instead of parsing human-readable messages, since messages can change while codes stay stable. The Publora API attaches stable codes to errors in several places, including top-level responses, per-platform validation errors, warnings on successful requests, per-URL media results, and per-connection issues. Validation errors are non-retryable and name the affected platform and field, so one request can reveal exactly which network rejected a post and why. The author recommends sorting codes into three buckets: retry with the same idempotency key, re-read the resource and then retry, or fix the input before resubmitting. The guide also notes that successful responses can include warnings, such as a clock-skew adjustment to the scheduled time.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in