Skip to content

Instantly share code, notes, and snippets.

@rhysd
Last active April 21, 2017 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhysd/224e214832a7f5c6bcefd57afd90178f to your computer and use it in GitHub Desktop.
Save rhysd/224e214832a7f5c6bcefd57afd90178f to your computer and use it in GitHub Desktop.
type CONTINUE = 100;
type SWITCHING_PROTOCOLS = 101;
type OK = 200;
type CREATED = 201;
type ACCEPTED = 202;
type NON_AUTHORITATIVE_INFORMATION = 203;
type NO_CONTENT = 204;
type RESET_CONTENT = 205;
type PARTIAL_CONTENT = 206;
type MULTIPLE_CHOICES = 300;
type MOVED_PERMANENTLY = 301;
type FOUND = 302;
type SEE_OTHER = 303;
type NOT_MODIFIED = 304;
type USE_PROXY = 305;
type TEMPORARY_REDIRECT = 307;
type BAD_REQUEST = 400;
type UNAUTHORIZED = 401;
type PAYMENT_REQUIRED = 402;
type FORBIDDEN = 403;
type NOT_FOUND = 404;
type METHOD_NOT_ALLOWED = 405;
type NOT_ACCEPTABLE = 406;
type PROXY_AUTHENTICATION_REQUIRED = 407;
type REQUEST_TIMEOUT = 408;
type CONFLICT = 409;
type GONE = 410;
type LENGTH_REQUIRED = 411;
type PRECONDITION_FAILED = 412;
type REQUEST_ENTITY_TOO_LARGE = 413;
type REQUEST_URI_TOO_LONG = 414;
type UNSUPPORTED_MEDIA_TYPE = 415;
type REQUESTED_RANGE_NOT_SATISFIABLE = 416;
type EXPECTATION_FAILED = 417;
type UNPROCESSABLE_ENTITY = 422;
type TOO_MANY_REQUESTS = 429;
type INTERNAL_SERVER_ERROR = 500;
type NOT_IMPLEMENTED = 501;
type BAD_GATEWAY = 502;
type SERVICE_UNAVAILABLE = 503;
type GATEWAY_TIMEOUT = 504;
type HTTP_VERSION_NOT_SUPPORTED = 505;
type HttpStatusCode
= CONTINUE
| SWITCHING_PROTOCOLS
| OK
| CREATED
| ACCEPTED
| NON_AUTHORITATIVE_INFORMATION
| NO_CONTENT
| RESET_CONTENT
| PARTIAL_CONTENT
| MULTIPLE_CHOICES
| MOVED_PERMANENTLY
| FOUND
| SEE_OTHER
| NOT_MODIFIED
| USE_PROXY
| TEMPORARY_REDIRECT
| BAD_REQUEST
| UNAUTHORIZED
| PAYMENT_REQUIRED
| FORBIDDEN
| NOT_FOUND
| METHOD_NOT_ALLOWED
| NOT_ACCEPTABLE
| PROXY_AUTHENTICATION_REQUIRED
| REQUEST_TIMEOUT
| CONFLICT
| GONE
| LENGTH_REQUIRED
| PRECONDITION_FAILED
| REQUEST_ENTITY_TOO_LARGE
| REQUEST_URI_TOO_LONG
| UNSUPPORTED_MEDIA_TYPE
| REQUESTED_RANGE_NOT_SATISFIABLE
| EXPECTATION_FAILED
| UNPROCESSABLE_ENTITY
| TOO_MANY_REQUESTS
| INTERNAL_SERVER_ERROR
| NOT_IMPLEMENTED
| BAD_GATEWAY
| SERVICE_UNAVAILABLE
| GATEWAY_TIMEOUT
| HTTP_VERSION_NOT_SUPPORTED
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment