Constant STORE_CODE_KINDS

Source
pub const STORE_CODE_KINDS: &[(&str, ErrorKind)];
Expand description

Backend error.codes that name a store refusal, mapped to the store ErrorKind the façades switch on. A status alone cannot say these: a bad receipt and a malformed request are both 400, a product the receipt names and an unknown route are both 404, and a store outage is a 503 like any server fault. Consulted after SUBSCRIBER_UNRESOLVABLE_CODE and before the status table; an unlisted code falls back to the status. RECEIPT_IN_USE (409) is deliberately absent: its status kind, Conflict, is already the right one and the code is the detail.