Skip to main content

status_class

Function status_class 

Source
pub fn status_class(status: u16) -> &'static str
Expand description

Map an HTTP status code to its bounded status class. Per ADR 0060 §4 the class (2xx/4xx/5xx/…) is preferred over the exact code so the status dimension stays at ≤6 values.