Support Class Library
A set of tools providing classes and utility
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
scl::http::StatusCode Class Reference

#include "StatusCode.h"

Collaboration diagram for scl::http::StatusCode:
Collaboration graph
[legend]

Public Types

using name_type = const char *
 
using status_type = scl::alias::uint
 
using message_type = const char *
 
using version_type = Version
 

Public Member Functions

constexpr name_type name () const
 
constexpr status_type status () const
 
constexpr message_type message () const
 
constexpr version_type version () const
 
constexpr operator status_type () const
 
constexpr bool operator== (const StatusCode &other) const
 
constexpr bool operator!= (const StatusCode &other) const
 
constexpr bool isInformational () const
 Determine whether or not this status code is informational. More...
 
constexpr bool isSuccessful () const
 Determine whether or not this status code is for a successful request. More...
 
constexpr bool isRedirect () const
 Determine whether or not this status code is one of a redirection. More...
 
constexpr bool isClientError () const
 Determine whether or not this status code is one of a client error. More...
 
constexpr bool isServerError () const
 Determine whether or not this status code is one of a server error. More...
 
constexpr bool isOk () const
 Determine whether or not this status code indicates that the requests was fulfilled. More...
 

Static Public Member Functions

static scl::utils::Optional< StatusCodefromCode (const status_type &status)
 Get an optional StatusCode from the status code. More...
 

Static Public Attributes

static const StatusCode CONTINUE { "Continue" , 100 , "Continue with the request" }
 
static const StatusCode SWITCHING_PROTOCOLS { "Switching Protocols" , 101 , "Switching protocols" }
 
static const StatusCode PROCESSING { "Processing" , 102 , "The server has accepted the request but has not yet completed it" }
 
static const StatusCode EARLY_HINTS { "Early Hints" , 103 , "The server is likely to send a final response with the header fields included in the informational response" }
 
static const StatusCode OK { "Ok" , 200 , "Request fulfilled" }
 
static const StatusCode CREATED { "Created" , 201 , "Resource has been created" }
 
static const StatusCode ACCEPTED { "Accepted" , 202 , "Request accepted for processing" }
 
static const StatusCode NON_AUTHORITATIVE_INFORMATION { "Non-Authoritative Information" , 203 , "Request fulfilled but has been modified" }
 
static const StatusCode NO_CONTENT { "No Content" , 204 , "Request fulfilled, no entity-body returned" }
 
static const StatusCode RESET_CONTENT { "Reset Content" , 205 , "Request fulfilled, user agent should reset the document view" }
 
static const StatusCode PARTIAL_CONTENT { "Partial Content" , 206 , "Partial GET request fulfilled" }
 
static const StatusCode MULTI_STATUS { "Multi Status" , 207 , "Statuses for multiple operations" }
 
static const StatusCode ALREADY_REPORTED { "Already reported" , 208 , "One of the requested resources has already been reported" }
 
static const StatusCode IM_USED { "IM Used" , 226 , "The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulation applied to the current instance" }
 
static const StatusCode MULTIPLE_CHOICES { "Multiple Choices" , 300 , "The requested resource corresponds to any one of a set of representations" }
 
static const StatusCode MOVED_PERMANENTLY { "Moved Permanently" , 301 , "The requested resource has been assigned a new permanent URI" }
 
static const StatusCode FOUND { "Found" , 302 , "The requested resource has been delivered but resides temporarily under a different URI" }
 
static const StatusCode SEE_OTHER { "See Other" , 303 , "The requested resource can be found under a different URI" }
 
static const StatusCode NOT_MODIFIED { "Not Modified" , 304 , "Document has not been modified" }
 
static const StatusCode USE_PROXY { "Use Proxy" , 305 , "The requested resource must be accessed through the given proxy" }
 
static const StatusCode TEMPORARY_REDIRECT { "Temporary Redirect" , 307 , "The requested resource resides temporarily under a different URI" }
 
static const StatusCode PERMANENT_REDIRECT { "Permanent Redirect" , 308 , "The requested resource resides permanently under a different URI" }
 
static const StatusCode BAD_REQUEST { "Bad Request" , 400 , "Request could not be understood due to malformed syntax" }
 
static const StatusCode UNAUTHORIZED { "Unauthorized" , 401 , "Request requires user authentication" }
 
static const StatusCode PAYMENT_REQUIRED { "Payment Required" , 402 , "[[This code is reserved for future use]]" }
 
