# ErrorCode (@salmonui/mcp)

> The ErrorCode constant of @salmonui/mcp: JSON-RPC 2.0 and MCP error codes.

Canonical: https://salmonui.dev/docs/reference/mcp/ErrorCode

```ts
import { ErrorCode } from '@salmonui/mcp';
```

Entry index: https://salmonui.dev/docs/reference/mcp (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/mcp.md).

## Reference

Kind: const

```ts
const ErrorCode: Readonly<{
    ParseError: -32700;
    InvalidRequest: -32600;
    MethodNotFound: -32601;
    InvalidParams: -32602;
    InternalError: -32603;
    UnsupportedProtocolVersion: -32022;
}>;
```

JSON-RPC 2.0 and MCP error codes.
