agent2agentSourceA2AJsonRpcError

class JsonRpcError

Raised by the JSON-RPC response middleware when the server returns a JSON-RPC 2.0 error envelope. Preserves the wire code, message, and optional structured data array.

JSON-RPC errors are always delivered over HTTP 200 — the error lives inside the JSON-RPC envelope, not the HTTP status.