Skip to content

API Reference


API Reference / ErrorCode

Variable: ErrorCode

const ErrorCode: object

Defined in: src/mcp/Server.ts:19

JSON-RPC error codes used by this server.

Type Declaration

PARSE_ERROR

readonly PARSE_ERROR: -32700 = -32700

INVALID_REQUEST

readonly INVALID_REQUEST: -32600 = -32600

METHOD_NOT_FOUND

readonly METHOD_NOT_FOUND: -32601 = -32601

INVALID_PARAMS

readonly INVALID_PARAMS: -32602 = -32602

INTERNAL_ERROR

readonly INTERNAL_ERROR: -32603 = -32603

Community project — not affiliated with Dhan. MIT License.