send errors to pending requests if server closes (#333)

Co-authored-by: ihrpr <inna@anthropic.com>
This commit is contained in:
Marshall Roch 2025-05-27 17:55:27 -04:00 • committed by GitHub
commit 7901552eba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -149,6 +149,10 @@ class JSONRPCResponse(BaseModel):
model_config = ConfigDict(extra="allow")
# SDK error codes
CONNECTION_CLOSED = -32000
# REQUEST_TIMEOUT = -32001 # the typescript sdk uses this
# Standard JSON-RPC error codes
PARSE_ERROR = -32700
INVALID_REQUEST = -32600