Skip to main content

status_text

Function status_text 

Source
pub fn status_text(status: u16) -> String
Expand description

A status code and its reason phrase, as 404 Not Found. A code with no standard phrase is shown as the number alone.

Native builds take the phrase from reqwest’s StatusCode, so every registered code is covered. The WASI build has no HTTP crate of its own and uses a table of the codes the libraries meet in practice.