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
25namespace core
26{
27namespace net
28{
29namespace http
30{
31enum class Status
32{
33 continue_ = 100,
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,
46 found = 302,
47 see_other = 303,
48 not_modified = 304,
49 use_proxy = 305,
51
52 bad_request = 400,
53 unauthorized = 401,
54 payment_required = 402,
55 forbidden = 403,
56 not_found = 404,
58 not_acceptable = 406,
60 request_timeout = 408,
61 conflict = 409,
62 gone = 410,
63 length_required = 411,
70 teapot = 418,
71
73 not_implemented = 501,
74 bad_gateway = 502,
76 gateway_timeout = 504,
78};
79
80CORE_NET_DLL_PUBLIC std::ostream& operator<<(std::ostream& out, Status status);
81}
82}
83}
84#endif // CORE_NET_HTTP_STATUS_H_
CORE_NET_DLL_PUBLIC std::ostream & operator<<(std::ostream &out, Status status)
#define CORE_NET_DLL_PUBLIC
Definition visibility.h:25