{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/quant/json-schema/quant-json-rpc-error-schema.json",
  "title": "JsonRpcError",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/quant-rpc-api-openapi.yml#/components/schemas/JsonRpcError",
  "type": "object",
  "required": [
    "jsonrpc",
    "id",
    "error"
  ],
  "properties": {
    "jsonrpc": {
      "type": "string",
      "enum": [
        "2.0"
      ]
    },
    "id": {
      "oneOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": [
            "integer",
            "null"
          ]
        }
      ]
    },
    "error": {
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "properties": {
        "code": {
          "type": "integer",
          "description": "Auth-related JSON-RPC error codes returned by `/rpc/{apiKey}`:\n- `-32000`: \"Missing credentials.\" (HTTP 401)\n- `-32001`: \"Invalid credentials.\" (HTTP 403)\n- `-32002`: \"Internal server error.\" (HTTP 500)\n"
        },
        "message": {
          "type": "string"
        }
      }
    }
  }
}