summaryrefslogtreecommitdiffstats
path: root/system/core/Common.php
diff options
context:
space:
mode:
authorqichengzx <qichengzx@gmail.com>2018-02-11 10:24:58 +0100
committerqichengzx <qichengzx@gmail.com>2018-02-11 10:24:58 +0100
commitb8166baf08d2c7a9fa7565b355324f347ae043f9 (patch)
tree834079d6368aadcd87f5146f918022741b7927c0 /system/core/Common.php
parent43538863b7bdd52529c38ad314ffc0f9edbbaa8b (diff)
complement the missing HTTP status codes
Diffstat (limited to 'system/core/Common.php')
-rw-r--r--system/core/Common.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index 8d6253bea..b0c2d7a88 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -498,6 +498,8 @@ if ( ! function_exists('set_status_header'))
$stati = array(
100 => 'Continue',
101 => 'Switching Protocols',
+ 102 => 'Processing',
+ 103 => 'Early Hints',
200 => 'OK',
201 => 'Created',
@@ -506,6 +508,9 @@ if ( ! function_exists('set_status_header'))
204 => 'No Content',
205 => 'Reset Content',
206 => 'Partial Content',
+ 207 => 'Multi-Status',
+ 208 => 'Already Reported',
+ 226 => 'IM Used',
300 => 'Multiple Choices',
301 => 'Moved Permanently',
@@ -514,6 +519,7 @@ if ( ! function_exists('set_status_header'))
304 => 'Not Modified',
305 => 'Use Proxy',
307 => 'Temporary Redirect',
+ 308 => 'Permanent Redirect',
400 => 'Bad Request',
401 => 'Unauthorized',
@@ -533,11 +539,14 @@ if ( ! function_exists('set_status_header'))
415 => 'Unsupported Media Type',
416 => 'Requested Range Not Satisfiable',
417 => 'Expectation Failed',
+ 421 => 'Misdirected Request',
422 => 'Unprocessable Entity',
+ 423 => 'Locked',
426 => 'Upgrade Required',
428 => 'Precondition Required',
429 => 'Too Many Requests',
431 => 'Request Header Fields Too Large',
+ 451 => 'Unavailable For Legal Reasons',
500 => 'Internal Server Error',
501 => 'Not Implemented',
@@ -545,6 +554,10 @@ if ( ! function_exists('set_status_header'))
503 => 'Service Unavailable',
504 => 'Gateway Timeout',
505 => 'HTTP Version Not Supported',
+ 506 => 'Variant Also Negotiates',
+ 507 => 'Insufficient Storage',
+ 508 => 'Loop Detected',
+ 510 => 'Not Extended',
511 => 'Network Authentication Required',
);