mmcp_protocol/consts.rs
1/// JSON-RPC standard error codes
2pub mod error_codes {
3 // Standard JSON-RPC 2.0 error codes
4 /// Invalid JSON was received by the server.
5 pub const PARSE_ERROR: i64 = -32700;
6 /// The JSON sent is not a valid Request object.
7 pub const INVALID_REQUEST: i64 = -32600;
8 /// The method does not exist / is not available.
9 pub const METHOD_NOT_FOUND: i64 = -32601;
10 /// Invalid method parameter(s).
11 pub const INVALID_PARAMS: i64 = -32602;
12 /// Internal JSON-RPC error.
13 pub const INTERNAL_ERROR: i64 = -32603;
14}