summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2018-02-14 20:03:44 +0100
committerGitHub <noreply@github.com>2018-02-14 20:03:44 +0100
commit635256265a38e655c00f4415d5f09700f28c5805 (patch)
tree5d135f5e111e3bb288b01da3c9c177850fe854d4
parent2e35167e8e8be5c91de2a09dcebb92e7a7410d8d (diff)
parent694a43722212558eb25322e72bae09d70b6d4a07 (diff)
Merge pull request #5407 from qichengzx/develop
complement the missing HTTP status codes
-rw-r--r--system/core/Common.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index 8d6253bea..3a4ef425a 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -498,6 +498,7 @@ if ( ! function_exists('set_status_header'))
$stati = array(
100 => 'Continue',
101 => 'Switching Protocols',
+ 103 => 'Early Hints',
200 => 'OK',
201 => 'Created',
@@ -506,6 +507,7 @@ if ( ! function_exists('set_status_header'))
204 => 'No Content',
205 => 'Reset Content',
206 => 'Partial Content',
+ 207 => 'Multi-Status',
300 => 'Multiple Choices',
301 => 'Moved Permanently',
@@ -514,6 +516,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 +536,13 @@ if ( ! function_exists('set_status_header'))
415 => 'Unsupported Media Type',
416 => 'Requested Range Not Satisfiable',
417 => 'Expectation Failed',
+ 421 => 'Misdirected Request',
422 => 'Unprocessable Entity',
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',