> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# Errors

> Standard error codes returned by the dApp API.

The dApp API adopts standardized error codes from
[EIP-1193](https://eips.ethereum.org/EIPS/eip-1193) and
[EIP-1474](https://eips.ethereum.org/EIPS/eip-1474). Branch on the code rather than the
message string.

## Error codes

| Code | Message | Meaning |
| - | - | - |
| `4001` | User Rejected Request | The user rejected the request. |
| `4100` | Unauthorized | The requested method or account has not been authorized. |
| `4200` | Unsupported Method | The provider does not support the requested method. |
| `4900` | Disconnected | The provider is disconnected from all chains. |
| `4901` | Chain Disconnected | The provider is not connected to the requested chain. |
| `-32700` | Parse error | Invalid JSON. |
| `-32600` | Invalid request | JSON is not a valid request object. |
| `-32601` | Method not found | Method does not exist. |
| `-32602` | Invalid params | Invalid method parameters. |
| `-32603` | Internal error | Internal JSON-RPC error. |
| `-32000` | Invalid input | Missing or invalid parameters. |
| `-32001` | Resource not found | Requested resource not found. |
| `-32002` | Resource unavailable | Requested resource not available. |
| `-32003` | Transaction rejected | Transaction creation failed. |
| `-32004` | Method not supported | Method is not implemented. |
| `-32005` | Limit exceeded | Request exceeds defined limit. |

For the complete specification, see
[CIP-103](https://github.com/canton-foundation/cips/blob/main/cip-0103/cip-0103.md).

## Related

* [Provider API](https://docs.canton.network/sdks-tools/sdks/dapp-sdk/reference/provider-api.md) — The methods that can return these errors.