static const StatusCode FORBIDDEN { "Forbidden" , 403 , "Request understood but the server refuses to fulfill it" }
 
static const StatusCode NOT_FOUND { "Not Found" , 404 , "The requested resource has not been found" }
 
static const StatusCode METHOD_NOT_ALLOWED { "Method Not Allowed" , 405 , "The specified method is not allowed for the identified resource" }
 
static const StatusCode NOT_ACCEPTABLE { "Not Acceptable" , 406 , "Responses would not be acceptable according to accept headers in the request" }
 
static const StatusCode PROXY_AUTHENTICATION_REQUIRED { "Proxy Authentication Required" , 407 , "Client must first authenticate itself with the proxy" }
 
static const StatusCode REQUEST_TIMEOUT { "Request Timeout" , 408 , "Client did not produce a request within the time the server was prepared to wait" }
 
static const StatusCode CONFLICT { "Conflict" , 409 , "Request could not be completed due to a conflict with the current state of the resource" }
 
static const StatusCode GONE { "Gone" , 410 , "The requested resource is no longer available" }
 
static const StatusCode LENGTH_REQUIRED { "Length Required" , 411 , "Content-Length header missing" }
 
static const StatusCode PRECONDITION_FAILED { "Precondition Failed" , 412 , "Precondition given in one or more request-header fields evaluated to false" }
 
static const StatusCode REQUEST_ENTITY_TOO_LARGE { "Request Entity Too Large" , 413 , "Provided request entity is larger than the server is willing/able to process" }
 
static const StatusCode REQUEST_URI_TOO_LONG { "Request-URI Too Long" , 414 , "Request-URI is longer than the server is willing to process" }
 
static const StatusCode UNSUPPORTED_MEDIA_TYPE { "Unsupported Media Type" , 415 , "The format of the entity of the request is not supported" }
 
static const StatusCode REQUESTED_RANGE_NOT_SATISFIABLE { "Requested Range Not Satisfiable" , 416 , "Request Range could not be satisfied" }
 
static const StatusCode EXPECTATION_FAILED { "Expectation Failed" , 417 , "Request Expect could not be met" }
 
static const StatusCode TEAPOT { "I'm a teapot" , 418 , "I'm a teapot" }
 
static const StatusCode MISDIRECTED_REQUEST { "Misdirected Request" , 421 , "Request was directed at a server that is not able to produce a response" }
 
static const StatusCode UNPROCESSABLE_ENTITY { "Unprocessable Entity" , 422 , "The server understands the content type and the syntax is correct but was unable to process the contained instructions" }
 
static const StatusCode LOCKED { "Locked" , 423 , "The requested resource is locked" }
 
static const StatusCode FAILED_DEPENDENCY { "Failed Dependency" , 424 , "The server could not process the requested action because it depends on an action that failed" }
 
static const StatusCode TOO_EARLY { "Too Early" , 425 , "The server is unwilling to risk processing a request that might be replayed" }
 
static const StatusCode UPGRADE_REQUIRED { "Upgrade Required" , 426 , "The server refuses to perform the request using the current protocol but might if the client upgrades to a different protocol" }
 
static const StatusCode PRECONDITION_REQUIRED { "Precondition Required" , 428 , "The server requires the request to be conditional (missing If-Match header)" }
 
static const StatusCode TOO_MANY_REQUESTS { "Too Many Requests" , 429 , "The user has sent too many requests in a given amount of time" }
 
static const StatusCode REQUEST_HEADER_FIELDS_TOO_LARGE { "Request Header Fields Too Large" , 431 , "The server is unwilling to process the request because its header fields are too large" }
 
static const StatusCode UNAVAILABLE_FOR_LEGAL_REASONS { "Unavailable For Legal Reasons" , 451 , "The requested resource is unavailable for legal reasons" }
 
static const StatusCode INTERNAL_SERVER_ERROR { "Internal Server Error" , 500 , "Unexpected server error" }
 
static const StatusCode NOT_IMPLEMENTED { "Not Implemented" , 501 , "The server does not support the functionality required to fulfill the request" }
 
static const StatusCode BAD_GATEWAY { "Bad Gateway" , 502 , "The server, acting as a gateway/proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request" }
 
static const StatusCode SERVICE_UNAVAILABLE { "Service Unavailable" , 503 , "The server is currently unable to handle the request due to a temporary overloading or maintenance" }
 
