Probably broke Win7 Tests (dbg)(6). http://build.chromium.org/p/chromium.win/builders...
[chromium-blink-merge.git] / net / http / http_status_code.cc
blobfb7261b3001c691d1875a16d53f08b538f68e7ba
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/http/http_status_code.h"
7 #include "base/logging.h"
9 namespace net {
11 const char* GetHttpReasonPhrase(HttpStatusCode code) {
12 switch (code) {
14 #define HTTP_STATUS(label, code, reason) case HTTP_ ## label: return reason;
15 #include "net/http/http_status_code_list.h"
16 #undef HTTP_STATUS
18 default:
19 NOTREACHED() << "unknown HTTP status code " << code;
22 return "";
25 } // namespace net