Skip to main content

http_status_text

Function http_status_text 

Source
pub fn http_status_text(status_code: u16) -> &'static str
Expand description

Returns the canonical status line text used by the runtime for a bounded set of statuses.

§Parameters

§Returns

Returns the computed value produced by crate::http::http_status_text.

§Examples

ⓘ
let _result = pharos_runtime_core::http::http_status_text(400);
  • crate::http for adjacent helpers that share the same runtime surface.