Enum Status

Source
pub enum Status {
Show 63 variants Continue = 100, SwitchingProtocols = 101, Processing = 102, EarlyHints = 103, 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, UnUsed = 306, 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, MisRedirectRequest = 421, UnprocessableContent = 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

Refer to this url for more information: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status

Variants§

§

Continue = 100

§

SwitchingProtocols = 101

§

Processing = 102

§

EarlyHints = 103

§

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

Depreciated

§

UnUsed = 306

Depreciated

§

TemporaryRedirect = 307

No longer used, just reserved

§

PermanentRedirect = 308

§

BadRequest = 400

§

UnAuthorized = 401

§

PaymentRequired = 402

Experimental. Expect behaviour to change in the future.

§

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

§

MisRedirectRequest = 421

§

UnprocessableContent = 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

Trait Implementations§

Source§

impl Debug for Status

Source§

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

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

impl StatusCode for Status

Source§

fn to_usize(&self) -> usize

Source§

impl StatusMethods 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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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, 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> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more