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,
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_
core::net::http::Status::bad_request
core::net::http::Status::not_modified
core::net::http::Status::teapot
visibility.h
core::net::http::Status::conflict
core::net::http::Status::service_unavailable
core::net::http::Status::request_timeout
core::net::http::Status::not_acceptable
core::net::http::Status::continue_
core::net::http::operator<<
CORE_NET_DLL_PUBLIC std::ostream & operator<<(std::ostream &out, Status status)
core::net::http::Status::forbidden
core::net::http::Status::bad_gateway
core::net::http::Status::payment_required
core::net::http::Status::moved_permanently
core::net::http::Status::multiple_choices
core::net::http::Status::partial_content
core::net::http::Status::ok
core
Definition: location.h:23
core::net::http::Status::switching_protocols
core::net::http::Status::gone
core::net::http::Status::temporary_redirect
core::net::http::Status::not_implemented
core::net::http::Status::method_not_allowed
core::net::http::Status::not_found
core::net::http::Status::proxy_auth_required
core::net::http::Status::use_proxy
core::net::http::Status::unsupported_media_type
core::net::http::Status::reset_content
CORE_NET_DLL_PUBLIC
#define CORE_NET_DLL_PUBLIC
Definition: visibility.h:25
core::net::http::Status::non_authorative_info
core::net::http::Status::request_entity_too_large
core::net::http::Status::requested_range_not_satisfiable
core::net::http::Status::created
core::net::http::Status::expectation_failed
core::net::http::Status::see_other
core::net::http::Status
Status
Definition: status.h:31
core::net::http::Status::precondition_failed
core::net::http::Status::found
core::net::http::Status::internal_server_error
core::net::http::Status::http_version_not_supported
core::net::http::Status::accepted
core::net::http::Status::no_content
core::net::http::Status::gateway_timeout
core::net::http::Status::length_required
core::net::http::Status::request_uri_too_long
core::net::http::Status::unauthorized