net-cpp: /home/odroid/lomiri/net-cpp-git/src/net-cpp/include/core/net/http/status.h Source File

net-cpp .. 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,
39 non_authorative_info = 203,
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,
65 request_entity_too_large = 413,
66 request_uri_too_long = 414,
67 unsupported_media_type = 415,
68 requested_range_not_satisfiable = 416,
69 expectation_failed = 417,
70 teapot = 418,
71
72 internal_server_error = 500,
73 not_implemented = 501,
74 bad_gateway = 502,
75 service_unavailable = 503,
76 gateway_timeout = 504,
77 http_version_not_supported = 505
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_
visibility.h
core::net::http::Status::continue_
@ continue_
core::net::http::operator<<
CORE_NET_DLL_PUBLIC std::ostream & operator<<(std::ostream &out, Status status)
core
Definition: location.h:24
CORE_NET_DLL_PUBLIC
#define CORE_NET_DLL_PUBLIC
Definition: visibility.h:25
core::net::http::Status
Status
Definition: status.h:32