| OLD | NEW | 
|---|
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "net/tools/flip_server/http_message_constants.h" | 5 #include "net/tools/flip_server/http_message_constants.h" | 
| 6 | 6 | 
| 7 namespace net { | 7 namespace net { | 
| 8 | 8 | 
| 9 const char* get_http_status_message(int status_message) { | 9 const char* get_http_status_message(int status_message) { | 
| 10   switch (status_message) { | 10   switch (status_message) { | 
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 85     case 503: | 85     case 503: | 
| 86       return "Service Unavailable"; | 86       return "Service Unavailable"; | 
| 87     case 504: | 87     case 504: | 
| 88       return "Gateway Time-out"; | 88       return "Gateway Time-out"; | 
| 89     case 505: | 89     case 505: | 
| 90       return "HTTP Version not supported"; | 90       return "HTTP Version not supported"; | 
| 91   } | 91   } | 
| 92   return "unknown"; | 92   return "unknown"; | 
| 93 } | 93 } | 
| 94 | 94 | 
| 95 //////////////////////////////////////////////////////////////////////////////// | 95 const int http_status_codes[] = { | 
|  | 96     100, 101, 200, 201, 202, 203, 204, 205, 206, 300, 301, 302, 303, 304, | 
|  | 97     305, 307, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, | 
|  | 98     412, 413, 414, 415, 416, 417, 500, 501, 502, 503, 504, 505}; | 
| 96 | 99 | 
| 97 const int http_status_codes[] = { | 100 const int http_status_code_count = | 
| 98   100, | 101     sizeof(http_status_codes) / sizeof(http_status_codes[0]); | 
| 99   101, |  | 
| 100   200, |  | 
| 101   201, |  | 
| 102   202, |  | 
| 103   203, |  | 
| 104   204, |  | 
| 105   205, |  | 
| 106   206, |  | 
| 107   300, |  | 
| 108   301, |  | 
| 109   302, |  | 
| 110   303, |  | 
| 111   304, |  | 
| 112   305, |  | 
| 113   307, |  | 
| 114   400, |  | 
| 115   401, |  | 
| 116   402, |  | 
| 117   403, |  | 
| 118   404, |  | 
| 119   405, |  | 
| 120   406, |  | 
| 121   407, |  | 
| 122   408, |  | 
| 123   409, |  | 
| 124   410, |  | 
| 125   411, |  | 
| 126   412, |  | 
| 127   413, |  | 
| 128   414, |  | 
| 129   415, |  | 
| 130   416, |  | 
| 131   417, |  | 
| 132   500, |  | 
| 133   501, |  | 
| 134   502, |  | 
| 135   503, |  | 
| 136   504, |  | 
| 137   505 |  | 
| 138 }; |  | 
| 139 |  | 
| 140 //////////////////////////////////////////////////////////////////////////////// |  | 
| 141 |  | 
| 142 const int http_status_code_count = sizeof(http_status_codes) / |  | 
| 143                                    sizeof(http_status_codes[0]); |  | 
| 144 | 102 | 
| 145 }  // namespace net | 103 }  // namespace net | 
| 146 |  | 
| OLD | NEW | 
|---|