libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 4b12c7f80c45381357dedb38a352b305c92562be
parent 3ef98c28c6572416484954850f59ba9b13f24f31
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Fri, 24 Feb 2017 21:37:53 +0300

reason_phrase.c: updated response phrases to latest.

Diffstat:
Msrc/include/microhttpd.h | 2++
Msrc/microhttpd/reason_phrase.c | 38+++++++++++++++++++++++++++++---------
2 files changed, 31 insertions(+), 9 deletions(-)

diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h @@ -298,6 +298,8 @@ _MHD_DEPR_MACRO("Macro MHD_LONG_LONG_PRINTF is deprecated, use MHD_UNSIGNED_LONG * These are the status codes defined for HTTP responses. * @{ */ +/* See http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml */ + #define MHD_HTTP_CONTINUE 100 #define MHD_HTTP_SWITCHING_PROTOCOLS 101 #define MHD_HTTP_PROCESSING 102 diff --git a/src/microhttpd/reason_phrase.c b/src/microhttpd/reason_phrase.c @@ -49,6 +49,25 @@ static const char *const two_hundred[] = { "Reset Content", "Partial Content", "Multi-Status", + "Already Reported", + "Unknown", + "Unknown", /* 210 */ + "Unknown", + "Unknown", + "Unknown", + "Unknown", + "Unknown", /* 215 */ + "Unknown", + "Unknown", + "Unknown", + "Unknown", + "Unknown", /* 220 */ + "Unknown", + "Unknown", + "Unknown", + "Unknown", + "Unknown", /* 225 */ + "IM Used" }; static const char *const three_hundred[] = { @@ -78,25 +97,25 @@ static const char *const four_hundred[] = { "Gone", "Length Required", "Precondition Failed", - "Request Entity Too Large", - "Request-URI Too Large", + "Payload Too Large", + "URI Too Long", "Unsupported Media Type", - "Requested Range Not Satisfiable", + "Range Not Satisfiable", "Expectation Failed", "Unknown", "Unknown", "Unknown", /* 420 */ - "Unknown", + "Misdirected Request", "Unprocessable Entity", "Locked", "Failed Dependency", "Unordered Collection", "Upgrade Required", "Unknown", - "Unknown", - "Unknown", + "Precondition Required", + "Too Many Requests", "Unknown", /* 430 */ - "Unknown", + "Request Header Fields Too Large", "Unknown", "Unknown", "Unknown", @@ -128,9 +147,10 @@ static const char *const five_hundred[] = { "HTTP Version Not Supported", "Variant Also Negotiates", "Insufficient Storage", - "Unknown", + "Loop Detected", "Bandwidth Limit Exceeded", - "Not Extended" + "Not Extended", + "Network Authentication Required" };