Last active
August 29, 2015 14:16
-
-
Save alanthonyc/ce7a0187d6ec458576c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// HTTPConstants.h | |
// Heartagram | |
// | |
// Created by Anthony Castillo on 3/11/15. | |
// HTTP status codes. Reference: http://www.django-rest-framework.org/api-guide/status-codes/ | |
#ifndef HTTPConstants_h | |
#define HTTPConstants_h | |
#define kHTTP_100_CONTINUE 100 | |
#define kHTTP_101_SWITCHING_PROTOCOLS 101 | |
#define kHTTP_200_OK 200 | |
#define kHTTP_201_CREATED 201 | |
#define kHTTP_202_ACCEPTED 202 | |
#define kHTTP_203_NON_AUTHORITATIVE_INFORMATION 203 | |
#define kHTTP_204_NO_CONTENT 204 | |
#define kHTTP_205_RESET_CONTENT 205 | |
#define kHTTP_206_PARTIAL_CONTENT 206 | |
#define kHTTP_300_MULTIPLE_CHOICES 300 | |
#define kHTTP_301_MOVED_PERMANENTLY 301 | |
#define kHTTP_302_FOUND 302 | |
#define kHTTP_303_SEE_OTHER 303 | |
#define kHTTP_304_NOT_MODIFIED 304 | |
#define kHTTP_305_USE_PROXY 305 | |
#define kHTTP_306_RESERVED 306 | |
#define kHTTP_307_TEMPORARY_REDIRECT 307 | |
#define kHTTP_400_BAD_REQUEST 400 | |
#define kHTTP_401_UNAUTHORIZED 401 | |
#define kHTTP_402_PAYMENT_REQUIRED 402 | |
#define kHTTP_403_FORBIDDEN 403 | |
#define kHTTP_404_NOT_FOUND 404 | |
#define kHTTP_405_METHOD_NOT_ALLOWED 405 | |
#define kHTTP_406_NOT_ACCEPTABLE 406 | |
#define kHTTP_407_PROXY_AUTHENTICATION_REQUIRED 407 | |
#define kHTTP_408_REQUEST_TIMEOUT 408 | |
#define kHTTP_409_CONFLICT 409 | |
#define kHTTP_410_GONE 410 | |
#define kHTTP_411_LENGTH_REQUIRED 411 | |
#define kHTTP_412_PRECONDITION_FAILED 412 | |
#define kHTTP_413_REQUEST_ENTITY_TOO_LARGE 413 | |
#define kHTTP_414_REQUEST_URI_TOO_LONG 414 | |
#define kHTTP_415_UNSUPPORTED_MEDIA_TYPE 415 | |
#define kHTTP_416_REQUESTED_RANGE_NOT_SATISFIABLE 416 | |
#define kHTTP_417_EXPECTATION_FAILED 417 | |
#define kHTTP_428_PRECONDITION_REQUIRED 428 | |
#define kHTTP_429_TOO_MANY_REQUESTS 429 | |
#define kHTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE 431 | |
#define kHTTP_500_INTERNAL_SERVER_ERROR 500 | |
#define kHTTP_501_NOT_IMPLEMENTED 501 | |
#define kHTTP_502_BAD_GATEWAY 502 | |
#define kHTTP_503_SERVICE_UNAVAILABLE 503 | |
#define kHTTP_504_GATEWAY_TIMEOUT 504 | |
#define kHTTP_505_kHTTP_VERSION_NOT_SUPPORTED 505 | |
#define kHTTP_511_NETWORK_AUTHENTICATION_REQUIRED 511 | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment