| 24 | * Aliases for HTTP response codes. |
| 25 | */ |
| 26 | const OK = 200; |
| 27 | const CREATED = 201; |
| 28 | const ACCEPTED = 202; |
| 29 | const NON_AUTHORITATIVE_INFORMATION = 203; |
| 30 | const NO_CONTENT = 204; |
| 31 | const RESET_CONTENT = 205; |
| 32 | const PARTIAL_CONTENT = 206; |
| 33 | const MULTI_STATUS = 207; |
| 34 | const IM_USED = 226; |
| 35 | |
| 36 | const MULTIPLE_CHOICES = 300; |
| 37 | const MOVED_PERMANENTLY = 301; |
| 38 | const FOUND = 302; |
| 39 | const SEE_OTHER = 303; |
| 40 | const NOT_MODIFIED = 304; |
| 41 | const USE_PROXY = 305; |
| 42 | const RESERVED = 306; |
| 43 | const TEMPORARY_REDIRECT = 307; |
| 44 | const PERMANENT_REDIRECT = 308; |
| 45 | |
| 46 | const BAD_REQUEST = 400; |
| 47 | const UNAUTHORIZED = 401; |
| 48 | const PAYMENT_REQUIRED = 402; |
| 49 | const FORBIDDEN = 403; |
| 50 | const NOT_FOUND = 404; |
| 51 | const METHOD_NOT_ALLOWED = 405; |
| 52 | const NOT_ACCEPTABLE = 406; |
| 53 | const PROXY_AUTHENTICATION_REQUIRED = 407; |
| 54 | const REQUEST_TIMEOUT = 408; |
| 55 | const CONFLICT = 409; |
| 56 | const GONE = 410; |
| 57 | const LENGTH_REQUIRED = 411; |
| 58 | const PRECONDITION_FAILED = 412; |
| 59 | const REQUEST_ENTITY_TOO_LARGE = 413; |
| 60 | const REQUEST_URI_TOO_LONG = 414; |
| 61 | const UNSUPPORTED_MEDIA_TYPE = 415; |
| 62 | const REQUESTED_RANGE_NOT_SATISFIABLE = 416; |
| 63 | const EXPECTATION_FAILED = 417; |
| 64 | const IM_A_TEAPOT = 418; |
| 65 | const MISDIRECTED_REQUEST = 421; |
| 66 | const UNPROCESSABLE_ENTITY = 422; |
| 67 | const LOCKED = 423; |
| 68 | const FAILED_DEPENDENCY = 424; |
| 69 | const UPGRADE_REQUIRED = 426; |
| 70 | const PRECONDITION_REQUIRED = 428; |
| 71 | const TOO_MANY_REQUESTS = 429; |
| 72 | const REQUEST_HEADER_FIELDS_TOO_LARGE = 431; |
| 73 | const UNAVAILABLE_FOR_LEGAL_REASONS = 451; |
| 74 | |
| 75 | const INTERNAL_SERVER_ERROR = 500; |
| 76 | const NOT_IMPLEMENTED = 501; |
| 77 | const BAD_GATEWAY = 502; |
| 78 | const SERVICE_UNAVAILABLE = 503; |
| 79 | const GATEWAY_TIMEOUT = 504; |
| 80 | const HTTP_VERSION_NOT_SUPPORTED = 505; |
| 81 | const VARIANT_ALSO_NEGOTIATES = 506; |
| 82 | const INSUFFICIENT_STORAGE = 507; |
| 83 | const NOT_EXTENDED = 510; |
| 84 | const NETWORK_AUTHENTICATION_REQUIRED = 511; |
| 85 | |
| 86 | /** |