Every refusal a request can meet, and the bounds that keep one agent from taking the person's window.
JSON-RPC errors
| Code | Means |
|---|---|
-32700 | the body is not JSON |
-32600 | not a valid request (a GET where only POST is served, a wrong Origin) |
-32601 | no such method |
-32602 | the arguments do not fit (an unknown field, a missing one, a wrong type, an unknown task id) |
-32603 | an error inside Bentrix |
-32020 | Mcp-Method or Mcp-Name is missing or differs from the body |
-32021 | a task request from a client that did not declare the tasks extension |
-32022 | a protocol version Bentrix does not speak |
-40001 | busy |
An HTTP 401 means the token is not (or no longer) valid — it was revoked, or another program paired under the same name; pair again. 403 means the Host or the Origin is not this computer's.
01A tool's refusal
A tool that runs and refuses answers isError: true with Bentrix's own sentence, and _meta["bentrix/machine"] when there is a kind to branch on (insufficient_scope, busy, expired). See calling tools.
02The limits
They exist so that one misbehaving agent cannot take the person's window, memory or sockets:
| Bound | Value |
|---|---|
| a request's body | 1 MB |
| a request's head | 16 KB, 64 headers |
| open connections | 64 |
| requests | 20 a second per token, bursts of 60 |
| calls running at once | 16 per token (the 17th is busy) |
| subscriptions | 32 per token |
| a pairing request's body | 4 KB; pairing 1 every 2 seconds, bursts of 8 |
| reading a request | 10 s; writing an answer 30 s; a stream 600 s |
| keep-alive on a stream | every 15 s |