Skip to main content

JsonRpcError

A JSON-RPC 2.0 error object.

codeinteger<int64>required

Numeric error code.

Example: -32602
dataobject | nullnullable

Optional structured detail, e.g. the offending parameter.

messagestringrequired

Short human-readable description.

Example: Invalid params
JsonRpcError
{
"code": -32602,
"data": "Unknown Type: object,null",
"message": "Invalid params"
}