Module codes

Module codes 

Source
Expand description

Standard JSON-RPC and MCP error codes.

This module defines error code constants used in JSON-RPC 2.0 responses and MCP-specific error responses.

Constantsยง

INTERNAL_ERROR
Internal JSON-RPC error.
INVALID_PARAMS
Invalid method parameters.
INVALID_REQUEST
The JSON sent is not a valid Request object.
METHOD_NOT_FOUND
The method does not exist.
PARSE_ERROR
Invalid JSON was received.
RESOURCE_NOT_FOUND
Resource was not found.
SERVER_ERROR_END
Server error range end.
SERVER_ERROR_START
Server error range start.
USER_REJECTED
User rejected the operation.