Changeset 36294
- Timestamp:
- 01/14/2016 03:15:24 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-http.php
r36074 r36294 20 20 */ 21 21 class WP_Http { 22 23 // Aliases for HTTP response codes. 24 const OK = 200; 25 const CREATED = 201; 26 const ACCEPTED = 202; 27 const NON_AUTHORITATIVE_INFORMATION = 203; 28 const NO_CONTENT = 204; 29 const RESET_CONTENT = 205; 30 const PARTIAL_CONTENT = 206; 31 const MULTI_STATUS = 207; 32 const IM_USED = 226; 33 34 const MULTIPLE_CHOICES = 300; 35 const MOVED_PERMANENTLY = 301; 36 const FOUND = 302; 37 const SEE_OTHER = 303; 38 const NOT_MODIFIED = 304; 39 const USE_PROXY = 305; 40 const RESERVED = 306; 41 const TEMPORARY_REDIRECT = 307; 42 const PERMANENT_REDIRECT = 308; 43 44 const BAD_REQUEST = 400; 45 const UNAUTHORIZED = 401; 46 const PAYMENT_REQUIRED = 402; 47 const FORBIDDEN = 403; 48 const NOT_FOUND = 404; 49 const METHOD_NOT_ALLOWED = 405; 50 const NOT_ACCEPTABLE = 406; 51 const PROXY_AUTHENTICATION_REQUIRED = 407; 52 const REQUEST_TIMEOUT = 408; 53 const CONFLICT = 409; 54 const GONE = 410; 55 const LENGTH_REQUIRED = 411; 56 const PRECONDITION_FAILED = 412; 57 const REQUEST_ENTITY_TOO_LARGE = 413; 58 const REQUEST_URI_TOO_LONG = 414; 59 const UNSUPPORTED_MEDIA_TYPE = 415; 60 const REQUESTED_RANGE_NOT_SATISFIABLE = 416; 61 const EXPECTATION_FAILED = 417; 62 const IM_A_TEAPOT = 418; 63 const MISDIRECTED_REQUEST = 421; 64 const UNPROCESSABLE_ENTITY = 422; 65 const LOCKED = 423; 66 const FAILED_DEPENDENCY = 424; 67 const UPGRADE_REQUIRED = 426; 68 const PRECONDITION_REQUIRED = 428; 69 const TOO_MANY_REQUESTS = 429; 70 const REQUEST_HEADER_FIELDS_TOO_LARGE = 431; 71 const UNAVAILABLE_FOR_LEGAL_REASONS = 451; 72 73 const INTERNAL_SERVER_ERROR = 500; 74 const NOT_IMPLEMENTED = 501; 75 const BAD_GATEWAY = 502; 76 const SERVICE_UNAVAILABLE = 503; 77 const GATEWAY_TIMEOUT = 504; 78 const HTTP_VERSION_NOT_SUPPORTED = 505; 79 const VARIANT_ALSO_NEGOTIATES = 506; 80 const INSUFFICIENT_STORAGE = 507; 81 const NOT_EXTENDED = 510; 82 const NETWORK_AUTHENTICATION_REQUIRED = 511; 22 83 23 84 /**
Note: See TracChangeset
for help on using the changeset viewer.