HttpStatus

<p> Http Status Codes </p>

@see <a href="http://www.iana.org/assignments/http-status-codes/">IANA HTTP Status Code Registry</a>

struct HttpStatus {}

Members

Manifest constants

ACCEPTED_202
enum ACCEPTED_202;
Undocumented in source.
BAD_GATEWAY_502
enum BAD_GATEWAY_502;
Undocumented in source.
BAD_REQUEST_400
enum BAD_REQUEST_400;
Undocumented in source.
CONFLICT_409
enum CONFLICT_409;
Undocumented in source.
CONTINUE_100
enum CONTINUE_100;
Undocumented in source.
CREATED_201
enum CREATED_201;
Undocumented in source.
ENHANCE_YOUR_CALM_420
enum ENHANCE_YOUR_CALM_420;
Undocumented in source.
EXPECTATION_FAILED_417
enum EXPECTATION_FAILED_417;
Undocumented in source.
FAILED_DEPENDENCY_424
enum FAILED_DEPENDENCY_424;
Undocumented in source.
FORBIDDEN_403
enum FORBIDDEN_403;
Undocumented in source.
FOUND_302
enum FOUND_302;
Undocumented in source.
GATEWAY_TIMEOUT_504
enum GATEWAY_TIMEOUT_504;
Undocumented in source.
GONE_410
enum GONE_410;
Undocumented in source.
HTTP_VERSION_NOT_SUPPORTED_505
enum HTTP_VERSION_NOT_SUPPORTED_505;
Undocumented in source.
IM_A_TEAPOT_418
enum IM_A_TEAPOT_418;
Undocumented in source.
INSUFFICIENT_STORAGE_507
enum INSUFFICIENT_STORAGE_507;
Undocumented in source.
INTERNAL_SERVER_ERROR_500
enum INTERNAL_SERVER_ERROR_500;
Undocumented in source.
LENGTH_REQUIRED_411
enum LENGTH_REQUIRED_411;
Undocumented in source.
LOCKED_423
enum LOCKED_423;
Undocumented in source.
LOOP_DETECTED_508
enum LOOP_DETECTED_508;
Undocumented in source.
MAX_CODE
enum MAX_CODE;
Undocumented in source.
METHOD_NOT_ALLOWED_405
enum METHOD_NOT_ALLOWED_405;
Undocumented in source.
MISDIRECTED_REQUEST_421
enum MISDIRECTED_REQUEST_421;
Undocumented in source.
MOVED_PERMANENTLY_301
enum MOVED_PERMANENTLY_301;
Undocumented in source.
MOVED_TEMPORARILY_302
enum MOVED_TEMPORARILY_302;
Undocumented in source.
MULTIPLE_CHOICES_300
enum MULTIPLE_CHOICES_300;
Undocumented in source.
MULTI_STATUS_207
enum MULTI_STATUS_207;
Undocumented in source.
NETWORK_AUTHENTICATION_REQUIRED_511
enum NETWORK_AUTHENTICATION_REQUIRED_511;
Undocumented in source.
NON_AUTHORITATIVE_INFORMATION_203
enum NON_AUTHORITATIVE_INFORMATION_203;
Undocumented in source.
NOT_ACCEPTABLE_406
enum NOT_ACCEPTABLE_406;
Undocumented in source.
NOT_EXTENDED_510
enum NOT_EXTENDED_510;
Undocumented in source.
NOT_FOUND_404
enum NOT_FOUND_404;
Undocumented in source.
NOT_IMPLEMENTED_501
enum NOT_IMPLEMENTED_501;
Undocumented in source.
NOT_MODIFIED_304
enum NOT_MODIFIED_304;
Undocumented in source.
NO_CONTENT_204
enum NO_CONTENT_204;
Undocumented in source.
OK_200
enum OK_200;
Undocumented in source.
PARTIAL_CONTENT_206
enum PARTIAL_CONTENT_206;
Undocumented in source.
PAYLOAD_TOO_LARGE_413
enum PAYLOAD_TOO_LARGE_413;
Undocumented in source.
PAYMENT_REQUIRED_402
enum PAYMENT_REQUIRED_402;
Undocumented in source.
PERMANENT_REDIRECT_308
enum PERMANENT_REDIRECT_308;
Undocumented in source.
PRECONDITION_FAILED_412
enum PRECONDITION_FAILED_412;
Undocumented in source.
PRECONDITION_REQUIRED_428
enum PRECONDITION_REQUIRED_428;
Undocumented in source.
PROCESSING_102
enum PROCESSING_102;
Undocumented in source.
PROXY_AUTHENTICATION_REQUIRED_407
enum PROXY_AUTHENTICATION_REQUIRED_407;
Undocumented in source.
RANGE_NOT_SATISFIABLE_416
enum RANGE_NOT_SATISFIABLE_416;
Undocumented in source.
REQUESTED_RANGE_NOT_SATISFIABLE_416
deprecated enum REQUESTED_RANGE_NOT_SATISFIABLE_416;
Undocumented in source.
REQUEST_ENTITY_TOO_LARGE_413
deprecated enum REQUEST_ENTITY_TOO_LARGE_413;
Undocumented in source.
REQUEST_HEADER_FIELDS_TOO_LARGE_431
enum REQUEST_HEADER_FIELDS_TOO_LARGE_431;
Undocumented in source.
REQUEST_TIMEOUT_408
enum REQUEST_TIMEOUT_408;
Undocumented in source.
REQUEST_URI_TOO_LONG_414
deprecated enum REQUEST_URI_TOO_LONG_414;
Undocumented in source.
RESET_CONTENT_205
enum RESET_CONTENT_205;
Undocumented in source.
SEE_OTHER_303
enum SEE_OTHER_303;
Undocumented in source.
SERVICE_UNAVAILABLE_503
enum SERVICE_UNAVAILABLE_503;
Undocumented in source.
SWITCHING_PROTOCOLS_101
enum SWITCHING_PROTOCOLS_101;
Undocumented in source.
TEMPORARY_REDIRECT_307
enum TEMPORARY_REDIRECT_307;
Undocumented in source.
TOO_MANY_REQUESTS_429
enum TOO_MANY_REQUESTS_429;
Undocumented in source.
UNAUTHORIZED_401
enum UNAUTHORIZED_401;
Undocumented in source.
UNAVAILABLE_FOR_LEGAL_REASONS_451
enum UNAVAILABLE_FOR_LEGAL_REASONS_451;
Undocumented in source.
UNPROCESSABLE_ENTITY_422
enum UNPROCESSABLE_ENTITY_422;
Undocumented in source.
UNSUPPORTED_MEDIA_TYPE_415
enum UNSUPPORTED_MEDIA_TYPE_415;
Undocumented in source.
UPGRADE_REQUIRED_426
enum UPGRADE_REQUIRED_426;
Undocumented in source.
URI_TOO_LONG_414
enum URI_TOO_LONG_414;
Undocumented in source.
USE_PROXY_305
enum USE_PROXY_305;
Undocumented in source.

