struct Status
pub struct Status :: [Equatable, Debug]
Conforms to Equatable, Debug, Display.
A status: the code and its reason phrase.
Fields
pub code: int
pub reason: string = ""
Methods
pub static fn of(code: int): Status
Returns the status of a code with the reason phrase RFC 9110 gives it.
pub fn isInformational(): bool
pub fn isSuccess(): bool
pub fn isRedirect(): bool
pub fn isClientError(): bool
pub fn isServerError(): bool
fn show(): string