pub fn application_error_status(code: &str) -> StatusCodeExpand description
Map a Soma ApplicationError.code value to the HTTP status it renders
as.
This is the single, shared classification used across every REST/HTTP
product surface that emits ApplicationError bodies (soma-api,
soma-palette, …). Product-surface crates must not depend on one
another (see xtask check-architecture), so this table lives here
rather than being duplicated per surface or exposed by one surface for
another to import. Callers pass the plain code string rather than the
ApplicationError type itself — that type lives in soma-application
(a crates/soma/* product crate), and shared/* crates must never
depend on crates/soma/* or apps/*.