Enum http_test_server::http::Status[][src]

pub enum Status {
    Continue,
    SwitchingProtocols,
    Processing,
    OK,
    Created,
    Accepted,
    NonAuthoritativeInformation,
    NoContent,
    ResetContent,
    PartialContent,
    MultiStatus,
    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,
    UnprocessableEntity,
    Locked,
    FailedDependency,
    UpgradeRequired,
    PreconditionRequired,
    TooManyRequests,
    RequestHeaderFieldsTooLarge,
    InternalServerError,
    NotImplemented,
    BadGateway,
    ServiceUnavailable,
    GatewayTimeout,
    HttpVersionNotSupported,
    InsufficientStorage,
    NetworkAuthenticationRequired,
}

HTTP status

Can be converted to its numeral equivalent.

let status_code = Status::NotFound as u16;

assert_eq!(status_code, 404);

Variants

Methods

impl Status
[src]

Returns status' full description

use http_test_server::http::Status;

let description = Status::MultipleChoices.description();

assert_eq!(description, "300 Multiple Choices");

Trait Implementations

impl Debug for Status
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Status

impl Sync for Status