# ErrorCode

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**@midnight-ntwrk/dapp-connector-api v4.0.1**](https://docs.midnight.network/api-reference/dapp-connector.md)

***

[@midnight-ntwrk/dapp-connector-api](https://docs.midnight.network/api-reference/dapp-connector/globals.md) / ErrorCode

# Type Alias: ErrorCode

> **ErrorCode** = *typeof* [`ErrorCodes`](https://docs.midnight.network/api-reference/dapp-connector/variables/ErrorCodes.md)\[keyof *typeof* [`ErrorCodes`](https://docs.midnight.network/api-reference/dapp-connector/variables/ErrorCodes.md)]

All possible error codes gathered in a single union type. They are defined in [ErrorCodes](https://docs.midnight.network/api-reference/dapp-connector/variables/ErrorCodes.md).
