Skip to main content

HttpStatus

Enum HttpStatus 

Source
#[repr(u32)]
pub enum HttpStatus {
Show 57 variants Continue = 100, Switching_Protocols = 101, OK = 200, Created = 201, Accepted = 202, Non_Authoritative_Information = 203, No_Content = 204, Reset_Content = 205, Partial_Content = 206, Multiple_Choices = 300, Moved_Permanently = 301, Found = 302, See_Other = 303, Not_Modified = 304, Use_Proxy = 305, Temporary_Redirect = 307, Permanent_Redirect = 308, Bad_Request = 400, Unauthorized = 401, Payment_Required = 402, Forbidden = 403, Not_Found = 404, Method_Not_Allowed = 405, Not_Acceptable = 406, Proxy_Authentication_Required = 407, Request_Timeout = 408, Conflict = 409, Gone = 410, Length_Required = 411, Precondition_Failed = 412, Payload_Too_Large = 413, URI_Too_Long = 414, Unsupported_Media_Type = 415, Range_Not_Satisfiable = 416, Expectation_Failed = 417, Im_A_Teapot = 418, Misdirected_Request = 421, Unprocessable_Entity = 422, Locked = 423, Failed_Dependency = 424, Too_Early = 425, Upgrade_Required = 426, Precondition_Required = 428, Too_Many_Requests = 429, Request_Header_Fields_Too_Large = 431, Unavailable_For_Legal_Reasons = 451, Internal_Server_Error = 500, Not_Implemented = 501, Bad_Gateway = 502, Service_Unavailable = 503, Gateway_Timeout = 504, HTTP_Version_Not_Supported = 505, Variant_Also_Negotiates = 506, Insufficient_Storage = 507, Loop_Detected = 508, Not_Extended = 510, Network_Authentication_Required = 511,
}
Expand description

Http Status Code

Variants§

§

Continue = 100

§

Switching_Protocols = 101

§

OK = 200

§

Created = 201

§

Accepted = 202

§

Non_Authoritative_Information = 203

§

No_Content = 204

§

Reset_Content = 205

§

Partial_Content = 206

§

Multiple_Choices = 300

§

Moved_Permanently = 301

§

Found = 302

§

See_Other = 303

§

Not_Modified = 304

§

Use_Proxy = 305

§

Temporary_Redirect = 307

§

Permanent_Redirect = 308

§

Bad_Request = 400

§

Unauthorized = 401

§

Payment_Required = 402

§

Forbidden = 403

§

Not_Found = 404

§

Method_Not_Allowed = 405

§

Not_Acceptable = 406

§

Proxy_Authentication_Required = 407

§

Request_Timeout = 408

§

Conflict = 409

§

Gone = 410

§

Length_Required = 411

§

Precondition_Failed = 412

§

Payload_Too_Large = 413

§

URI_Too_Long = 414

§

Unsupported_Media_Type = 415

§

Range_Not_Satisfiable = 416

§

Expectation_Failed = 417

§

Im_A_Teapot = 418

§

Misdirected_Request = 421

§

Unprocessable_Entity = 422

§

Locked = 423

§

Failed_Dependency = 424

§

Too_Early = 425

§

Upgrade_Required = 426

§

Precondition_Required = 428

§

Too_Many_Requests = 429

§

Request_Header_Fields_Too_Large = 431

§

Internal_Server_Error = 500

§

Not_Implemented = 501

§

Bad_Gateway = 502

§

Service_Unavailable = 503

§

Gateway_Timeout = 504

§

HTTP_Version_Not_Supported = 505

§

Variant_Also_Negotiates = 506

§

Insufficient_Storage = 507

§

Loop_Detected = 508

§

Not_Extended = 510

§

Network_Authentication_Required = 511

Implementations§

Trait Implementations§

Source§

impl Clone for HttpStatus

Source§

fn clone(&self) -> HttpStatus

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for HttpStatus

Source§

impl Debug for HttpStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for HttpStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.