Rate limits and errors
Stay within your rate limits and fix common error responses.
Rate limits apply per app, per minute. Reads and writes are counted separately, and each product (assets, AI, converter) has its own limit.
Rate limit headers
Every response that gets past the rate limiter carries these headers, so you can see your remaining budget before you hit the limit:
|
Header |
What it tells you |
|---|---|
|
|
Requests allowed in the current window |
|
|
Requests left in the window |
|
|
When the window resets |
|
|
On a 429 or 202: how many seconds to wait before trying or polling again |
A 401 response has no rate limit headers, because it's refused before the limiter runs.
Two kinds of 429
|
|
Meaning |
What to do |
|---|---|---|
|
|
Too many requests this minute. It can also appear briefly while credits are being settled. |
Wait for |
|
|
Your credits for this billing period are used up |
Waiting won't help. Turn on extra credits, upgrade, or wait for your next period (Article 8). |
How to stay under your limits
- Poll AI tasks and conversion jobs at the
Retry-Afterinterval, not every second. - Read
X-RateLimit-Remainingand slow down before it hits zero. - Need higher limits? Contact support@iconscout.com or upgrade your plan.
All errors return a data.reason that tells you exactly what went wrong.
Common errors
|
Code |
|
Meaning |
|---|---|---|
|
202 |
– |
Accepted: an AI task or conversion job has started. Poll it. |
|
400 |
|
Bad request or file, or your plan doesn't cover the asset |
|
401 |
|
Missing or wrong Client ID or Client Secret (Article 2) |
|
402 |
|
A download would go past your spending limit (Article 8) |
|
403 |
|
Your plan doesn't include this AI operation or conversion, or it's off for your app |
|
404 |
|
Something doesn't exist, or belongs to another app |
|
409 |
|
Idempotency key already used, or the job isn't finished |
|
410 |
|
A conversion result was deleted after it expired |
|
413 |
|
The uploaded file is too large |
|
422 |
|
No active API plan, or the AI request was refused |
|
429 |
|
See above |
|
500–504 |
|
A service problem. You aren't charged. Retry later. |