static const StatusCode GATEWAY_TIMEOUT { "Gateway Timeout" , 504 , "The server, acting as a gateway/proxy, did not receive a timely response from the upstream server it accessed in attempting to fulfill the request" }
 
static const StatusCode HTTP_VERSION_NOT_SUPPORTED { "HTTP Version Not Supported" , 505 , "The server does not support, or refuses to support, the HTTP protocol version that was used in the request" }
 
static const StatusCode VARIANT_ALSO_NEGOTIATES { "Variant Also Negotiates" , 506 , "The chosen variant resource is configured to engage in transparent content negotiation and is therefore not a proper end point in the negotiation process" }
 
static const StatusCode INSUFFICIENT_STORAGE { "Insufficient Storage" , 507 , "The server was unable to process the request because it could not store the representation needed to successfully complete the request" }
 
static const StatusCode LOOP_DETECTED { "Loop Detected" , 508 , "The server terminated an operation because it encountered an infinite loop while processing a request" }
 
static const StatusCode BANDWIDTH_LIMIT_EXCEEDED { "Loop Detected" , 509 , "The amount of bandwidth allocated has been reached" }
 
static const StatusCode NOT_EXTENDED { "Not Extended" , 510 , "The policy for accessing the resource has not been met in the request" }
 
static const StatusCode NETWORK_AUTHENTICATION_REQUIRED { "Network Authentication Required" , 511 , "The client needs to authenticate to gain network access" }
 

Protected Member Functions

constexpr StatusCode (name_type name, status_type status, message_type message, const version_type &version=Version::V1_1)
 

Protected Attributes

const name_type shortInfo
 
const status_type code
 
const message_type msg {}
 
const version_typevers
 

Detailed Description

Definition at line 10 of file StatusCode.h.

Member Typedef Documentation

◆ message_type

Definition at line 14 of file StatusCode.h.

◆ name_type

using scl::http::StatusCode::name_type = const char*

Definition at line 12 of file StatusCode.h.

◆ status_type

Definition at line 13 of file StatusCode.h.

◆ version_type

Definition at line 15 of file StatusCode.h.

Constructor & Destructor Documentation

◆ StatusCode()

constexpr scl::http::StatusCode::StatusCode ( name_type  name,
status_type  status,
message_type  message,
const version_type version = Version::V1_1 
)
inlineprotected

Definition at line 23 of file StatusCode.h.

Member Function Documentation

◆ fromCode()

static scl::utils::Optional<StatusCode> scl::http::StatusCode::fromCode ( const status_type status)
inlinestatic

Get an optional StatusCode from the status code.

Parameters
statusbeing the status code to construct from
Returns
an empty optional if the status is invalid, the correct instance otherwise
Warning
Uses a very long switch statement

Definition at line 201 of file StatusCode.h.

◆ isClientError()

constexpr bool scl::http::StatusCode::isClientError ( ) const
inline

Determine whether or not this status code is one of a client error.

Returns
TRUE if it is, FALSE otherwise

Definition at line 90 of file StatusCode.h.

◆ isInformational()

constexpr bool scl::http::StatusCode::isInformational ( ) const
inline

Determine whether or not this status code is informational.

Returns
TRUE if it is, FALSE otherwise

Definition at line 63 of file StatusCode.h.

◆ isOk()

constexpr bool scl::http::StatusCode::isOk ( ) const
inline

Determine whether or not this status code indicates that the requests was fulfilled.

Returns
TRUE if it is, FALSE otherwise

Definition at line 108 of file StatusCode.h.

◆ isRedirect()

constexpr bool scl::http::StatusCode::isRedirect ( ) const
inline

Determine whether or not this status code is one of a redirection.

Returns
TRUE if it is, FALSE otherwise

Definition at line 81 of file StatusCode.h.

◆ isServerError()

constexpr bool scl::http::StatusCode::isServerError ( ) const
inline

Determine whether or not this status code is one of a server error.

Returns
TRUE if it is, FALSE otherwise

Definition at line 99 of file StatusCode.h.

◆ isSuccessful()

constexpr bool scl::http::StatusCode::isSuccessful ( ) const
inline

Determine whether or not this status code is for a successful request.

Returns
TRUE if it is, FALSE otherwise

Definition at line 72 of file StatusCode.h.

◆ message()

constexpr message_type scl::http::StatusCode::message ( ) const
inline

