aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/reason_phrase.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/reason_phrase.c')
-rw-r--r--src/microhttpd/reason_phrase.c92
1 files changed, 46 insertions, 46 deletions
diff --git a/src/microhttpd/reason_phrase.c b/src/microhttpd/reason_phrase.c
index ec5d6fc0..669c1015 100644
--- a/src/microhttpd/reason_phrase.c
+++ b/src/microhttpd/reason_phrase.c
@@ -37,20 +37,20 @@ static const struct _MHD_cstr_w_len invalid_hundred[] = {
37}; 37};
38 38
39static const struct _MHD_cstr_w_len one_hundred[] = { 39static const struct _MHD_cstr_w_len one_hundred[] = {
40 /* 100 */ _MHD_S_STR_W_LEN ("Continue"), /* RFC-ietf-httpbis-semantics, Section 15.2.1 */ 40 /* 100 */ _MHD_S_STR_W_LEN ("Continue"), /* RFC9110, Section 15.2.1 */
41 /* 101 */ _MHD_S_STR_W_LEN ("Switching Protocols"), /* RFC-ietf-httpbis-semantics, Section 15.2.2 */ 41 /* 101 */ _MHD_S_STR_W_LEN ("Switching Protocols"), /* RFC9110, Section 15.2.2 */
42 /* 102 */ _MHD_S_STR_W_LEN ("Processing"), /* RFC2518 */ 42 /* 102 */ _MHD_S_STR_W_LEN ("Processing"), /* RFC2518 */
43 /* 103 */ _MHD_S_STR_W_LEN ("Early Hints") /* RFC8297 */ 43 /* 103 */ _MHD_S_STR_W_LEN ("Early Hints") /* RFC8297 */
44}; 44};
45 45
46static const struct _MHD_cstr_w_len two_hundred[] = { 46static const struct _MHD_cstr_w_len two_hundred[] = {
47 /* 200 */ _MHD_S_STR_W_LEN ("OK"), /* RFC-ietf-httpbis-semantics, Section 15.3.1 */ 47 /* 200 */ _MHD_S_STR_W_LEN ("OK"), /* RFC9110, Section 15.3.1 */
48 /* 201 */ _MHD_S_STR_W_LEN ("Created"), /* RFC-ietf-httpbis-semantics, Section 15.3.2 */ 48 /* 201 */ _MHD_S_STR_W_LEN ("Created"), /* RFC9110, Section 15.3.2 */
49 /* 202 */ _MHD_S_STR_W_LEN ("Accepted"), /* RFC-ietf-httpbis-semantics, Section 15.3.3 */ 49 /* 202 */ _MHD_S_STR_W_LEN ("Accepted"), /* RFC9110, Section 15.3.3 */
50 /* 203 */ _MHD_S_STR_W_LEN ("Non-Authoritative Information"), /* RFC-ietf-httpbis-semantics, Section 15.3.4 */ 50 /* 203 */ _MHD_S_STR_W_LEN ("Non-Authoritative Information"), /* RFC9110, Section 15.3.4 */
51 /* 204 */ _MHD_S_STR_W_LEN ("No Content"), /* RFC-ietf-httpbis-semantics, Section 15.3.5 */ 51 /* 204 */ _MHD_S_STR_W_LEN ("No Content"), /* RFC9110, Section 15.3.5 */
52 /* 205 */ _MHD_S_STR_W_LEN ("Reset Content"), /* RFC-ietf-httpbis-semantics, Section 15.3.6 */ 52 /* 205 */ _MHD_S_STR_W_LEN ("Reset Content"), /* RFC9110, Section 15.3.6 */
53 /* 206 */ _MHD_S_STR_W_LEN ("Partial Content"), /* RFC-ietf-httpbis-semantics, Section 15.3.7 */ 53 /* 206 */ _MHD_S_STR_W_LEN ("Partial Content"), /* RFC9110, Section 15.3.7 */
54 /* 207 */ _MHD_S_STR_W_LEN ("Multi-Status"), /* RFC4918 */ 54 /* 207 */ _MHD_S_STR_W_LEN ("Multi-Status"), /* RFC4918 */
55 /* 208 */ _MHD_S_STR_W_LEN ("Already Reported"), /* RFC5842 */ 55 /* 208 */ _MHD_S_STR_W_LEN ("Already Reported"), /* RFC5842 */
56 /* 209 */ {"Unknown", 0}, /* Not used */ 56 /* 209 */ {"Unknown", 0}, /* Not used */
@@ -74,45 +74,45 @@ static const struct _MHD_cstr_w_len two_hundred[] = {
74}; 74};
75 75
76static const struct _MHD_cstr_w_len three_hundred[] = { 76static const struct _MHD_cstr_w_len three_hundred[] = {
77 /* 300 */ _MHD_S_STR_W_LEN ("Multiple Choices"), /* RFC-ietf-httpbis-semantics, Section 15.4.1 */ 77 /* 300 */ _MHD_S_STR_W_LEN ("Multiple Choices"), /* RFC9110, Section 15.4.1 */
78 /* 301 */ _MHD_S_STR_W_LEN ("Moved Permanently"), /* RFC-ietf-httpbis-semantics, Section 15.4.2 */ 78 /* 301 */ _MHD_S_STR_W_LEN ("Moved Permanently"), /* RFC9110, Section 15.4.2 */
79 /* 302 */ _MHD_S_STR_W_LEN ("Found"), /* RFC-ietf-httpbis-semantics, Section 15.4.3 */ 79 /* 302 */ _MHD_S_STR_W_LEN ("Found"), /* RFC9110, Section 15.4.3 */
80 /* 303 */ _MHD_S_STR_W_LEN ("See Other"), /* RFC-ietf-httpbis-semantics, Section 15.4.4 */ 80 /* 303 */ _MHD_S_STR_W_LEN ("See Other"), /* RFC9110, Section 15.4.4 */
81 /* 304 */ _MHD_S_STR_W_LEN ("Not Modified"), /* RFC-ietf-httpbis-semantics, Section 15.4.5 */ 81 /* 304 */ _MHD_S_STR_W_LEN ("Not Modified"), /* RFC9110, Section 15.4.5 */
82 /* 305 */ _MHD_S_STR_W_LEN ("Use Proxy"), /* RFC-ietf-httpbis-semantics, Section 15.4.6 */ 82 /* 305 */ _MHD_S_STR_W_LEN ("Use Proxy"), /* RFC9110, Section 15.4.6 */
83 /* 306 */ _MHD_S_STR_W_LEN ("Switch Proxy"), /* Not used! RFC-ietf-httpbis-semantics, Section 15.4.7 */ 83 /* 306 */ _MHD_S_STR_W_LEN ("Switch Proxy"), /* Not used! RFC9110, Section 15.4.7 */
84 /* 307 */ _MHD_S_STR_W_LEN ("Temporary Redirect"), /* RFC-ietf-httpbis-semantics, Section 15.4.8 */ 84 /* 307 */ _MHD_S_STR_W_LEN ("Temporary Redirect"), /* RFC9110, Section 15.4.8 */
85 /* 308 */ _MHD_S_STR_W_LEN ("Permanent Redirect") /* RFC-ietf-httpbis-semantics, Section 15.4.9 */ 85 /* 308 */ _MHD_S_STR_W_LEN ("Permanent Redirect") /* RFC9110, Section 15.4.9 */
86}; 86};
87 87
88static const struct _MHD_cstr_w_len four_hundred[] = { 88static const struct _MHD_cstr_w_len four_hundred[] = {
89 /* 400 */ _MHD_S_STR_W_LEN ("Bad Request"), /* RFC-ietf-httpbis-semantics, Section 15.5.1 */ 89 /* 400 */ _MHD_S_STR_W_LEN ("Bad Request"), /* RFC9110, Section 15.5.1 */
90 /* 401 */ _MHD_S_STR_W_LEN ("Unauthorized"), /* RFC-ietf-httpbis-semantics, Section 15.5.2 */ 90 /* 401 */ _MHD_S_STR_W_LEN ("Unauthorized"), /* RFC9110, Section 15.5.2 */
91 /* 402 */ _MHD_S_STR_W_LEN ("Payment Required"), /* RFC-ietf-httpbis-semantics, Section 15.5.3 */ 91 /* 402 */ _MHD_S_STR_W_LEN ("Payment Required"), /* RFC9110, Section 15.5.3 */
92 /* 403 */ _MHD_S_STR_W_LEN ("Forbidden"), /* RFC-ietf-httpbis-semantics, Section 15.5.4 */ 92 /* 403 */ _MHD_S_STR_W_LEN ("Forbidden"), /* RFC9110, Section 15.5.4 */
93 /* 404 */ _MHD_S_STR_W_LEN ("Not Found"), /* RFC-ietf-httpbis-semantics, Section 15.5.5 */ 93 /* 404 */ _MHD_S_STR_W_LEN ("Not Found"), /* RFC9110, Section 15.5.5 */
94 /* 405 */ _MHD_S_STR_W_LEN ("Method Not Allowed"), /* RFC-ietf-httpbis-semantics, Section 15.5.6 */ 94 /* 405 */ _MHD_S_STR_W_LEN ("Method Not Allowed"), /* RFC9110, Section 15.5.6 */
95 /* 406 */ _MHD_S_STR_W_LEN ("Not Acceptable"), /* RFC-ietf-httpbis-semantics, Section 15.5.7 */ 95 /* 406 */ _MHD_S_STR_W_LEN ("Not Acceptable"), /* RFC9110, Section 15.5.7 */
96 /* 407 */ _MHD_S_STR_W_LEN ("Proxy Authentication Required"), /* RFC-ietf-httpbis-semantics, Section 15.5.8 */ 96 /* 407 */ _MHD_S_STR_W_LEN ("Proxy Authentication Required"), /* RFC9110, Section 15.5.8 */
97 /* 408 */ _MHD_S_STR_W_LEN ("Request Timeout"), /* RFC-ietf-httpbis-semantics, Section 15.5.9 */ 97 /* 408 */ _MHD_S_STR_W_LEN ("Request Timeout"), /* RFC9110, Section 15.5.9 */
98 /* 409 */ _MHD_S_STR_W_LEN ("Conflict"), /* RFC-ietf-httpbis-semantics, Section 15.5.10 */ 98 /* 409 */ _MHD_S_STR_W_LEN ("Conflict"), /* RFC9110, Section 15.5.10 */
99 /* 410 */ _MHD_S_STR_W_LEN ("Gone"), /* RFC-ietf-httpbis-semantics, Section 15.5.11 */ 99 /* 410 */ _MHD_S_STR_W_LEN ("Gone"), /* RFC9110, Section 15.5.11 */
100 /* 411 */ _MHD_S_STR_W_LEN ("Length Required"), /* RFC-ietf-httpbis-semantics, Section 15.5.12 */ 100 /* 411 */ _MHD_S_STR_W_LEN ("Length Required"), /* RFC9110, Section 15.5.12 */
101 /* 412 */ _MHD_S_STR_W_LEN ("Precondition Failed"), /* RFC-ietf-httpbis-semantics, Section 15.5.13 */ 101 /* 412 */ _MHD_S_STR_W_LEN ("Precondition Failed"), /* RFC9110, Section 15.5.13 */
102 /* 413 */ _MHD_S_STR_W_LEN ("Content Too Large"), /* RFC-ietf-httpbis-semantics, Section 15.5.14 */ 102 /* 413 */ _MHD_S_STR_W_LEN ("Content Too Large"), /* RFC9110, Section 15.5.14 */
103 /* 414 */ _MHD_S_STR_W_LEN ("URI Too Long"), /* RFC-ietf-httpbis-semantics, Section 15.5.15 */ 103 /* 414 */ _MHD_S_STR_W_LEN ("URI Too Long"), /* RFC9110, Section 15.5.15 */
104 /* 415 */ _MHD_S_STR_W_LEN ("Unsupported Media Type"), /* RFC-ietf-httpbis-semantics, Section 15.5.16 */ 104 /* 415 */ _MHD_S_STR_W_LEN ("Unsupported Media Type"), /* RFC9110, Section 15.5.16 */
105 /* 416 */ _MHD_S_STR_W_LEN ("Range Not Satisfiable"), /* RFC-ietf-httpbis-semantics, Section 15.5.17 */ 105 /* 416 */ _MHD_S_STR_W_LEN ("Range Not Satisfiable"), /* RFC9110, Section 15.5.17 */
106 /* 417 */ _MHD_S_STR_W_LEN ("Expectation Failed"), /* RFC-ietf-httpbis-semantics, Section 15.5.18 */ 106 /* 417 */ _MHD_S_STR_W_LEN ("Expectation Failed"), /* RFC9110, Section 15.5.18 */
107 /* 418 */ {"Unknown", 0}, /* Not used */ 107 /* 418 */ {"Unknown", 0}, /* Not used */
108 /* 419 */ {"Unknown", 0}, /* Not used */ 108 /* 419 */ {"Unknown", 0}, /* Not used */
109 /* 420 */ {"Unknown", 0}, /* Not used */ 109 /* 420 */ {"Unknown", 0}, /* Not used */
110 /* 421 */ _MHD_S_STR_W_LEN ("Misdirected Request"), /* RFC-ietf-httpbis-semantics, Section 15.5.20 */ 110 /* 421 */ _MHD_S_STR_W_LEN ("Misdirected Request"), /* RFC9110, Section 15.5.20 */
111 /* 422 */ _MHD_S_STR_W_LEN ("Unprocessable Content"), /* RFC-ietf-httpbis-semantics, Section 15.5.21 */ 111 /* 422 */ _MHD_S_STR_W_LEN ("Unprocessable Content"), /* RFC9110, Section 15.5.21 */
112 /* 423 */ _MHD_S_STR_W_LEN ("Locked"), /* RFC4918 */ 112 /* 423 */ _MHD_S_STR_W_LEN ("Locked"), /* RFC4918 */
113 /* 424 */ _MHD_S_STR_W_LEN ("Failed Dependency"), /* RFC4918 */ 113 /* 424 */ _MHD_S_STR_W_LEN ("Failed Dependency"), /* RFC4918 */
114 /* 425 */ _MHD_S_STR_W_LEN ("Too Early"), /* RFC8470 */ 114 /* 425 */ _MHD_S_STR_W_LEN ("Too Early"), /* RFC8470 */
115 /* 426 */ _MHD_S_STR_W_LEN ("Upgrade Required"), /* RFC-ietf-httpbis-semantics, Section 15.5.22 */ 115 /* 426 */ _MHD_S_STR_W_LEN ("Upgrade Required"), /* RFC9110, Section 15.5.22 */
116 /* 427 */ {"Unknown", 0}, /* Not used */ 116 /* 427 */ {"Unknown", 0}, /* Not used */
117 /* 428 */ _MHD_S_STR_W_LEN ("Precondition Required"), /* RFC6585 */ 117 /* 428 */ _MHD_S_STR_W_LEN ("Precondition Required"), /* RFC6585 */
118 /* 429 */ _MHD_S_STR_W_LEN ("Too Many Requests"), /* RFC6585 */ 118 /* 429 */ _MHD_S_STR_W_LEN ("Too Many Requests"), /* RFC6585 */
@@ -141,17 +141,17 @@ static const struct _MHD_cstr_w_len four_hundred[] = {
141}; 141};
142 142
143static const struct _MHD_cstr_w_len five_hundred[] = { 143static const struct _MHD_cstr_w_len five_hundred[] = {
144 /* 500 */ _MHD_S_STR_W_LEN ("Internal Server Error"), /* RFC-ietf-httpbis-semantics, Section 15.6.1 */ 144 /* 500 */ _MHD_S_STR_W_LEN ("Internal Server Error"), /* RFC9110, Section 15.6.1 */
145 /* 501 */ _MHD_S_STR_W_LEN ("Not Implemented"), /* RFC-ietf-httpbis-semantics, Section 15.6.2 */ 145 /* 501 */ _MHD_S_STR_W_LEN ("Not Implemented"), /* RFC9110, Section 15.6.2 */
146 /* 502 */ _MHD_S_STR_W_LEN ("Bad Gateway"), /* RFC-ietf-httpbis-semantics, Section 15.6.3 */ 146 /* 502 */ _MHD_S_STR_W_LEN ("Bad Gateway"), /* RFC9110, Section 15.6.3 */
147 /* 503 */ _MHD_S_STR_W_LEN ("Service Unavailable"), /* RFC-ietf-httpbis-semantics, Section 15.6.4 */ 147 /* 503 */ _MHD_S_STR_W_LEN ("Service Unavailable"), /* RFC9110, Section 15.6.4 */
148 /* 504 */ _MHD_S_STR_W_LEN ("Gateway Timeout"), /* RFC-ietf-httpbis-semantics, Section 15.6.5 */ 148 /* 504 */ _MHD_S_STR_W_LEN ("Gateway Timeout"), /* RFC9110, Section 15.6.5 */
149 /* 505 */ _MHD_S_STR_W_LEN ("HTTP Version Not Supported"), /* RFC-ietf-httpbis-semantics, Section 15.6.6 */ 149 /* 505 */ _MHD_S_STR_W_LEN ("HTTP Version Not Supported"), /* RFC9110, Section 15.6.6 */
150 /* 506 */ _MHD_S_STR_W_LEN ("Variant Also Negotiates"), /* RFC2295 */ 150 /* 506 */ _MHD_S_STR_W_LEN ("Variant Also Negotiates"), /* RFC2295 */
151 /* 507 */ _MHD_S_STR_W_LEN ("Insufficient Storage"), /* RFC4918 */ 151 /* 507 */ _MHD_S_STR_W_LEN ("Insufficient Storage"), /* RFC4918 */
152 /* 508 */ _MHD_S_STR_W_LEN ("Loop Detected"), /* RFC5842 */ 152 /* 508 */ _MHD_S_STR_W_LEN ("Loop Detected"), /* RFC5842 */
153 /* 509 */ _MHD_S_STR_W_LEN ("Bandwidth Limit Exceeded"), /* Apache extension */ 153 /* 509 */ _MHD_S_STR_W_LEN ("Bandwidth Limit Exceeded"), /* Apache extension */
154 /* 510 */ _MHD_S_STR_W_LEN ("Not Extended"), /* RFC2774 */ 154 /* 510 */ _MHD_S_STR_W_LEN ("Not Extended"), /* (OBSOLETED) RFC2774; status-change-http-experiments-to-historic */
155 /* 511 */ _MHD_S_STR_W_LEN ("Network Authentication Required") /* RFC6585 */ 155 /* 511 */ _MHD_S_STR_W_LEN ("Network Authentication Required") /* RFC6585 */
156}; 156};
157 157