enum EE::Network::Http::Response::Status

Overview

Enumerate all the valid status codes for a response. More…

#include <http.hpp>

enum Status {
    Ok                  = 200,
    Created             = 201,
    Accepted            =                 202,
    NoContent           = 204,
    ResetContent        = 205,
    PartialContent      = 206,
    MultipleChoices     = 300,
    MovedPermanently    = 301,
    MovedTemporarily    = 302,
    NotModified         = 304,
    BadRequest          = 400,
    Unauthorized        = 401,
    Forbidden           =                 403,
    NotFound            = 404,
    RangeNotSatisfiable = 407,
    InternalServerError = 500,
    NotImplemented      = 501,
    BadGateway          = 502,
    ServiceNotAvailable =                 503,
    GatewayTimeout      =                 504,
    VersionNotSupported = 505,
    InvalidResponse     = 1000,
    ConnectionFailed    = 1001,
};

Detailed Documentation

Enumerate all the valid status codes for a response.

Enum Values

Ok

Most common code returned when operation was successful.

Created

The resource has successfully been created.

Accepted

The request has been accepted, but will be processed later by the server.

NoContent

The server didn’t send any data in return.

ResetContent

The server informs the client that it should clear the view (form) that caused the request to be sent

PartialContent

The server has sent a part of the resource, as a response to a partial GET request

MultipleChoices

The requested page can be accessed from several locations.

MovedPermanently

The requested page has permanently moved to a new location.

MovedTemporarily

The requested page has temporarily moved to a new location.

NotModified

For conditionnal requests, means the requested page hasn’t changed and doesn’t need to be refreshed

BadRequest

The server couldn’t understand the request (syntax error)

Unauthorized

The requested page needs an authentification to be accessed.

Forbidden

The requested page cannot be accessed at all, even with authentification.

NotFound

The requested page doesn’t exist.

RangeNotSatisfiable

The server can’t satisfy the partial GET request (with a “Range” header field)

InternalServerError

The server encountered an unexpected error.

NotImplemented

The server doesn’t implement a requested feature.

BadGateway

The gateway server has received an error from the source server.

ServiceNotAvailable

The server is temporarily unavailable (overloaded, in maintenance, …)

GatewayTimeout

The gateway server couldn’t receive a response from the source server.

VersionNotSupported

The server doesn’t support the requested HTTP version.

InvalidResponse

Response is not a valid HTTP one.

ConnectionFailed

Connection with server failed.