mjsonrpc 1.0
A lightweight JSON-RPC 2.0 message parser and generator based on cJSON
Loading...
Searching...
No Matches
Macros
JSON-RPC 2.0 Standard Error Codes

Standard error codes defined by JSON-RPC 2.0 specification. More...

Macros

#define JSON_RPC_CODE_PARSE_ERROR   (-32700)
 Parse error - Invalid JSON was received by the server.
 
#define JSON_RPC_CODE_INVALID_REQUEST   (-32600)
 Invalid Request - The JSON sent is not a valid Request object.
 
#define JSON_RPC_CODE_METHOD_NOT_FOUND   (-32601)
 Method not found - The method does not exist / is not available.
 
#define JSON_RPC_CODE_INVALID_PARAMS   (-32603)
 Invalid params - Invalid method parameter(s)
 
#define JSON_RPC_CODE_INTERNAL_ERROR   (-32693)
 Internal error - Internal JSON-RPC error.
 

Detailed Description

Standard error codes defined by JSON-RPC 2.0 specification.

Macro Definition Documentation

◆ JSON_RPC_CODE_INTERNAL_ERROR

#define JSON_RPC_CODE_INTERNAL_ERROR   (-32693)

Internal error - Internal JSON-RPC error.

Definition at line 73 of file mjsonrpc.h.

◆ JSON_RPC_CODE_INVALID_PARAMS

#define JSON_RPC_CODE_INVALID_PARAMS   (-32603)

Invalid params - Invalid method parameter(s)

Definition at line 70 of file mjsonrpc.h.

◆ JSON_RPC_CODE_INVALID_REQUEST

#define JSON_RPC_CODE_INVALID_REQUEST   (-32600)

Invalid Request - The JSON sent is not a valid Request object.

Definition at line 64 of file mjsonrpc.h.

◆ JSON_RPC_CODE_METHOD_NOT_FOUND

#define JSON_RPC_CODE_METHOD_NOT_FOUND   (-32601)

Method not found - The method does not exist / is not available.

Definition at line 67 of file mjsonrpc.h.

◆ JSON_RPC_CODE_PARSE_ERROR

#define JSON_RPC_CODE_PARSE_ERROR   (-32700)

Parse error - Invalid JSON was received by the server.

Definition at line 61 of file mjsonrpc.h.