code, wherever it arrives.
- HTTP errors are about the key, the account or the request itself. The body is JSON with
error(a sentence) andcode. - Tool errors come back as a normal
200JSON-RPC result withisError: true.structuredContenthaserror,code, and sometimesdetail.erroris written for a person, so you can show it as it is. - JSON-RPC errors are about the message: a method or a tool that doesn’t exist, or arguments that aren’t an object.
HTTP errors
A
401 also carries a WWW-Authenticate: Bearer realm="tashvi" header, which is what starts sign-in in apps that support it.
Tool errors
These come back inside the result, withisError: true.
A CAD build that runs out of balance partway doesn’t fail: it pauses with its best version saved.
JSON-RPC errors
Limits
Each tool has a time limit for one call. It’s set to end before an AI app gives up waiting (Claude gives up at about 240 seconds), so a result is never lost.
Set your client’s tool timeout to at least 240 seconds, so it doesn’t cut off a call Tashvi is still answering.
A few features also have short-window limits of their own: 3D drafts, searching Explore, and Tashvi One’s assistant. A call over one of them answers
rate_limited. Beyond those, your balance and your key’s cap are what limit spending.
Retrying
- Safe to retry:
503,too_many_calls,designs_unavailable,rate_limited(after the wait), and any call that only waits (videoRequestIdorbuildIdalone). - Check first:
took_too_long, a dropped connection, or any paid call whose answer you didn’t get. The work may have been made and charged. Look withtashvi_library, or for Tashvi One withtashvi_one_ask, before you call again. - Don’t retry:
402,401,403. They need a person.