pub struct HttpStatus;Expand description
Common HTTP status codes.
Implementations§
Source§impl HttpStatus
impl HttpStatus
pub const OK: u16 = 200
pub const CREATED: u16 = 201
pub const NO_CONTENT: u16 = 204
pub const PARTIAL_CONTENT: u16 = 206
pub const NOT_MODIFIED: u16 = 304
pub const BAD_REQUEST: u16 = 400
pub const UNAUTHORIZED: u16 = 401
pub const FORBIDDEN: u16 = 403
pub const NOT_FOUND: u16 = 404
pub const RANGE_NOT_SATISFIABLE: u16 = 416
pub const PAYLOAD_TOO_LARGE: u16 = 413
pub const UNSUPPORTED_MEDIA_TYPE: u16 = 415
pub const INTERNAL_SERVER_ERROR: u16 = 500
Auto Trait Implementations§
impl Forget for HttpStatus
impl Freeze for HttpStatus
impl RefUnwindSafe for HttpStatus
impl Send for HttpStatus
impl Sync for HttpStatus
impl Unpin for HttpStatus
impl UnsafeUnpin for HttpStatus
impl UnwindSafe for HttpStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more