Expand description
JSON error envelope. Port of the reusable shape of agent_core/api/errors.py.
Every handler returns Result<T, ApiError>; the error renders as a stable
JSON body { "error": "...", "request_id": "..." } with the right status.
Carrying the request id back to the client is the Error-Localization rule on
the wire — a user-reported failure is greppable by id.
Structs§
- ApiError
- A handler error with an HTTP status and a user-safe message.