JSON-RPC Error Object

When a call encounters an error, the Response Object will contain the error member with a value that is an Object with the following members:

code

A Number that indicates the error type that occurred. This is an integer.

message

A String providing a short description of the error.

data

A Primitive or Structured value that contains additional information about the error.

Grouping this all together will give the complete JSON-RPC response:

Copy
{ "jsonrpc": "version", "id": 0, "error": { "code": "error-code",
        "message": "error-message" } }