#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct StatusCode(u16);
impl StatusCode {
pub const OK: Self = Self(200);
pub const BAD_REQUEST: Self = Self(400);
pub const UNAUTHORIZED: Self = Self(401);
pub const NOT_FOUND: Self = Self(404);
pub const METHOD_NOT_ALLOWED: Self = Self(405);
pub const INTERNAL_SERVER_ERROR: Self = Self(500);
pub const fn from_u16(value: u16) -> Self {
Self(value)
}
pub const fn as_u16(self) -> u16 {
self.0
}
}