# NetworkError

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

What NetworkError means, which codes it carries and how to catch it in ensforge. The RPC provider could not be reached or rejected the request.

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

<ApiMeta kind="Error class" summary="4 codes · @ensforge/sdk" source="packages/sdk/src/errors/classes/NetworkError.ts#L25" />

The RPC provider could not be reached or rejected the request. Usually worth retrying.

Any action can fail with `NetworkError`: it is part of `Errors.CommonError`.

## Fields [#fields]

| Field | Type | Description |
| --- | --- | --- |
| `status` | `number` | HTTP status, when the transport is HTTP. |

## Codes [#codes]

| Code | Meaning | Retryable |
| --- | --- | --- |
| [`RPC_REQUEST_FAILED`](/docs/reference/errors/RPC_REQUEST_FAILED) | The RPC request failed. | Yes |
| [`RPC_TIMEOUT`](/docs/reference/errors/RPC_TIMEOUT) | The RPC request timed out. | Yes |
| [`RATE_LIMITED`](/docs/reference/errors/RATE_LIMITED) | The RPC provider is rate limiting requests. | Yes |
| [`LOG_RANGE_TOO_LARGE`](/docs/reference/errors/LOG_RANGE_TOO_LARGE) | The RPC provider's eth_getLogs limits make this block range too expensive. | Yes |

## Catch it [#catch-it]

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