Definition at line 38 of file StatusCode.h.

◆ name()

constexpr name_type scl::http::StatusCode::name ( ) const
inline

Definition at line 30 of file StatusCode.h.

◆ operator status_type()

constexpr scl::http::StatusCode::operator status_type ( ) const
inlineexplicit

Definition at line 47 of file StatusCode.h.

◆ operator!=()

constexpr bool scl::http::StatusCode::operator!= ( const StatusCode other) const
inline

Definition at line 55 of file StatusCode.h.

◆ operator==()

constexpr bool scl::http::StatusCode::operator== ( const StatusCode other) const
inline

Definition at line 51 of file StatusCode.h.

◆ status()

constexpr status_type scl::http::StatusCode::status ( ) const
inline

Definition at line 34 of file StatusCode.h.

◆ version()

constexpr version_type scl::http::StatusCode::version ( ) const
inline

Definition at line 42 of file StatusCode.h.

Member Data Documentation

◆ ACCEPTED

const StatusCode scl::http::StatusCode::ACCEPTED { "Accepted" , 202 , "Request accepted for processing" }
static

Definition at line 127 of file StatusCode.h.

◆ ALREADY_REPORTED

const StatusCode scl::http::StatusCode::ALREADY_REPORTED { "Already reported" , 208 , "One of the requested resources has already been reported" }
static

Definition at line 133 of file StatusCode.h.

◆ BAD_GATEWAY

const StatusCode scl::http::StatusCode::BAD_GATEWAY { "Bad Gateway" , 502 , "The server, acting as a gateway/proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request" }
static

Definition at line 181 of file StatusCode.h.

◆ BAD_REQUEST

const StatusCode scl::http::StatusCode::BAD_REQUEST { "Bad Request" , 400 , "Request could not be understood due to malformed syntax" }
static

Definition at line 148 of file StatusCode.h.

◆ BANDWIDTH_LIMIT_EXCEEDED

const StatusCode scl::http::StatusCode::BANDWIDTH_LIMIT_EXCEEDED { "Loop Detected" , 509 , "The amount of bandwidth allocated has been reached" }
static

Definition at line 188 of file StatusCode.h.

◆ code

const status_type scl::http::StatusCode::code
protected

Definition at line 19 of file StatusCode.h.

◆ CONFLICT

const StatusCode scl::http::StatusCode::CONFLICT { "Conflict" , 409 , "Request could not be completed due to a conflict with the current state of the resource" }
static

Definition at line 157 of file StatusCode.h.

◆ CONTINUE

const StatusCode scl::http::StatusCode::CONTINUE { "Continue" , 100 , "Continue with the request" }
static

Definition at line 119 of file StatusCode.h.

◆ CREATED

const StatusCode scl::http::StatusCode::CREATED { "Created" , 201 , "Resource has been created" }
static

Definition at line 126 of file StatusCode.h.

◆ EARLY_HINTS

const StatusCode scl::http::StatusCode::EARLY_HINTS { "Early Hints" , 103 , "The server is likely to send a final response with the header fields included in the informational response" }
static

Definition at line 122 of file StatusCode.h.

◆ EXPECTATION_FAILED

const StatusCode scl::http::StatusCode::EXPECTATION_FAILED { "Expectation Failed" , 417 , "Request Expect could not be met" }
static

Definition at line 165 of file StatusCode.h.

◆ FAILED_DEPENDENCY

const StatusCode scl::http::StatusCode::FAILED_DEPENDENCY { "Failed Dependency" , 424 , "The server could not process the requested action because it depends on an action that failed" }
static

Definition at line 170 of file StatusCode.h.

◆ FORBIDDEN

const StatusCode scl::http::StatusCode::FORBIDDEN { "Forbidden" , 403 , "Request understood but the server refuses to fulfill it" }
static

Definition at line 151 of file StatusCode.h.

◆ FOUND

const StatusCode scl::http::StatusCode::FOUND { "Found" , 302 , "The requested resource has been delivered but resides temporarily under a different URI" }
static

Definition at line 139 of file StatusCode.h.

◆ GATEWAY_TIMEOUT

const StatusCode scl::http::StatusCode::GATEWAY_TIMEOUT { "Gateway Timeout" , 504 , "The server, acting as a gateway/proxy, did not receive a timely response from the upstream server it accessed in attempting to fulfill the request" }
static

Definition at line 183 of file StatusCode.h.

