Skip to main content

Common Error Codes

Apollo AI uses standard HTTP status codes to indicate the success or failure of your requests.
CodeStatusDescription
200OKThe request was successful.
400Bad RequestThe request was invalid (e.g. missing parameters).
401UnauthorizedReview your API key.
403ForbiddenYour API key doesn’t have permissions (e.g. invalid Tier).
429Too Many RequestsYou have hit a rate limit or daily quota.
500Server ErrorSomething went wrong on our end.

Handling Rate Limits (429)

If you receive a 429 error, you have exceeded your rate limit or daily quota.
  • Tier Limits: Each tier (Starter, Economy, Pro, Ultimate) has different daily limits for images and requests.
  • Backoff: Implement exponential backoff in your code to retry requests after a delay.
import time

def safe_request(url, headers, data):
    max_retries = 3
    for i in range(max_retries):
        response = requests.post(url, headers=headers, json=data)
        if response.status_code == 429:
            time.sleep(2 ** i)  # Exponential backoff
            continue
        return response