Status

Enum Status 

Source
pub enum Status {
Show 61 variants Continue = 100, SwitchingProtocols = 101, Processing = 102, Ok = 200, Created = 201, Accepted = 202, NonAuthoritativeInformation = 203, NoContent = 204, ResetContent = 205, PartialContent = 206, MultiStatus = 207, AlreadyReported = 208, IMUsed = 226, MultipleChoices = 300, MovedPermanently = 301, Found = 302, SeeOther = 303, NotModified = 304, UseProxy = 305, TemporaryRedirect = 307, PermanentRedirect = 308, BadRequest = 400, Unauthorized = 401, PaymentRequired = 402, Forbidden = 403, NotFound = 404, MethodNotAllowed = 405, NotAcceptable = 406, ProxyAuthenticationRequired = 407, RequestTimeout = 408, Conflict = 409, Gone = 410, LengthRequired = 411, PreconditionFailed = 412, PayloadTooLarge = 413, URITooLong = 414, UnsupportedMediaType = 415, RangeNotSatisfiable = 416, ExpectationFailed = 417, ImATeapot = 418, MisdirectedRequest = 421, UnprocessableEntity = 422, Locked = 423, FailedDependency = 424, TooEarly = 425, UpgradeRequired = 426, PreconditionRequired = 428, TooManyRequests = 429, RequestHeaderFieldsTooLarge = 431, UnavailableForLegalReasons = 451, InternalServerError = 500, NotImplemented = 501, BadGateway = 502, ServiceUnavailable = 503, GatewayTimeout = 504, HTTPVersionNotSupported = 505, VariantAlsoNegotiates = 506, InsufficientStorage = 507, LoopDetected = 508, NotExtended = 510, NetworkAuthenticationRequired = 511,
}
Expand description

Http status

Variants§

§

Continue = 100

100 Continue

§

SwitchingProtocols = 101

101 Switching Protocols

§

Processing = 102

102 Processing

§

Ok = 200

200 OK

§

Created = 201

201 Created

§

Accepted = 202

202 Accepted

§

NonAuthoritativeInformation = 203

203 Non-Authoritative Information

§

NoContent = 204

204 No Content

§

ResetContent = 205

205 Reset Content

§

PartialContent = 206

206 Partial Content

§

MultiStatus = 207

207 Multi-Status

§

AlreadyReported = 208

208 Already Reported

§

IMUsed = 226

226 IM Used

§

MultipleChoices = 300

300 Multiple Choices

§

MovedPermanently = 301

301 Moved Permanently

§

Found = 302

302 Found

§

SeeOther = 303

303 See Other

§

NotModified = 304

304 Not Modified

§

UseProxy = 305

305 Use Proxy

§

TemporaryRedirect = 307

307 Temporary Redirect

§

PermanentRedirect = 308

308 Permanent Redirect

§

BadRequest = 400

400 Bad Request

§

Unauthorized = 401

401 Unauthorized

§

PaymentRequired = 402

402 Payment Required

§

Forbidden = 403

403 Forbidden

§

NotFound = 404

404 Not Found

§

MethodNotAllowed = 405

405 Method Not Allowed

§

NotAcceptable = 406

406 Not Acceptable

§

ProxyAuthenticationRequired = 407

407 Proxy Authentication Required

§

RequestTimeout = 408

408 Request Timeout

§

Conflict = 409

409 Conflict

§

Gone = 410

410 Gone

§

LengthRequired = 411

411 Length Required

§

PreconditionFailed = 412

412 Precondition Failed

§

PayloadTooLarge = 413

413 Payload Too Large

§

URITooLong = 414

414 URI Too Long

§

UnsupportedMediaType = 415

415 Unsupported Media Type

§

RangeNotSatisfiable = 416

416 Range Not Satisfiable

§

ExpectationFailed = 417

417 Expectation Failed

§

ImATeapot = 418

418 I’m a teapot

§

MisdirectedRequest = 421

421 Misdirected Request

§

UnprocessableEntity = 422

422 Unprocessable Entity

§

Locked = 423

423 Locked

§

FailedDependency = 424

424 Failed Dependency

§

TooEarly = 425

425 Too Early

§

UpgradeRequired = 426

426 Upgrade Required

§

PreconditionRequired = 428

428 Precondition Required

§

TooManyRequests = 429

429 Too Many Requests

§

RequestHeaderFieldsTooLarge = 431

431 Request Header Fields Too Large

§

UnavailableForLegalReasons = 451

451 Unavailable For Legal Reasons

§

InternalServerError = 500

500 Internal Server Error

§

NotImplemented = 501

501 Not Implemented

§

BadGateway = 502

502 Bad Gateway

§

ServiceUnavailable = 503

503 Service Unavailable

§

GatewayTimeout = 504

504 Gateway Timeout

§

HTTPVersionNotSupported = 505

505 HTTP Version Not Supported

§

VariantAlsoNegotiates = 506

506 Variant Also Negotiates

§

InsufficientStorage = 507

507 Insufficient Storage

§

LoopDetected = 508

508 Loop Detected

§

NotExtended = 510

510 Not Extended

§

NetworkAuthenticationRequired = 511

511 Network Authentication Required

Trait Implementations§

Source§

impl Clone for Status

Source§

fn clone(&self) -> Status

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Status

Source§

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

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

impl Default for Status

Source§

fn default() -> Status

Returns the “default value” for a type. Read more
Source§

impl Display for Status

Source§

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

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

impl PartialEq for Status

Source§

fn eq(&self, other: &Status) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<i32> for Status

Source§

type Error = InvalidStatusError

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

fn try_from(value: i32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for Status

Source§

impl Eq for Status

Source§

impl StructuralPartialEq for Status

Auto Trait Implementations§

§

impl Freeze for Status

§

impl RefUnwindSafe for Status

§

impl Send for Status

§

impl Sync for Status

§

impl Unpin for Status

§

impl UnwindSafe for Status

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.
Source§

impl<T> ErasedDestructor for T
where T: 'static,