HttpStatus.Code

Undocumented in source.
struct HttpStatus
struct Code {}

Members

Functions

equals
bool equals(int code)
Undocumented in source. Be warned that the author may not have intended to support it.
getCode
int getCode()
Undocumented in source. Be warned that the author may not have intended to support it.
getMessage
string getMessage()
Undocumented in source. Be warned that the author may not have intended to support it.
isClientError
bool isClientError()

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()

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()

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()

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()

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>.

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin ValuesMemberTempate!(Code)
Undocumented in source.

Variables

ACCEPTED
enum Code ACCEPTED;
Undocumented in source.
BAD_GATEWAY
enum Code BAD_GATEWAY;
Undocumented in source.
BAD_REQUEST
enum Code BAD_REQUEST;
Undocumented in source.
CONFLICT
enum Code CONFLICT;
Undocumented in source.
CONTINUE
enum Code CONTINUE;
Undocumented in source.
CREATED
enum Code CREATED;
Undocumented in source.
ENHANCE_YOUR_CALM
enum Code ENHANCE_YOUR_CALM;
Undocumented in source.
EXPECTATION_FAILED
enum Code EXPECTATION_FAILED;
Undocumented in source.
FAILED_DEPENDENCY
enum Code FAILED_DEPENDENCY;
Undocumented in source.
FORBIDDEN
enum Code FORBIDDEN;
Undocumented in source.
FOUND
enum Code FOUND;
Undocumented in source.
GATEWAY_TIMEOUT
enum Code GATEWAY_TIMEOUT;
Undocumented in source.
GONE
enum Code GONE;
Undocumented in source.
HTTP_VERSION_NOT_SUPPORTED
enum Code HTTP_VERSION_NOT_SUPPORTED;
Undocumented in source.
IM_A_TEAPOT
enum Code IM_A_TEAPOT;
Undocumented in source.
INSUFFICIENT_STORAGE
enum Code INSUFFICIENT_STORAGE;
Undocumented in source.
INTERNAL_SERVER_ERROR
enum Code INTERNAL_SERVER_ERROR;
Undocumented in source.
LENGTH_REQUIRED
enum Code LENGTH_REQUIRED;
Undocumented in source.
LOCKED
enum Code LOCKED;
Undocumented in source.
LOOP_DETECTED
enum Code LOOP_DETECTED;
Undocumented in source.
METHOD_NOT_ALLOWED
enum Code METHOD_NOT_ALLOWED;
Undocumented in source.
MISDIRECTED_REQUEST
enum Code MISDIRECTED_REQUEST;
Undocumented in source.
MOVED_PERMANENTLY
enum Code MOVED_PERMANENTLY;
Undocumented in source.
MOVED_TEMPORARILY
enum Code MOVED_TEMPORARILY;
Undocumented in source.
MULTIPLE_CHOICES
enum Code MULTIPLE_CHOICES;
Undocumented in source.
MULTI_STATUS
enum Code MULTI_STATUS;
Undocumented in source.
NETWORK_AUTHENTICATION_REQUIRED
enum Code NETWORK_AUTHENTICATION_REQUIRED;
Undocumented in source.
NON_AUTHORITATIVE_INFORMATION
enum Code NON_AUTHORITATIVE_INFORMATION;
Undocumented in source.
NOT_ACCEPTABLE
enum Code NOT_ACCEPTABLE;
Undocumented in source.
NOT_EXTENDED
enum Code NOT_EXTENDED;
Undocumented in source.
NOT_FOUND
enum Code NOT_FOUND;
Undocumented in source.
NOT_IMPLEMENTED
enum Code NOT_IMPLEMENTED;
Undocumented in source.
NOT_MODIFIED
enum Code NOT_MODIFIED;
Undocumented in source.
NO_CONTENT
enum Code NO_CONTENT;
Undocumented in source.
Null
enum Code Null;
Undocumented in source.
OK
enum Code OK;
Undocumented in source.
PARTIAL_CONTENT
enum Code PARTIAL_CONTENT;
Undocumented in source.
PAYLOAD_TOO_LARGE
enum Code PAYLOAD_TOO_LARGE;
Undocumented in source.
PAYMENT_REQUIRED
enum Code PAYMENT_REQUIRED;
Undocumented in source.
PERMANET_REDIRECT
enum Code PERMANET_REDIRECT;
Undocumented in source.
PRECONDITION_FAILED
enum Code PRECONDITION_FAILED;
Undocumented in source.
PRECONDITION_REQUIRED
enum Code PRECONDITION_REQUIRED;
Undocumented in source.
PROCESSING
enum Code PROCESSING;
Undocumented in source.
PROXY_AUTHENTICATION_REQUIRED
enum Code PROXY_AUTHENTICATION_REQUIRED;
Undocumented in source.
RANGE_NOT_SATISFIABLE
enum Code RANGE_NOT_SATISFIABLE;
Undocumented in source.
REQUEST_HEADER_FIELDS_TOO_LARGE
enum Code REQUEST_HEADER_FIELDS_TOO_LARGE;
Undocumented in source.
REQUEST_TIMEOUT
enum Code REQUEST_TIMEOUT;
Undocumented in source.
RESET_CONTENT
enum Code RESET_CONTENT;
Undocumented in source.
SEE_OTHER
enum Code SEE_OTHER;
Undocumented in source.
SERVICE_UNAVAILABLE
enum Code SERVICE_UNAVAILABLE;
Undocumented in source.
SWITCHING_PROTOCOLS
enum Code SWITCHING_PROTOCOLS;
Undocumented in source.
TEMPORARY_REDIRECT
enum Code TEMPORARY_REDIRECT;
Undocumented in source.
TOO_MANY_REQUESTS
enum Code TOO_MANY_REQUESTS;
Undocumented in source.
UNAUTHORIZED
enum Code UNAUTHORIZED;
Undocumented in source.
UNAVAILABLE_FOR_LEGAL_REASONS
enum Code UNAVAILABLE_FOR_LEGAL_REASONS;
Undocumented in source.
UNPROCESSABLE_ENTITY
enum Code UNPROCESSABLE_ENTITY;
Undocumented in source.
UNSUPPORTED_MEDIA_TYPE
enum Code UNSUPPORTED_MEDIA_TYPE;
Undocumented in source.
UPGRADE_REQUIRED
enum Code UPGRADE_REQUIRED;
Undocumented in source.
URI_TOO_LONG
enum Code URI_TOO_LONG;
Undocumented in source.
USE_PROXY
enum Code USE_PROXY;
Undocumented in source.

Meta