|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace React\Http; |
| 4 | + |
| 5 | +/** |
| 6 | + * This is copy-pasted from Symfony2's Response class |
| 7 | + */ |
| 8 | +class ResponseCodes |
| 9 | +{ |
| 10 | + public static $statusTexts = array( |
| 11 | + 100 => 'Continue', |
| 12 | + 101 => 'Switching Protocols', |
| 13 | + 102 => 'Processing', // RFC2518 |
| 14 | + 200 => 'OK', |
| 15 | + 201 => 'Created', |
| 16 | + 202 => 'Accepted', |
| 17 | + 203 => 'Non-Authoritative Information', |
| 18 | + 204 => 'No Content', |
| 19 | + 205 => 'Reset Content', |
| 20 | + 206 => 'Partial Content', |
| 21 | + 207 => 'Multi-Status', // RFC4918 |
| 22 | + 208 => 'Already Reported', // RFC5842 |
| 23 | + 226 => 'IM Used', // RFC3229 |
| 24 | + 300 => 'Multiple Choices', |
| 25 | + 301 => 'Moved Permanently', |
| 26 | + 302 => 'Found', |
| 27 | + 303 => 'See Other', |
| 28 | + 304 => 'Not Modified', |
| 29 | + 305 => 'Use Proxy', |
| 30 | + 306 => 'Reserved', |
| 31 | + 307 => 'Temporary Redirect', |
| 32 | + 308 => 'Permanent Redirect', // RFC-reschke-http-status-308-07 |
| 33 | + 400 => 'Bad Request', |
| 34 | + 401 => 'Unauthorized', |
| 35 | + 402 => 'Payment Required', |
| 36 | + 403 => 'Forbidden', |
| 37 | + 404 => 'Not Found', |
| 38 | + 405 => 'Method Not Allowed', |
| 39 | + 406 => 'Not Acceptable', |
| 40 | + 407 => 'Proxy Authentication Required', |
| 41 | + 408 => 'Request Timeout', |
| 42 | + 409 => 'Conflict', |
| 43 | + 410 => 'Gone', |
| 44 | + 411 => 'Length Required', |
| 45 | + 412 => 'Precondition Failed', |
| 46 | + 413 => 'Request Entity Too Large', |
| 47 | + 414 => 'Request-URI Too Long', |
| 48 | + 415 => 'Unsupported Media Type', |
| 49 | + 416 => 'Requested Range Not Satisfiable', |
| 50 | + 417 => 'Expectation Failed', |
| 51 | + 418 => 'I\'m a teapot', // RFC2324 |
| 52 | + 422 => 'Unprocessable Entity', // RFC4918 |
| 53 | + 423 => 'Locked', // RFC4918 |
| 54 | + 424 => 'Failed Dependency', // RFC4918 |
| 55 | + 425 => 'Reserved for WebDAV advanced collections expired proposal', // RFC2817 |
| 56 | + 426 => 'Upgrade Required', // RFC2817 |
| 57 | + 428 => 'Precondition Required', // RFC6585 |
| 58 | + 429 => 'Too Many Requests', // RFC6585 |
| 59 | + 431 => 'Request Header Fields Too Large', // RFC6585 |
| 60 | + 500 => 'Internal Server Error', |
| 61 | + 501 => 'Not Implemented', |
| 62 | + 502 => 'Bad Gateway', |
| 63 | + 503 => 'Service Unavailable', |
| 64 | + 504 => 'Gateway Timeout', |
| 65 | + 505 => 'HTTP Version Not Supported', |
| 66 | + 506 => 'Variant Also Negotiates (Experimental)', // RFC2295 |
| 67 | + 507 => 'Insufficient Storage', // RFC4918 |
| 68 | + 508 => 'Loop Detected', // RFC5842 |
| 69 | + 510 => 'Not Extended', // RFC2774 |
| 70 | + 511 => 'Network Authentication Required', // RFC6585 |
| 71 | + ); |
| 72 | +} |
0 commit comments