diff options
author | Jonh Wendell <jonh.wendell@oiwifi.com.br> | 2013-02-08 14:09:11 -0200 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2013-02-17 01:18:40 -0800 |
commit | 59b016192dd52f40591ad969e1ce7c1bfcb947a3 (patch) | |
tree | 99d32b0318b68dc2c559a6be54c6a311f35dddd7 /sapi/cli/php_cli_server.c | |
parent | 263accb626759c92510817cd565885106aa07f4d (diff) | |
download | php-git-59b016192dd52f40591ad969e1ce7c1bfcb947a3.tar.gz |
Added HTTP codes as of RFC 6585
Added descriptions for the new HTTP codes:
- 428 Precondition Required
- 429 Too Many Requests
- 431 Request Header Fields Too Large
- 511 Network Authentication Required
Diffstat (limited to 'sapi/cli/php_cli_server.c')
-rw-r--r-- | sapi/cli/php_cli_server.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c index 6a4e7c53ab..ab7f4cfd19 100644 --- a/sapi/cli/php_cli_server.c +++ b/sapi/cli/php_cli_server.c @@ -236,12 +236,16 @@ static php_cli_server_http_reponse_status_code_pair status_map[] = { { 415, "Unsupported Media Type" }, { 416, "Requested Range Not Satisfiable" }, { 417, "Expectation Failed" }, + { 428, "Precondition Required" }, + { 429, "Too Many Requests" }, + { 431, "Request Header Fields Too Large" }, { 500, "Internal Server Error" }, { 501, "Not Implemented" }, { 502, "Bad Gateway" }, { 503, "Service Unavailable" }, { 504, "Gateway Timeout" }, { 505, "HTTP Version Not Supported" }, + { 511, "Network Authentication Required" }, }; static php_cli_server_http_reponse_status_code_pair template_map[] = { |