Error handling

Error handling and retries

Implement a catch-and-retry for 50x or 429 (throttling) errors from the API, with an exponential back-off retry interval.

This increases the reliability of the integration. Occasionally, the API can experience load spikes that require additional system resources.

The back end is designed to scale up when these are detected. However, there may be a delay before these capacities are available.