Static functions

getCode
Code getCode(int code)

Get the HttpStatusCode for a specific code

getMessage
string getMessage(int code)

Get the status message for a specific code.

isClientError
bool isClientError(int code)

Simple test against an code to determine if it falls into the <code>Client Error</code> message category as defined in the <a href="http://tools.ietf.org/html/rfc1945">RFC 1945 - HTTP/1.0</a>, and <a href="http://tools.ietf.org/html/rfc7231">RFC 7231 - HTTP/1.1</a>.

isInformational
bool isInformational(int code)

Simple test against an code to determine if it falls into the <code>Informational</code> message category as defined in the <a href="http://tools.ietf.org/html/rfc1945">RFC 1945 - HTTP/1.0</a>, and <a href="http://tools.ietf.org/html/rfc7231">RFC 7231 - HTTP/1.1</a>.

isRedirection
bool isRedirection(int code)

Simple test against an code to determine if it falls into the <code>Redirection</code> message category as defined in the <a href="http://tools.ietf.org/html/rfc1945">RFC 1945 - HTTP/1.0</a>, and <a href="http://tools.ietf.org/html/rfc7231">RFC 7231 - HTTP/1.1</a>.

isServerError
bool isServerError(int code)

Simple test against an code to determine if it falls into the <code>Server Error</code> message category as defined in the <a href="http://tools.ietf.org/html/rfc1945">RFC 1945 - HTTP/1.0</a>, and <a href="http://tools.ietf.org/html/rfc7231">RFC 7231 - HTTP/1.1</a>.

isSuccess
bool isSuccess(int code)

Simple test against an code to determine if it falls into the <code>Success</code> message category as defined in the <a href="http://tools.ietf.org/html/rfc1945">RFC 1945 - HTTP/1.0</a>, and <a href="http://tools.ietf.org/html/rfc7231">RFC 7231 - HTTP/1.1</a>.

Structs

Code
struct Code
Undocumented in source.

Meta