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

# Errors

> Learn about how to handle errors in the Infinite Creator API.

Infinite Creator uses conventional HTTP response codes to indicate the success or failure of an API request.

In general:

* Codes in the 2xx range indicate success.
* Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted).
* Codes in the 5xx range indicate an error with our servers or infrastructure. Refer to [our status page](https://status.infinitecreator.com) for information regarding incidents.

### HTTP Response Status Codes

| Code | Description           | Comment                                                                |
| ---- | --------------------- | ---------------------------------------------------------------------- |
| 2xx  | Success               | Everything worked as expected.                                         |
| 400  | Bad Request           | The request was unacceptable, often due to missing or malformed input. |
| 401  | Unauthorized          | No valid API key provided.                                             |
| 402  | Payment Required      | You don't have enough credits to perform the request.                  |
| 403  | Forbidden             | The API key doesn’t have permissions to perform the request.           |
| 404  | Not Found             | The requested resource doesn’t exist.                                  |
| 405  | Method Not Allowed    | The endpoint does not support the requested HTTP method.               |
| 429  | Too Many Requests     | Too many requests hit the API too quickly.                             |
| 500  | Internal Server Error | Something went wrong on our end.                                       |
| 503  | Service Unavailable   | The service is temporarily unavailable.                                |

### Attributes

<ResponseField name="code" type="nullable string">
  For some errors that could be handled programmatically, a short string
  indicating the error code reported. Refer to the OpenAPI documentation for
  the full list of error codes as they are usually specific to the operation.
</ResponseField>

<ResponseField name="message" type="nullable string">
  A human-readable message providing more details about the error.
</ResponseField>

<ResponseField name="context" type="nullable dictionary">
  A dictionary containing additional information about the error. For example,
  if the error is due to a missing or malformed request parameter, this will
  include the location of that parameter.
</ResponseField>
