Skip to main content
Lexera uses conventional HTTP status codes for transport-level issues and streams detailed JSON error payloads over the open SSE connection when a tool execution fails. Understanding the difference helps you distinguish between a connection problem and a business-logic rejection, so you can respond with the correct fix.

Error signatures

Streamed error payload example

When a tool execution fails, the error is delivered as a JSON-RPC response over SSE with isError: true:

Detailed error reference

This error occurs when lexera_route_to_specialist attempts to place a temporary hold on the corporate AED wallet and the balance is below the required tier. The streamed payload includes the exact amount needed (for example, AED 699.00 for UAE).Resolution: Contact a workspace finance administrator to add a corporate wallet credit, then retry the dispatch.
This error occurs when the JSON-RPC params.arguments object does not match the tool’s schema. Common causes include missing required fields (such as document_text or target_jurisdiction), incorrect types, or typos in argument names.Resolution: Inspect the path and expected fields in the error payload to identify which argument is invalid, then correct the payload and retry.
This error occurs on the transport layer when the Authorization header is missing, malformed, or contains an expired or revoked API key. All authenticated MCP tools require a valid Bearer token.Resolution: Verify that the header is exactly Authorization: Bearer lex_... and that the key is active in the Lexera Developer Dashboard. Regenerate the key if necessary.