diff options
Diffstat (limited to 'src/microhttpd/reason_phrase.c')
-rw-r--r-- | src/microhttpd/reason_phrase.c | 198 |
1 files changed, 99 insertions, 99 deletions
diff --git a/src/microhttpd/reason_phrase.c b/src/microhttpd/reason_phrase.c index 7891854a..4e54d920 100644 --- a/src/microhttpd/reason_phrase.c +++ b/src/microhttpd/reason_phrase.c | |||
@@ -36,121 +36,121 @@ static const char *const invalid_hundred[] = { | |||
36 | }; | 36 | }; |
37 | 37 | ||
38 | static const char *const one_hundred[] = { | 38 | static const char *const one_hundred[] = { |
39 | /* 100 */ "Continue" /* RFC7231, Section 6.2.1 */, | 39 | /* 100 */ "Continue", /* RFC7231, Section 6.2.1 */ |
40 | /* 101 */ "Switching Protocols" /* RFC7231, Section 6.2.2 */, | 40 | /* 101 */ "Switching Protocols", /* RFC7231, Section 6.2.2 */ |
41 | /* 102 */ "Processing" /* RFC2518 */, | 41 | /* 102 */ "Processing", /* RFC2518 */ |
42 | /* 103 */ "Early Hints" /* RFC8297 */ | 42 | /* 103 */ "Early Hints" /* RFC8297 */ |
43 | }; | 43 | }; |
44 | 44 | ||
45 | static const char *const two_hundred[] = { | 45 | static const char *const two_hundred[] = { |
46 | /* 200 */ "OK" /* RFC7231, Section 6.3.1 */, | 46 | /* 200 */ "OK", /* RFC7231, Section 6.3.1 */ |
47 | /* 201 */ "Created" /* RFC7231, Section 6.3.2 */, | 47 | /* 201 */ "Created", /* RFC7231, Section 6.3.2 */ |
48 | /* 202 */ "Accepted" /* RFC7231, Section 6.3.3 */, | 48 | /* 202 */ "Accepted", /* RFC7231, Section 6.3.3 */ |
49 | /* 203 */ "Non-Authoritative Information" /* RFC7231, Section 6.3.4 */, | 49 | /* 203 */ "Non-Authoritative Information", /* RFC7231, Section 6.3.4 */ |
50 | /* 204 */ "No Content" /* RFC7231, Section 6.3.5 */, | 50 | /* 204 */ "No Content", /* RFC7231, Section 6.3.5 */ |
51 | /* 205 */ "Reset Content" /* RFC7231, Section 6.3.6 */, | 51 | /* 205 */ "Reset Content", /* RFC7231, Section 6.3.6 */ |
52 | /* 206 */ "Partial Content" /* RFC7233, Section 4.1 */, | 52 | /* 206 */ "Partial Content", /* RFC7233, Section 4.1 */ |
53 | /* 207 */ "Multi-Status" /* RFC4918 */, | 53 | /* 207 */ "Multi-Status", /* RFC4918 */ |
54 | /* 208 */ "Already Reported" /* RFC5842 */, | 54 | /* 208 */ "Already Reported", /* RFC5842 */ |
55 | /* 209 */ "Unknown" /* Not used */, | 55 | /* 209 */ "Unknown", /* Not used */ |
56 | /* 210 */ "Unknown" /* Not used */, | 56 | /* 210 */ "Unknown", /* Not used */ |
57 | /* 211 */ "Unknown" /* Not used */, | 57 | /* 211 */ "Unknown", /* Not used */ |
58 | /* 212 */ "Unknown" /* Not used */, | 58 | /* 212 */ "Unknown", /* Not used */ |
59 | /* 213 */ "Unknown" /* Not used */, | 59 | /* 213 */ "Unknown", /* Not used */ |
60 | /* 214 */ "Unknown" /* Not used */, | 60 | /* 214 */ "Unknown", /* Not used */ |
61 | /* 215 */ "Unknown" /* Not used */, | 61 | /* 215 */ "Unknown", /* Not used */ |
62 | /* 216 */ "Unknown" /* Not used */, | 62 | /* 216 */ "Unknown", /* Not used */ |
63 | /* 217 */ "Unknown" /* Not used */, | 63 | /* 217 */ "Unknown", /* Not used */ |
64 | /* 218 */ "Unknown" /* Not used */, | 64 | /* 218 */ "Unknown", /* Not used */ |
65 | /* 219 */ "Unknown" /* Not used */, | 65 | /* 219 */ "Unknown", /* Not used */ |
66 | /* 220 */ "Unknown" /* Not used */, | 66 | /* 220 */ "Unknown", /* Not used */ |
67 | /* 221 */ "Unknown" /* Not used */, | 67 | /* 221 */ "Unknown", /* Not used */ |
68 | /* 222 */ "Unknown" /* Not used */, | 68 | /* 222 */ "Unknown", /* Not used */ |
69 | /* 223 */ "Unknown" /* Not used */, | 69 | /* 223 */ "Unknown", /* Not used */ |
70 | /* 224 */ "Unknown" /* Not used */, | 70 | /* 224 */ "Unknown", /* Not used */ |
71 | /* 225 */ "Unknown" /* Not used */, | 71 | /* 225 */ "Unknown", /* Not used */ |
72 | /* 226 */ "IM Used" /* RFC3229 */ | 72 | /* 226 */ "IM Used" /* RFC3229 */ |
73 | }; | 73 | }; |
74 | 74 | ||
75 | static const char *const three_hundred[] = { | 75 | static const char *const three_hundred[] = { |
76 | /* 300 */ "Multiple Choices" /* RFC7231, Section 6.4.1 */, | 76 | /* 300 */ "Multiple Choices", /* RFC7231, Section 6.4.1 */ |
77 | /* 301 */ "Moved Permanently" /* RFC7231, Section 6.4.2 */, | 77 | /* 301 */ "Moved Permanently", /* RFC7231, Section 6.4.2 */ |
78 | /* 302 */ "Found" /* RFC7231, Section 6.4.3 */, | 78 | /* 302 */ "Found", /* RFC7231, Section 6.4.3 */ |
79 | /* 303 */ "See Other" /* RFC7231, Section 6.4.4 */, | 79 | /* 303 */ "See Other", /* RFC7231, Section 6.4.4 */ |
80 | /* 304 */ "Not Modified" /* RFC7232, Section 4.1 */, | 80 | /* 304 */ "Not Modified", /* RFC7232, Section 4.1 */ |
81 | /* 305 */ "Use Proxy" /* RFC7231, Section 6.4.5 */, | 81 | /* 305 */ "Use Proxy", /* RFC7231, Section 6.4.5 */ |
82 | /* 306 */ "Switch Proxy" /* Not used! RFC7231, Section 6.4.6 */, | 82 | /* 306 */ "Switch Proxy", /* Not used! RFC7231, Section 6.4.6 */ |
83 | /* 307 */ "Temporary Redirect" /* RFC7231, Section 6.4.7 */, | 83 | /* 307 */ "Temporary Redirect", /* RFC7231, Section 6.4.7 */ |
84 | /* 308 */ "Permanent Redirect" /* RFC7538 */ | 84 | /* 308 */ "Permanent Redirect" /* RFC7538 */ |
85 | }; | 85 | }; |
86 | 86 | ||
87 | static const char *const four_hundred[] = { | 87 | static const char *const four_hundred[] = { |
88 | /* 400 */ "Bad Request" /* RFC7231, Section 6.5.1 */, | 88 | /* 400 */ "Bad Request", /* RFC7231, Section 6.5.1 */ |
89 | /* 401 */ "Unauthorized" /* RFC7235, Section 3.1 */, | 89 | /* 401 */ "Unauthorized", /* RFC7235, Section 3.1 */ |
90 | /* 402 */ "Payment Required" /* RFC7231, Section 6.5.2 */, | 90 | /* 402 */ "Payment Required", /* RFC7231, Section 6.5.2 */ |
91 | /* 403 */ "Forbidden" /* RFC7231, Section 6.5.3 */, | 91 | /* 403 */ "Forbidden", /* RFC7231, Section 6.5.3 */ |
92 | /* 404 */ "Not Found" /* RFC7231, Section 6.5.4 */, | 92 | /* 404 */ "Not Found", /* RFC7231, Section 6.5.4 */ |
93 | /* 405 */ "Method Not Allowed" /* RFC7231, Section 6.5.5 */, | 93 | /* 405 */ "Method Not Allowed", /* RFC7231, Section 6.5.5 */ |
94 | /* 406 */ "Not Acceptable" /* RFC7231, Section 6.5.6 */, | 94 | /* 406 */ "Not Acceptable", /* RFC7231, Section 6.5.6 */ |
95 | /* 407 */ "Proxy Authentication Required" /* RFC7235, Section 3.2 */, | 95 | /* 407 */ "Proxy Authentication Required", /* RFC7235, Section 3.2 */ |
96 | /* 408 */ "Request Timeout" /* RFC7231, Section 6.5.7 */, | 96 | /* 408 */ "Request Timeout", /* RFC7231, Section 6.5.7 */ |
97 | /* 409 */ "Conflict" /* RFC7231, Section 6.5.8 */, | 97 | /* 409 */ "Conflict", /* RFC7231, Section 6.5.8 */ |
98 | /* 410 */ "Gone" /* RFC7231, Section 6.5.9 */, | 98 | /* 410 */ "Gone", /* RFC7231, Section 6.5.9 */ |
99 | /* 411 */ "Length Required" /* RFC7231, Section 6.5.10 */, | 99 | /* 411 */ "Length Required", /* RFC7231, Section 6.5.10 */ |
100 | /* 412 */ "Precondition Failed" /* RFC7232, Section 4.2; RFC8144, Section 3.2 */, | 100 | /* 412 */ "Precondition Failed", /* RFC7232, Section 4.2; RFC8144, Section 3.2 */ |
101 | /* 413 */ "Payload Too Large" /* RFC7231, Section 6.5.11 */, | 101 | /* 413 */ "Payload Too Large", /* RFC7231, Section 6.5.11 */ |
102 | /* 414 */ "URI Too Long" /* RFC7231, Section 6.5.12 */, | 102 | /* 414 */ "URI Too Long", /* RFC7231, Section 6.5.12 */ |
103 | /* 415 */ "Unsupported Media Type" /* RFC7231, Section 6.5.13; RFC7694, Section 3 */, | 103 | /* 415 */ "Unsupported Media Type", /* RFC7231, Section 6.5.13; RFC7694, Section 3 */ |
104 | /* 416 */ "Range Not Satisfiable" /* RFC7233, Section 4.4 */, | 104 | /* 416 */ "Range Not Satisfiable", /* RFC7233, Section 4.4 */ |
105 | /* 417 */ "Expectation Failed" /* RFC7231, Section 6.5.14 */, | 105 | /* 417 */ "Expectation Failed", /* RFC7231, Section 6.5.14 */ |
106 | /* 418 */ "Unknown" /* Not used */, | 106 | /* 418 */ "Unknown", /* Not used */ |
107 | /* 419 */ "Unknown" /* Not used */, | 107 | /* 419 */ "Unknown", /* Not used */ |
108 | /* 420 */ "Unknown" /* Not used */, | 108 | /* 420 */ "Unknown", /* Not used */ |
109 | /* 421 */ "Misdirected Request" /* RFC7540, Section 9.1.2 */, | 109 | /* 421 */ "Misdirected Request", /* RFC7540, Section 9.1.2 */ |
110 | /* 422 */ "Unprocessable Entity" /* RFC4918 */, | 110 | /* 422 */ "Unprocessable Entity", /* RFC4918 */ |
111 | /* 423 */ "Locked" /* RFC4918 */, | 111 | /* 423 */ "Locked", /* RFC4918 */ |
112 | /* 424 */ "Failed Dependency" /* RFC4918 */, | 112 | /* 424 */ "Failed Dependency", /* RFC4918 */ |
113 | /* 425 */ "Too Early" /* RFC8470 */, | 113 | /* 425 */ "Too Early", /* RFC8470 */ |
114 | /* 426 */ "Upgrade Required" /* RFC7231, Section 6.5.15 */, | 114 | /* 426 */ "Upgrade Required", /* RFC7231, Section 6.5.15 */ |
115 | /* 427 */ "Unknown" /* Not used */, | 115 | /* 427 */ "Unknown", /* Not used */ |
116 | /* 428 */ "Precondition Required" /* RFC6585 */, | 116 | /* 428 */ "Precondition Required", /* RFC6585 */ |
117 | /* 429 */ "Too Many Requests" /* RFC6585 */, | 117 | /* 429 */ "Too Many Requests", /* RFC6585 */ |
118 | /* 430 */ "Unknown" /* Not used */, | 118 | /* 430 */ "Unknown", /* Not used */ |
119 | /* 431 */ "Request Header Fields Too Large" /* RFC6585 */, | 119 | /* 431 */ "Request Header Fields Too Large", /* RFC6585 */ |
120 | /* 432 */ "Unknown" /* Not used */, | 120 | /* 432 */ "Unknown", /* Not used */ |
121 | /* 433 */ "Unknown" /* Not used */, | 121 | /* 433 */ "Unknown", /* Not used */ |
122 | /* 434 */ "Unknown" /* Not used */, | 122 | /* 434 */ "Unknown", /* Not used */ |
123 | /* 435 */ "Unknown" /* Not used */, | 123 | /* 435 */ "Unknown", /* Not used */ |
124 | /* 436 */ "Unknown" /* Not used */, | 124 | /* 436 */ "Unknown", /* Not used */ |
125 | /* 437 */ "Unknown" /* Not used */, | 125 | /* 437 */ "Unknown", /* Not used */ |
126 | /* 438 */ "Unknown" /* Not used */, | 126 | /* 438 */ "Unknown", /* Not used */ |
127 | /* 439 */ "Unknown" /* Not used */, | 127 | /* 439 */ "Unknown", /* Not used */ |
128 | /* 440 */ "Unknown" /* Not used */, | 128 | /* 440 */ "Unknown", /* Not used */ |
129 | /* 441 */ "Unknown" /* Not used */, | 129 | /* 441 */ "Unknown", /* Not used */ |
130 | /* 442 */ "Unknown" /* Not used */, | 130 | /* 442 */ "Unknown", /* Not used */ |
131 | /* 443 */ "Unknown" /* Not used */, | 131 | /* 443 */ "Unknown", /* Not used */ |
132 | /* 444 */ "Unknown" /* Not used */, | 132 | /* 444 */ "Unknown", /* Not used */ |
133 | /* 445 */ "Unknown" /* Not used */, | 133 | /* 445 */ "Unknown", /* Not used */ |
134 | /* 446 */ "Unknown" /* Not used */, | 134 | /* 446 */ "Unknown", /* Not used */ |
135 | /* 447 */ "Unknown" /* Not used */, | 135 | /* 447 */ "Unknown", /* Not used */ |
136 | /* 448 */ "Unknown" /* Not used */, | 136 | /* 448 */ "Unknown", /* Not used */ |
137 | /* 449 */ "Reply With" /* MS IIS extension */, | 137 | /* 449 */ "Reply With", /* MS IIS extension */ |
138 | /* 450 */ "Blocked by Windows Parental Controls" /* MS extension */, | 138 | /* 450 */ "Blocked by Windows Parental Controls", /* MS extension */ |
139 | /* 451 */ "Unavailable For Legal Reasons" /* RFC7725 */ | 139 | /* 451 */ "Unavailable For Legal Reasons" /* RFC7725 */ |
140 | }; | 140 | }; |
141 | 141 | ||
142 | static const char *const five_hundred[] = { | 142 | static const char *const five_hundred[] = { |
143 | /* 500 */ "Internal Server Error" /* RFC7231, Section 6.6.1 */, | 143 | /* 500 */ "Internal Server Error", /* RFC7231, Section 6.6.1 */ |
144 | /* 501 */ "Not Implemented" /* RFC7231, Section 6.6.2 */, | 144 | /* 501 */ "Not Implemented", /* RFC7231, Section 6.6.2 */ |
145 | /* 502 */ "Bad Gateway" /* RFC7231, Section 6.6.3 */, | 145 | /* 502 */ "Bad Gateway", /* RFC7231, Section 6.6.3 */ |
146 | /* 503 */ "Service Unavailable" /* RFC7231, Section 6.6.4 */, | 146 | /* 503 */ "Service Unavailable", /* RFC7231, Section 6.6.4 */ |
147 | /* 504 */ "Gateway Timeout" /* RFC7231, Section 6.6.5 */, | 147 | /* 504 */ "Gateway Timeout", /* RFC7231, Section 6.6.5 */ |
148 | /* 505 */ "HTTP Version Not Supported" /* RFC7231, Section 6.6.6 */, | 148 | /* 505 */ "HTTP Version Not Supported", /* RFC7231, Section 6.6.6 */ |
149 | /* 506 */ "Variant Also Negotiates" /* RFC2295 */, | 149 | /* 506 */ "Variant Also Negotiates", /* RFC2295 */ |
150 | /* 507 */ "Insufficient Storage" /* RFC4918 */, | 150 | /* 507 */ "Insufficient Storage", /* RFC4918 */ |
151 | /* 508 */ "Loop Detected" /* RFC5842 */, | 151 | /* 508 */ "Loop Detected", /* RFC5842 */ |
152 | /* 509 */ "Bandwidth Limit Exceeded" /* Apache extension */, | 152 | /* 509 */ "Bandwidth Limit Exceeded", /* Apache extension */ |
153 | /* 510 */ "Not Extended" /* RFC2774 */, | 153 | /* 510 */ "Not Extended", /* RFC2774 */ |
154 | /* 511 */ "Network Authentication Required" /* RFC6585 */ | 154 | /* 511 */ "Network Authentication Required" /* RFC6585 */ |
155 | }; | 155 | }; |
156 | 156 | ||