Skip to content
Developer Preview

ErrorResponse

An error response frame. Exactly one of result or error appears on a response; this type is the error half.

  • error
  • id
  • jsonrpc
Source

schema/msp/experimental/msp.schema.json#/types/ErrorResponse

{
"description": "An error response frame. Exactly one of `result` or `error`\nappears on a response; this type is the `error` half.",
"properties": {
"error": {
"$ref": "#/$defs/ErrorObject",
"description": "The error payload."
},
"id": {
"anyOf": [
{
"$ref": "#/$defs/RequestId"
},
{
"type": "null"
}
],
"description": "Echo of the request id; `null` **only** for an unrecoverable parse\nerror whose offending id could not be recovered. Always\nserialized, so `None` renders as `null` rather than being omitted —\nrequired-but-nullable (see [`require_nullable_id`])."
},
"jsonrpc": {
"$ref": "#/$defs/JsonRpcVersion",
"description": "The literal `\"2.0\"`."
}
},
"required": [
"error",
"id",
"jsonrpc"
],
"type": "object"
}