# NotFoundError

> For the complete documentation index, see [llms.txt](https://ensforge.com/llms.txt).

What NotFoundError means, which codes it carries and how to catch it in ensforge. Something the call requires does not exist.

Source: https://ensforge.com/docs/reference/errors/not-found-error

<ApiMeta kind="Error class" summary="7 codes · @ensforge/sdk" source="packages/sdk/src/errors/classes/NotFoundError.ts#L33" />

Something the call requires does not exist. Reads only throw this with `strict: true`;
otherwise they return `null`.

## Fields [#fields]

| Field | Type | Description |
| --- | --- | --- |
| `resource` | `string` | What was missing, e.g. a record key. |

## Codes [#codes]

| Code | Meaning | Retryable |
| --- | --- | --- |
| [`RESOLVER_NOT_FOUND`](/docs/reference/errors/RESOLVER_NOT_FOUND) | The name has no resolver. | No |
| [`RECORD_NOT_FOUND`](/docs/reference/errors/RECORD_NOT_FOUND) | The record is not set. | No |
| [`PRIMARY_NAME_NOT_SET`](/docs/reference/errors/PRIMARY_NAME_NOT_SET) | The address has no primary name. | No |
| [`PRIMARY_NAME_MISMATCH`](/docs/reference/errors/PRIMARY_NAME_MISMATCH) | The primary name does not resolve back to this address. | No |
| [`REGISTRY_NOT_FOUND`](/docs/reference/errors/REGISTRY_NOT_FOUND) | No registry was found for this name. | No |
| [`PLAN_NOT_FOUND`](/docs/reference/errors/PLAN_NOT_FOUND) | No saved plan was found with this id. | No |
| [`INDEXER_NOT_FOUND`](/docs/reference/errors/INDEXER_NOT_FOUND) | The indexer has no record of this resource. | No |

## Catch it [#catch-it]

`Effect.catchTag("NotFoundError", …)` or `error instanceof Errors.NotFoundError`. See [Handle errors](/docs/sdk/handle-errors).