net-cpp  2.0.0
C++11 library for networking purposes
status.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Thomas Voß <thomas.voss@canonical.com>
17  */
18 #ifndef CORE_NET_HTTP_STATUS_H_
19 #define CORE_NET_HTTP_STATUS_H_
20 
21 #include <core/net/visibility.h>
22 
23 #include <iosfwd>
24 
25 namespace core
26 {
27 namespace net
28 {
29 namespace http
30 {
31 enum class Status
32 {
33  continue_ = 100,
34  switching_protocols = 101,
35 
36  ok = 200,
37  created = 201,
38  accepted = 202,
40  no_content = 204,
41  reset_content = 205,
42  partial_content = 206,
43 
44  multiple_choices = 300,
45  moved_permanently = 301,
46  found = 302,
47  see_other = 303,
48  not_modified = 304,
49  use_proxy = 305,
50  temporary_redirect = 307,
51 
52  bad_request = 400,
53  unauthorized = 401,
54  payment_required = 402,
55  forbidden = 403,
56  not_found = 404,
57  method_not_allowed = 405,
58  not_acceptable = 406,
59  proxy_auth_required = 407,
60  request_timeout = 408,
61  conflict = 409,
62  gone = 410,
63  length_required = 411,
64  precondition_failed = 412,
69  expectation_failed = 417,
70  teapot = 418,
71 
73  not_implemented = 501,
74  bad_gateway = 502,
75  service_unavailable = 503,
76  gateway_timeout = 504,
78 };
79 
80 CORE_NET_DLL_PUBLIC std::ostream& operator<<(std::ostream& out, Status status);
81 }
82 }
83 }
84 #endif // CORE_NET_HTTP_STATUS_H_
Definition: location.h:23
CORE_NET_DLL_PUBLIC std::ostream & operator<<(std::ostream &out, Status status)
#define CORE_NET_DLL_PUBLIC
Definition: visibility.h:25