# Status Code and Throttling

## HTTP Status Code

<table data-header-hidden><thead><tr><th width="152.0859375">Status Code</th><th>Description</th></tr></thead><tbody><tr><td><code>200</code></td><td>Successful.</td></tr><tr><td><code>201</code></td><td>The resource has been created.</td></tr><tr><td><code>202</code></td><td>Accepted. Your image generation request has been accepted for processing.</td></tr><tr><td><code>400</code></td><td>Check your request, it is invalid.</td></tr><tr><td><code>401</code></td><td>Not authorized. Make sure the provided API key is correct.</td></tr><tr><td><code>404</code></td><td>The resource is not found.</td></tr><tr><td><code>405</code></td><td>Method not allowed. Ensure you're using the correct HTTP verb for the endpoint.</td></tr><tr><td><code>429</code></td><td>Too many requests, slow down. See <a href="#throttling">throttling</a>. </td></tr><tr><td><code>500</code></td><td>Something is wrong with our server. Let us know!</td></tr></tbody></table>

## Throttling

Throttle rate is set at 10 requests per 10 seconds. You request will return with `429` status if your request has been throttled.

The following headers will also be sent,

<table data-header-hidden><thead><tr><th width="233.78729248046875">Header</th><th>Descripton</th></tr></thead><tbody><tr><td><code>X-RATELIMIT-LIMIT</code></td><td>Current limit</td></tr><tr><td><code>X-RATELIMIT-REMAINING</code></td><td>Remaining request that can be sent within limit</td></tr><tr><td><code>X-RATELIMIT-RESET</code></td><td>Epoch time (seconds) for when the limit is reset</td></tr></tbody></table>
