> For the complete documentation index, see [llms.txt](https://docs.gluwa.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gluwa.com/api/errors-and-error-codes.md).

# Errors and Error Codes

Upon error, a response will contain details to help resolve the error. The response will contain the following fields:

### Error

| Attribute   | Type                  | Description                                                                                                                           |
| ----------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| Code        | `string`              | Error code.                                                                                                                           |
| Message     | `string`              | A detailed error message. We recommend not to rely on the message to programmatically handle the error. Use Code to do that instead.  |
| ID          | `string`              | **Optional.** For 500 responses only. If you encounter an error and this field is present, you can send us this ID for our reference. |
| ExtraData   | `string`              | ***Optional.*** Extra data that may be helpful to handle the error. This could be a JSON string.                                      |
| InnerErrors | `array of InnerError` | ***Optional.*** For validation errors specifically. See [InnerError](/api/errors-and-error-codes.md#innererror).                      |

### InnerError

| Attribute | Type     | Description                                                                                                                          |
| --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| Code      | `string` | Error code.                                                                                                                          |
| Path      | `string` | The name of the request object's attribute that has errors.                                                                          |
| Message   | `string` | A detailed error message. We recommend not to rely on the message to programmatically handle the error. Use Code to do that instead. |
