Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-10-31 02:48:55 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-10-31 02:48:55 +0300
commit65b3415c1fed156ae737203a23d58cd49db6af3c (patch)
tree4da032a41ab4a6181af9c36b10f7c8453fd3f6d1 /libraries
parentcd752ad149410f4778cb0a60539f0856733c029b (diff)
Update HTTP status codes phrases
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/classes/Response.php45
1 files changed, 39 insertions, 6 deletions
diff --git a/libraries/classes/Response.php b/libraries/classes/Response.php
index 142ae0f6b1..0ea9a7ce96 100644
--- a/libraries/classes/Response.php
+++ b/libraries/classes/Response.php
@@ -91,10 +91,15 @@ class Response
/**
* @var array<int, string>
+ * @see http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
*/
protected static $httpStatusMessages = [
+ // Informational
100 => 'Continue',
101 => 'Switching Protocols',
+ 102 => 'Processing',
+ 103 => 'Early Hints',
+ // Success
200 => 'OK',
201 => 'Created',
202 => 'Accepted',
@@ -102,12 +107,19 @@ class Response
204 => 'No Content',
205 => 'Reset Content',
206 => 'Partial Content',
+ 207 => 'Multi-Status',
+ 208 => 'Already Reported',
+ 226 => 'IM Used',
+ // Redirection
300 => 'Multiple Choices',
301 => 'Moved Permanently',
- 302 => 'Moved Temporarily',
+ 302 => 'Found',
303 => 'See Other',
304 => 'Not Modified',
305 => 'Use Proxy',
+ 307 => 'Temporary Redirect',
+ 308 => 'Permanent Redirect',
+ // Client Error
400 => 'Bad Request',
401 => 'Unauthorized',
402 => 'Payment Required',
@@ -116,20 +128,41 @@ class Response
405 => 'Method Not Allowed',
406 => 'Not Acceptable',
407 => 'Proxy Authentication Required',
- 408 => 'Request Time-out',
+ 408 => 'Request Timeout',
409 => 'Conflict',
410 => 'Gone',
411 => 'Length Required',
412 => 'Precondition Failed',
- 413 => 'Request Entity Too Large',
- 414 => 'Request-URI Too Large',
+ 413 => 'Payload Too Large',
+ 414 => 'URI Too Long',
415 => 'Unsupported Media Type',
+ 416 => 'Range Not Satisfiable',
+ 417 => 'Expectation Failed',
+ 421 => 'Misdirected Request',
+ 422 => 'Unprocessable Entity',
+ 423 => 'Locked',
+ 424 => 'Failed Dependency',
+ 425 => 'Too Early',
+ 426 => 'Upgrade Required',
+ 427 => 'Unassigned',
+ 428 => 'Precondition Required',
+ 429 => 'Too Many Requests',
+ 430 => 'Unassigned',
+ 431 => 'Request Header Fields Too Large',
+ 451 => 'Unavailable For Legal Reasons',
+ // Server Error
500 => 'Internal Server Error',
501 => 'Not Implemented',
502 => 'Bad Gateway',
503 => 'Service Unavailable',
- 504 => 'Gateway Time-out',
- 505 => 'HTTP Version not supported',
+ 504 => 'Gateway Timeout',
+ 505 => 'HTTP Version Not Supported',
+ 506 => 'Variant Also Negotiates',
+ 507 => 'Insufficient Storage',
+ 508 => 'Loop Detected',
+ 509 => 'Unassigned',
+ 510 => 'Not Extended',
+ 511 => 'Network Authentication Required',
];
/**