1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "net/tools/balsa/http_message_constants.h"
9 const char* get_http_status_message(int status_message
) {
10 switch (status_message
) {
14 return "Switching Protocols";
22 return "Non-Authoritative Information";
26 return "Reset Content";
28 return "Partial Content";
30 return "Multiple Choices";
32 return "Moved Permanently";
38 return "Not Modified";
42 return "Temporary Redirect";
46 return "Unauthorized";
48 return "Payment Required";
54 return "Method Not Allowed";
56 return "Not Acceptable";
58 return "Proxy Authentication Required";
60 return "Request Time-out";
66 return "Length Required";
68 return "Precondition Failed";
70 return "Request Entity Too Large";
72 return "Request-URI Too Large";
74 return "Unsupported Media Type";
76 return "Requested range not satisfiable";
78 return "Expectation Failed";
80 return "Internal Server Error";
82 return "Not Implemented";
86 return "Service Unavailable";
88 return "Gateway Time-out";
90 return "HTTP Version not supported";
95 ////////////////////////////////////////////////////////////////////////////////
97 const int http_status_codes
[] = {
140 ////////////////////////////////////////////////////////////////////////////////
142 const int http_status_code_count
= sizeof(http_status_codes
) /
143 sizeof(http_status_codes
[0]);