pub enum ResponseStatus {
Show 60 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, ExpectationFailed, ImaTeapot, MisdirectedRequest, UnprocessableEntity, Locked, FailedDependency, UpgradeRequired, PreconditionRequired, TooManyRequests, RequestHeaderFieldsTooLarge, UnavailableForLegalReasons, InternalServerError, NotImplemented, BadGateway, ServiceUnavailable, GatewayTimeout, HttpVersionNotSupported, VariantAlsoNegotiates, InsufficientStorage, LoopDetected, NotExtended, NetworkAuthenticationRequired,
}
Expand description

HTTP response status

Variants

Continue

100 Continue

SwitchingProtocols

101 Switching Protocols

Processing

102 Processing

Ok

200 OK

Created

201 Created

Accepted

202 Accepted

NonAuthoritativeInformation

203 Non-Authoritative Information

NoContent

204 No Content

ResetContent

205 Reset Content

PartialContent

206 Partial Content

MultiStatus

207 Multi-Status

AlreadyReported

208 Already Reported

ImUsed

226 IM Used

MultipleChoices

300 Multiple Choices

MovedPermanently

301 Moved Permanently

Found

302 Found

SeeOther

303 See Other

NotModified

304 Not Modified

UseProxy

305 Use Proxy

TemporaryRedirect

307 Temporary Redirect

PermanentRedirect

308 Permanent Redirect

BadRequest

400 Bad Request

Unauthorized

401 Unauthorized

PaymentRequired

402 Payment Required

Forbidden

403 Forbidden

NotFound

404 Not Found

MethodNotAllowed

405 Method Not Allowed

NotAcceptable

406 Not Acceptable

ProxyAuthenticationRequired

407 Proxy Authentication Required

RequestTimeout

408 Request Timeout

Conflict

409 Conflict

Gone

410 Gone

LengthRequired

411 Length Required

PreconditionFailed

412 Precondition Failed

PayloadTooLarge

413 Payload Too Large

UriTooLong

414 URI Too Long

UnsupportedMediaType

415 Unsupported Media Type

RangeNotSatisfiable

416 Range Not Satisfiable

ExpectationFailed

417 Expectation Failed

ImaTeapot

418 I’m a teapot

MisdirectedRequest

421 Misdirected Request

UnprocessableEntity

422 Unprocessable Entity

Locked

423 Locked

FailedDependency

424 Failed Dependency

UpgradeRequired

426 Upgrade Required

PreconditionRequired

428 Precondition Required

TooManyRequests

429 Too Many Requests

RequestHeaderFieldsTooLarge

431 Request Header Fields Too Large

UnavailableForLegalReasons

451 Unavailable For Legal Reasons

InternalServerError

500 Internal Server Error

NotImplemented

501 Not Implemented

BadGateway

502 Bad Gateway

ServiceUnavailable

503 Service Unavailable

GatewayTimeout

504 Gateway Timeout

HttpVersionNotSupported

505 HTTP Version Not Supported

VariantAlsoNegotiates

506 Variant Also Negotiates

InsufficientStorage

507 Insufficient Storage

LoopDetected

508 Loop Detected

NotExtended

510 Not Extended

NetworkAuthenticationRequired

511 Network Authentication Required

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

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

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

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. 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.