Skip to Content

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 carries it as its body.

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