# ErrorBody

The ErrorBody type of the TypeScript SDK, part of ErrorOrValidation.

```ts
type ErrorBody = {
  error: string
  [key: string]: unknown
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `error` | `string` | Machine-readable snake_case error code |

## Used in

[`ErrorOrValidation`](/docs/sdks/typescript/types/error-or-validation).
