179 {
180 switch (c) {
181 case uninitialized:
182 return "Uninitialized";
184 return "Continue";
186 return "Switching Protocols";
187 case ok:
188 return "OK";
190 return "Created";
192 return "Accepted";
194 return "Non Authoritative Information";
196 return "No Content";
198 return "Reset Content";
200 return "Partial Content";
202 return "Multiple Choices";
204 return "Moved Permanently";
205 case found:
206 return "Found";
208 return "See Other";
210 return "Not Modified";
212 return "Use Proxy";
214 return "Temporary Redirect";
216 return "Bad Request";
218 return "Unauthorized";
220 return "Payment Required";
222 return "Forbidden";
223 case not_found:
224 return "Not Found";
226 return "Method Not Allowed";
228 return "Not Acceptable";
230 return "Proxy Authentication Required";
232 return "Request Timeout";
234 return "Conflict";
236 return "Gone";
238 return "Length Required";
240 return "Precondition Failed";
242 return "Request Entity Too Large";
244 return "Request-URI Too Long";
246 return "Unsupported Media Type";
248 return "Requested Range Not Satisfiable";
250 return "Expectation Failed";
252 return "I'm a teapot";
253 case upgrade_required:
254 return "Upgrade Required";
256 return "Precondition Required";
258 return "Too Many Requests";
260 return "Request Header Fields Too Large";
262 return "Internal Server Error";
264 return "Not Implemented";
266 return "Bad Gateway";
268 return "Service Unavailable";
270 return "Gateway Timeout";
272 return "HTTP Version Not Supported";
274 return "Not Extended";
276 return "Network Authentication Required";
277 default:
278 return "Unknown";
279 }
280 }