Skip to main content
Every error is a subclass of TrustGateError, which carries the HTTP status and the gateway’s error code when there is one. They are classes rather than status codes because the useful question is never which number came back, but whether the fix is yours, your user’s, or your admin’s.

At startup

During a call

When nothing makes sense

A 404 from /whoami almost always means the SDK was pointed at the wrong address: an /<application>/mcp endpoint, or the LLM plane, instead of the MCP host on its own. The error quotes the URL it tried. The whoami example in the SDK repository prints what the key reaches, when it expires, and for each server whether an account is connected and who connects it.