pub enum Status {
Show 57 variants Continue, SwitchingProtocols, Processing, Ok, Created, Accepted, NonAuthoritativeInformation, NoContent, ResetContent, PartialContent, MultiStatus, AlreadyReported, ImUsed, MultipleChoices, MovedPermanently, Found, SeeOther, NotModified, UseProxy, TemporaryRedirect, PermanentRedirect, BadRequest, Unauthorized, PaymentRequired, Forbidden, NotFound, MethodNotAllowed, NotAcceptable, ProxyAuthenticationRequired, RequestTimeout, Conflict, Gone, LengthRequired, PreconditionFailed, PayloadTooLarge, UriTooLong, UnsupportedMediaType, RangeNotSatisfiable, ExceptionFailed, ImATeapot, MisdirectedRequest, UnprocessableEntity, Locked, FailedDependency, UpgradeRequired, UnavailableForLegalReasons, InternalServerError, NotImplemented, BadGateway, ServiceUnavailable, GatewayTimeout, HttpVersionNotSupported, VariantAlsoNegotiates, InsufficientStorage, LoopDetected, BandwidthLimitExceeded, NotExtended,
}
Expand description

Response status.

Variants

Continue

100

SwitchingProtocols

101

Processing

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

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

ExceptionFailed

417

ImATeapot

418

MisdirectedRequest

421

UnprocessableEntity

422

Locked

423

FailedDependency

424

UpgradeRequired

426

UnavailableForLegalReasons

451

InternalServerError

500

NotImplemented

501

BadGateway

502

ServiceUnavailable

503

GatewayTimeout

504

HttpVersionNotSupported

505

VariantAlsoNegotiates

506

InsufficientStorage

507

LoopDetected

508

BandwidthLimitExceeded

509

NotExtended

510

Implementations

Returns the code of the status.

Returns the typical reason phrase of the status.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.