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

# Error Codes

# Error Message Format

Most API errors across the Archetype platform return errors in the following JSON format to help you understand and resolve the error:

```
{
  "errors": [
    {
      "code": "missing_parameter",
      "message": "Failed to find key: some_key",
      "suggestion": "Resubmit your query with the expected parameters.",
      "error_uid": "err-abc123",
    }
  ]
}
```

Each error has the following structure:

* **code**: a specific error code, which is listed in the table below
* **message**: an error message describing the problem behind the error
* **suggestion**: a suggestion on how to potentially resolve or mitigate the error
* **error\_uid**: a unique error ID for every error, you can share this error with the Archetype team to help debug the issue

Note that there may be more than one error reported, such as a missing parameter and an invalid parameter value. Each error will return a specific code, message, suggestion, and error\_uid.

The following table describes Archetype error codes.

# Error Codes

| Code                          | Description                                                                                                                        | API or Service |
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -------------- |
| `invalid_file_type`           | The uploaded file type is not supported. See the [File Types page](/core-concepts/files/files#files-api) for the supported types.  | Files API      |
| `invalid_file_size`           | File size is outside the acceptable range. See the [File Types page](/core-concepts/files/files#files-api) for the supported size. | Files API      |
| `capacity_reached`            | The file service has reached memory capacity. Delete files or wait for inactive files to be removed.                               | Files API      |
| `file_backup_failed`          | The file service failed to backup the file after upload.                                                                           | Files API      |
| `internal_logic_error`        | An internal platform logic error occurred (e.g., missing org\_id, api\_key, or query\_id). Report this error to support.           | Lens API       |
| `invalid_model_parameter`     | A model parameter has an invalid value. Either `sensor_buffer_size` is `<= 0 or `input\_frame\_step\_size` is <= 0`.               | Lens API       |
| `sensor_log_conversion_error` | Failed to convert input sensor logs to YAML format. Validate your sensor logs are YAML safe.                                       | Lens API       |
| `empty_sensor_log_error`      | Sensor logs appear to be empty. Check your sensor log data is not empty.                                                           | Lens API       |
| `max_query_size_exceeded`     | Query size exceeds the maximum limit (default 255 MB). Decrease JSON event size or sensor buffer size.                             | Lens API       |
| `session_ttl_reached`         | The session has reached its time-to-live limit. Restart your session and increase the TTL if needed.                               | Lens API       |

For supported files types and more details, refer to the [File types](/core-concepts/files/files#file-formats).
