Expand description
One error shape for the whole API.
kasl agents parse what comes back, so a failure has to be as predictable as a success: always JSON, always the same field. A handler returning a bare status leaves the agent guessing whether to retry, fix its payload, or tell the employee something is wrong.
Structsยง
- ApiError
- A failed request, with the status the client should act on.