> ## Documentation Index
> Fetch the complete documentation index at: https://developers.partoo.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Retry Tips

> Ensure robust integrations with retry logic for rate limits and transient errors.

## When to Retry

Implement retry logic for the following situations:

* **429 Too Many Requests**
* **5xx Server Errors** (e.g., 500, 503)

<Tip>
  Use exponential backoff with jitter to space retries safely and avoid system overload.
</Tip>

<Note>
  Learn more about how rate limits work on our <a href="/guides/api/getting-started/api-fundamentals/rate-limits">Rate Limiting</a> page.
</Note>

## Retry Headers

For 429 errors, respect the `Retry-After` header value:

```http theme={null}
Retry-After: 60
```

<Steps>
  <Step title="Detect 429 response">
    Check if the HTTP status code equals 429.
  </Step>

  <Step title="Wait before retrying">
    Use the value from the `Retry-After` header to delay your retry.
  </Step>

  <Step title="Retry the request">
    Reattempt the same request after the delay.
  </Step>
</Steps>

<Warning>
  Avoid tight retry loops — they may cause cascading failures or get your integration rate-limited further.
</Warning>