◆ GONE

const StatusCode scl::http::StatusCode::GONE { "Gone" , 410 , "The requested resource is no longer available" }
static

Definition at line 158 of file StatusCode.h.

◆ HTTP_VERSION_NOT_SUPPORTED

const StatusCode scl::http::StatusCode::HTTP_VERSION_NOT_SUPPORTED { "HTTP Version Not Supported" , 505 , "The server does not support, or refuses to support, the HTTP protocol version that was used in the request" }
static

Definition at line 184 of file StatusCode.h.

◆ IM_USED

const StatusCode scl::http::StatusCode::IM_USED { "IM Used" , 226 , "The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulation applied to the current instance" }
static

Definition at line 134 of file StatusCode.h.

◆ INSUFFICIENT_STORAGE

const StatusCode scl::http::StatusCode::INSUFFICIENT_STORAGE { "Insufficient Storage" , 507 , "The server was unable to process the request because it could not store the representation needed to successfully complete the request" }
static

Definition at line 186 of file StatusCode.h.

◆ INTERNAL_SERVER_ERROR

const StatusCode scl::http::StatusCode::INTERNAL_SERVER_ERROR { "Internal Server Error" , 500 , "Unexpected server error" }
static

Definition at line 179 of file StatusCode.h.

◆ LENGTH_REQUIRED

const StatusCode scl::http::StatusCode::LENGTH_REQUIRED { "Length Required" , 411 , "Content-Length header missing" }
static

Definition at line 159 of file StatusCode.h.

◆ LOCKED

const StatusCode scl::http::StatusCode::LOCKED { "Locked" , 423 , "The requested resource is locked" }
static

Definition at line 169 of file StatusCode.h.

◆ LOOP_DETECTED

const StatusCode scl::http::StatusCode::LOOP_DETECTED { "Loop Detected" , 508 , "The server terminated an operation because it encountered an infinite loop while processing a request" }
static

Definition at line 187 of file StatusCode.h.

◆ METHOD_NOT_ALLOWED

const StatusCode scl::http::StatusCode::METHOD_NOT_ALLOWED { "Method Not Allowed" , 405 , "The specified method is not allowed for the identified resource" }
static

Definition at line 153 of file StatusCode.h.

◆ MISDIRECTED_REQUEST

const StatusCode scl::http::StatusCode::MISDIRECTED_REQUEST { "Misdirected Request" , 421 , "Request was directed at a server that is not able to produce a response" }
static

Definition at line 167 of file StatusCode.h.

◆ MOVED_PERMANENTLY

const StatusCode scl::http::StatusCode::MOVED_PERMANENTLY { "Moved Permanently" , 301 , "The requested resource has been assigned a new permanent URI" }
static

Definition at line 138 of file StatusCode.h.

◆ msg

const message_type scl::http::StatusCode::msg {}
protected

Definition at line 20 of file StatusCode.h.

◆ MULTI_STATUS

const StatusCode scl::http::StatusCode::MULTI_STATUS { "Multi Status" , 207 , "Statuses for multiple operations" }
static

Definition at line 132 of file StatusCode.h.

◆ MULTIPLE_CHOICES

const StatusCode scl::http::StatusCode::MULTIPLE_CHOICES { "Multiple Choices" , 300 , "The requested resource corresponds to any one of a set of representations" }
static

Definition at line 137 of file StatusCode.h.

◆ NETWORK_AUTHENTICATION_REQUIRED

const StatusCode scl::http::StatusCode::NETWORK_AUTHENTICATION_REQUIRED { "Network Authentication Required" , 511 , "The client needs to authenticate to gain network access" }
static

Definition at line 190 of file StatusCode.h.

◆ NO_CONTENT

const StatusCode scl::http::StatusCode::NO_CONTENT { "No Content" , 204 , "Request fulfilled, no entity-body returned" }
static

Definition at line 129 of file StatusCode.h.

◆ NON_AUTHORITATIVE_INFORMATION

const StatusCode scl::http::StatusCode::NON_AUTHORITATIVE_INFORMATION { "Non-Authoritative Information" , 203 , "Request fulfilled but has been modified" }
static

Definition at line 128 of file StatusCode.h.

◆ NOT_ACCEPTABLE

const StatusCode scl::http::StatusCode::NOT_ACCEPTABLE { "Not Acceptable" , 406 , "Responses would not be acceptable according to accept headers in the request" }
static

