# ErrorOrValidation

What the API answers a failed call with: an ErrorBody, or for validation_failed a ValidationError with its issues. A RequestError carries it as its body.

What the API answers a failed call with: an `ErrorBody`, or for `validation_failed` a `ValidationError` with its `issues`. A [`RequestError`](/docs/sdks/typescript/errors) carries it as its `body`.

```ts
/** The API's `ErrorOrValidation`, as the document describes it. */
type ErrorOrValidation = ValidationError | ErrorBody
```
