pub enum RpcErrorCodes {
PARSE_ERROR = -32_700,
INVALID_REQUEST = -32_600,
METHOD_NOT_FOUND = -32_601,
INVALID_PARAMS = -32_602,
INTERNAL_ERROR = -32_603,
URL_ELICITATION_REQUIRED = -32_042,
}Expand description
Enum representing standard and mcp specific JSON-RPC error codes.
Variants§
PARSE_ERROR = -32_700
INVALID_REQUEST = -32_600
METHOD_NOT_FOUND = -32_601
INVALID_PARAMS = -32_602
INTERNAL_ERROR = -32_603
URL_ELICITATION_REQUIRED = -32_042
Trait Implementations§
Source§impl From<RpcErrorCodes> for i64
impl From<RpcErrorCodes> for i64
Source§fn from(code: RpcErrorCodes) -> Self
fn from(code: RpcErrorCodes) -> Self
Converts to this type from the input type.