Definition at line 154 of file StatusCode.h.

◆ NOT_EXTENDED

const StatusCode scl::http::StatusCode::NOT_EXTENDED { "Not Extended" , 510 , "The policy for accessing the resource has not been met in the request" }
static

Definition at line 189 of file StatusCode.h.

◆ NOT_FOUND

const StatusCode scl::http::StatusCode::NOT_FOUND { "Not Found" , 404 , "The requested resource has not been found" }
static

Definition at line 152 of file StatusCode.h.

◆ NOT_IMPLEMENTED

const StatusCode scl::http::StatusCode::NOT_IMPLEMENTED { "Not Implemented" , 501 , "The server does not support the functionality required to fulfill the request" }
static

Definition at line 180 of file StatusCode.h.

◆ NOT_MODIFIED

const StatusCode scl::http::StatusCode::NOT_MODIFIED { "Not Modified" , 304 , "Document has not been modified" }
static

Definition at line 141 of file StatusCode.h.

◆ OK

const StatusCode scl::http::StatusCode::OK { "Ok" , 200 , "Request fulfilled" }
static

Definition at line 125 of file StatusCode.h.

◆ PARTIAL_CONTENT

const StatusCode scl::http::StatusCode::PARTIAL_CONTENT { "Partial Content" , 206 , "Partial GET request fulfilled" }
static

Definition at line 131 of file StatusCode.h.

◆ PAYMENT_REQUIRED

const StatusCode scl::http::StatusCode::PAYMENT_REQUIRED { "Payment Required" , 402 , "[[This code is reserved for future use]]" }
static

Definition at line 150 of file StatusCode.h.

◆ PERMANENT_REDIRECT

const StatusCode scl::http::StatusCode::PERMANENT_REDIRECT { "Permanent Redirect" , 308 , "The requested resource resides permanently under a different URI" }
static

Definition at line 145 of file StatusCode.h.

◆ PRECONDITION_FAILED

const StatusCode scl::http::StatusCode::PRECONDITION_FAILED { "Precondition Failed" , 412 , "Precondition given in one or more request-header fields evaluated to false" }
static

Definition at line 160 of file StatusCode.h.

◆ PRECONDITION_REQUIRED

const StatusCode scl::http::StatusCode::PRECONDITION_REQUIRED { "Precondition Required" , 428 , "The server requires the request to be conditional (missing If-Match header)" }
static

Definition at line 173 of file StatusCode.h.

◆ PROCESSING

const StatusCode scl::http::StatusCode::PROCESSING { "Processing" , 102 , "The server has accepted the request but has not yet completed it" }
static

Definition at line 121 of file StatusCode.h.

◆ PROXY_AUTHENTICATION_REQUIRED

const StatusCode scl::http::StatusCode::PROXY_AUTHENTICATION_REQUIRED { "Proxy Authentication Required" , 407 , "Client must first authenticate itself with the proxy" }
static

Definition at line 155 of file StatusCode.h.

◆ REQUEST_ENTITY_TOO_LARGE

const StatusCode scl::http::StatusCode::REQUEST_ENTITY_TOO_LARGE { "Request Entity Too Large" , 413 , "Provided request entity is larger than the server is willing/able to process" }
static

Definition at line 161 of file StatusCode.h.

◆ REQUEST_HEADER_FIELDS_TOO_LARGE

const StatusCode scl::http::StatusCode::REQUEST_HEADER_FIELDS_TOO_LARGE { "Request Header Fields Too Large" , 431 , "The server is unwilling to process the request because its header fields are too large" }
static

Definition at line 175 of file StatusCode.h.

◆ REQUEST_TIMEOUT

const StatusCode scl::http::StatusCode::REQUEST_TIMEOUT { "Request Timeout" , 408 , "Client did not produce a request within the time the server was prepared to wait" }
static

Definition at line 156 of file StatusCode.h.

◆ REQUEST_URI_TOO_LONG

const StatusCode scl::http::StatusCode::REQUEST_URI_TOO_LONG { "Request-URI Too Long" , 414 , "Request-URI is longer than the server is willing to process" }
static

Definition at line 162 of file StatusCode.h.

◆ REQUESTED_RANGE_NOT_SATISFIABLE

const StatusCode scl::http::StatusCode::REQUESTED_RANGE_NOT_SATISFIABLE { "Requested Range Not Satisfiable" , 416 , "Request Range could not be satisfied" }
static

