Skip to main content
KavachOS returns structured errors in the following shape:
All SDK functions that can fail return a Result<T> discriminated union rather than throwing:
For REST API calls, errors are returned as JSON with the corresponding HTTP status code:

Error code reference

Agent errors

Permission errors

Token errors

Delegation errors

MCP / OAuth errors

General errors

Last modified on April 29, 2026