pub struct StatusCode;
Expand description
Codes de statut HTTP
Implementations§
Source§impl StatusCode
impl StatusCode
pub const OK: &'static str = "HTTP/1.1 200 OK"
pub const BAD_REQUEST: &'static str = "HTTP/1.1 400 Bad Request"
pub const FORBIDDEN: &'static str = "HTTP/1.1 403 Forbidden"
pub const NOT_FOUND: &'static str = "HTTP/1.1 404 Not Found"
pub const METHOD_NOT_ALLOWED: &'static str = "HTTP/1.1 405 Method Not Allowed"
pub const INTERNAL_SERVER_ERROR: &'static str = "HTTP/1.1 500 Internal Server Error"
pub const NOT_IMPLEMENTED: &'static str = "HTTP/1.1 501 Not Implemented"
pub const HTTP_VERSION_NOT_SUPPORTED: &'static str = "HTTP/1.1 505 HTTP Version Not Supported"
Auto Trait Implementations§
impl Freeze for StatusCode
impl RefUnwindSafe for StatusCode
impl Send for StatusCode
impl Sync for StatusCode
impl Unpin for StatusCode
impl UnwindSafe for StatusCode
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