status_class

Function status_class 

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

Prometheus status-class label (“2xx”, “5xx”, …).

PERF: a &'static str per class, not a format! — this fires on the per-request and per-attempt metric recording paths, and the label text is one of ten fixed spellings.