# Errors

- [JSON representation](https://developers.google.com/shopping-content/reference/rest/v2.1/Errors#SCHEMA_REPRESENTATION)
- [Error](https://developers.google.com/shopping-content/reference/rest/v2.1/Errors#Error)
  - [JSON representation](https://developers.google.com/shopping-content/reference/rest/v2.1/Errors#Error.SCHEMA_REPRESENTATION)

A list of errors returned by a failed batch entry.

| JSON representation |
|---|
| ``` { "errors": [ { object (`https://developers.google.com/shopping-content/reference/rest/v2.1/Errors#Error`) } ], "code": integer, "message": string } ``` |

| Fields ||
|---|---|
| `errors[]` | ``object (`https://developers.google.com/shopping-content/reference/rest/v2.1/Errors#Error`)`` A list of errors. |
| `code` | `integer (https://developers.google.com/discovery/v1/type-format format)` The HTTP status of the first error in `errors`. |
| `message` | `string` The message of the first error in `errors`. |

## Error

An error returned by the API.

| JSON representation |
|---|
| ``` { "domain": string, "reason": string, "message": string } ``` |

| Fields ||
|---|---|
| `domain` | `string` The domain of the error. |
| `reason` | `string` The error code. |
| `message` | `string` A description of the error. |