Definition at line 164 of file StatusCode.h.

◆ RESET_CONTENT

const StatusCode scl::http::StatusCode::RESET_CONTENT { "Reset Content" , 205 , "Request fulfilled, user agent should reset the document view" }
static

Definition at line 130 of file StatusCode.h.

◆ SEE_OTHER

const StatusCode scl::http::StatusCode::SEE_OTHER { "See Other" , 303 , "The requested resource can be found under a different URI" }
static

Definition at line 140 of file StatusCode.h.

◆ SERVICE_UNAVAILABLE

const StatusCode scl::http::StatusCode::SERVICE_UNAVAILABLE { "Service Unavailable" , 503 , "The server is currently unable to handle the request due to a temporary overloading or maintenance" }
static

Definition at line 182 of file StatusCode.h.

◆ shortInfo

const name_type scl::http::StatusCode::shortInfo
protected

Definition at line 18 of file StatusCode.h.

◆ SWITCHING_PROTOCOLS

const StatusCode scl::http::StatusCode::SWITCHING_PROTOCOLS { "Switching Protocols" , 101 , "Switching protocols" }
static

Definition at line 120 of file StatusCode.h.

◆ TEAPOT

const StatusCode scl::http::StatusCode::TEAPOT { "I'm a teapot" , 418 , "I'm a teapot" }
static

Definition at line 166 of file StatusCode.h.

◆ TEMPORARY_REDIRECT

const StatusCode scl::http::StatusCode::TEMPORARY_REDIRECT { "Temporary Redirect" , 307 , "The requested resource resides temporarily under a different URI" }
static

Definition at line 144 of file StatusCode.h.

◆ TOO_EARLY

const StatusCode scl::http::StatusCode::TOO_EARLY { "Too Early" , 425 , "The server is unwilling to risk processing a request that might be replayed" }
static

Definition at line 171 of file StatusCode.h.

◆ TOO_MANY_REQUESTS

const StatusCode scl::http::StatusCode::TOO_MANY_REQUESTS { "Too Many Requests" , 429 , "The user has sent too many requests in a given amount of time" }
static

Definition at line 174 of file StatusCode.h.

◆ UNAUTHORIZED

const StatusCode scl::http::StatusCode::UNAUTHORIZED { "Unauthorized" , 401 , "Request requires user authentication" }
static

Definition at line 149 of file StatusCode.h.

◆ UNAVAILABLE_FOR_LEGAL_REASONS

const StatusCode scl::http::StatusCode::UNAVAILABLE_FOR_LEGAL_REASONS { "Unavailable For Legal Reasons" , 451 , "The requested resource is unavailable for legal reasons" }
static

Definition at line 176 of file StatusCode.h.

◆ UNPROCESSABLE_ENTITY

const StatusCode scl::http::StatusCode::UNPROCESSABLE_ENTITY { "Unprocessable Entity" , 422 , "The server understands the content type and the syntax is correct but was unable to process the contained instructions" }
static

Definition at line 168 of file StatusCode.h.

◆ UNSUPPORTED_MEDIA_TYPE

const StatusCode scl::http::StatusCode::UNSUPPORTED_MEDIA_TYPE { "Unsupported Media Type" , 415 , "The format of the entity of the request is not supported" }
static

Definition at line 163 of file StatusCode.h.

◆ UPGRADE_REQUIRED

const StatusCode scl::http::StatusCode::UPGRADE_REQUIRED { "Upgrade Required" , 426 , "The server refuses to perform the request using the current protocol but might if the client upgrades to a different protocol" }
static

Definition at line 172 of file StatusCode.h.

◆ USE_PROXY

const StatusCode scl::http::StatusCode::USE_PROXY { "Use Proxy" , 305 , "The requested resource must be accessed through the given proxy" }
static

Definition at line 143 of file StatusCode.h.

◆ VARIANT_ALSO_NEGOTIATES

const StatusCode scl::http::StatusCode::VARIANT_ALSO_NEGOTIATES { "Variant Also Negotiates" , 506 , "The chosen variant resource is configured to engage in transparent content negotiation and is therefore not a proper end point in the negotiation process" }
static

Definition at line 185 of file StatusCode.h.

◆ vers

const version_type& scl::http::StatusCode::vers
protected

Definition at line 21 of file StatusCode.h.


The documentation for this class was generated from the following file: