Expand description
Product error mapping for Palette UI responses.
The Palette frontend renders code/message/remediation directly, so
the JSON body is ApplicationError itself (already Serialize); this
module only owns the HTTP status mapping. It delegates to
soma-http-api’s shared classification rather than duplicating
soma-api’s table — product-surface packages must not depend on one
another (see xtask check-architecture), so both surfaces depend on the
same shared/* crate instead.
Functions§
- launcher_
not_ found 404body for a launcher id that doesn’t resolve to any palette-exposed tool. The lookup happens in this crate, before any call reachesSomaApplication, so there is no realApplicationErrorto map — but the body is still built as anApplicationErrorvalue (rather than a hand-rolledjson!literal) so every/v1/palette/*error response, found-then-failed or never-found, shares one wire shape (code/message/retryable/remediation/details) for the frontend.- palette_
error_ response - palette_
error_ status