Skip to main content
PostlyBee uses conventional HTTP status codes. Every error body has the same shape, with a stable code you can branch on:

Status codes

Error codes

Validation errors

Validation errors usually include an array of field messages:
Business-rule errors may use a single string in message instead.

Retry strategy

Retry only transient failures such as 429 and 5xx. Use exponential backoff with jitter, respect Retry-After, and cap the number of attempts. Do not automatically retry 400, 401, or 403 responses.
Log a request identifier, HTTP method, endpoint, status code, and response message. Never log the Authorization header or full API token.
Last modified on August 26, 2026