summaryrefslogtreecommitdiff
path: root/sapi/cgi/cgi_main.c
diff options
context:
space:
mode:
authorJonh Wendell <jonh.wendell@oiwifi.com.br>2013-02-08 14:09:11 -0200
committerStanislav Malyshev <stas@php.net>2013-02-17 01:18:40 -0800
commit59b016192dd52f40591ad969e1ce7c1bfcb947a3 (patch)
tree99d32b0318b68dc2c559a6be54c6a311f35dddd7 /sapi/cgi/cgi_main.c
parent263accb626759c92510817cd565885106aa07f4d (diff)
downloadphp-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/cgi/cgi_main.c')
-rw-r--r--sapi/cgi/cgi_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index 35402a47d9..c8dfec0f95 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -384,12 +384,16 @@ static const http_error http_error_codes[] = {
{413, "Request Entity Too Large"},
{414, "Request-URI Too Large"},
{415, "Unsupported Media Type"},
+ {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 Time-out"},
{505, "HTTP Version not supported"},
+ {511, "Network Authentication Required"},
{0, NULL}
};