Skip to main content

status_for_code

Function status_for_code 

Source
pub fn status_for_code(code: &TrustTaskCode) -> u16
Expand description

Map a TrustTaskCode to a numeric HTTP status code.

Returns u16 rather than http::StatusCode so the function is dependency-light and usable from both the server (axum) and client (reqwest) sides without dragging in extra crates here.