---
jsApi: true
title: "[F] getErrorsDoc"

---
```ts
getErrorsDoc(program, target): string | undefined
```

Get the documentation string for the return errors types of an operation.

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `program` | [`Program`](../interfaces/Program.md) | Program |
| `target` | [`Operation`](../interfaces/Operation.md) | Type |

## Returns

`string` \| `undefined`

Documentation value
