status.h
Go to the documentation of this file.
/*
* Copyright © 2013 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Authored by: Thomas Voß <thomas.voss@canonical.com>
*/
#ifndef CORE_NET_HTTP_STATUS_H_
#define CORE_NET_HTTP_STATUS_H_
#include <core/net/visibility.h>
#include <iosfwd>
namespace core
{
namespace net
{
namespace http
{
enum class Status
{
continue_ = 100,
switching_protocols = 101,
ok = 200,
created = 201,
accepted = 202,
non_authorative_info = 203,
no_content = 204,
reset_content = 205,
partial_content = 206,
multiple_choices = 300,
moved_permanently = 301,
found = 302,
see_other = 303,
not_modified = 304,
use_proxy = 305,
temporary_redirect = 307,
bad_request = 400,
unauthorized = 401,
payment_required = 402,
forbidden = 403,
not_found = 404,
method_not_allowed = 405,
not_acceptable = 406,
proxy_auth_required = 407,
request_timeout = 408,
conflict = 409,
gone = 410,
length_required = 411,
precondition_failed = 412,
request_entity_too_large = 413,
request_uri_too_long = 414,
unsupported_media_type = 415,
requested_range_not_satisfiable = 416,
expectation_failed = 417,
teapot = 418,
internal_server_error = 500,
not_implemented = 501,
bad_gateway = 502,
service_unavailable = 503,
gateway_timeout = 504,
http_version_not_supported = 505
};
CORE_NET_DLL_PUBLIC std::ostream& operator<<(std::ostream& out, Status status);
}
}
}
#endif // CORE_NET_HTTP_STATUS_H_
core::net::http
Definition client.h:39
core::net::http::operator<<
CORE_NET_DLL_PUBLIC std::ostream & operator<<(std::ostream &out, Status status)
core::net::http::Status
Status
Definition status.h:32
core::net::http::Status::temporary_redirect
@ temporary_redirect
Definition status.h:50
core::net::http::Status::reset_content
@ reset_content
Definition status.h:41
core::net::http::Status::requested_range_not_satisfiable
@ requested_range_not_satisfiable
Definition status.h:68
core::net::http::Status::request_uri_too_long
@ request_uri_too_long
Definition status.h:66
core::net::http::Status::bad_gateway
@ bad_gateway
Definition status.h:74
core::net::http::Status::forbidden
@ forbidden
Definition status.h:55
core::net::http::Status::unauthorized
@ unauthorized
Definition status.h:53
core::net::http::Status::bad_request
@ bad_request
Definition status.h:52
core::net::http::Status::accepted
@ accepted
Definition status.h:38
core::net::http::Status::ok
@ ok
Definition status.h:36
core::net::http::Status::teapot
@ teapot
Definition status.h:70
core::net::http::Status::gone
@ gone
Definition status.h:62
core::net::http::Status::service_unavailable
@ service_unavailable
Definition status.h:75
core::net::http::Status::moved_permanently
@ moved_permanently
Definition status.h:45
core::net::http::Status::not_acceptable
@ not_acceptable
Definition status.h:58
core::net::http::Status::continue_
@ continue_
Definition status.h:33
core::net::http::Status::see_other
@ see_other
Definition status.h:47
core::net::http::Status::not_implemented
@ not_implemented
Definition status.h:73
core::net::http::Status::found
@ found
Definition status.h:46
core::net::http::Status::not_modified
@ not_modified
Definition status.h:48
core::net::http::Status::not_found
@ not_found
Definition status.h:56
core::net::http::Status::no_content
@ no_content
Definition status.h:40
core::net::http::Status::proxy_auth_required
@ proxy_auth_required
Definition status.h:59
core::net::http::Status::use_proxy
@ use_proxy
Definition status.h:49
core::net::http::Status::expectation_failed
@ expectation_failed
Definition status.h:69
core::net::http::Status::conflict
@ conflict
Definition status.h:61
core::net::http::Status::multiple_choices
@ multiple_choices
Definition status.h:44
core::net::http::Status::unsupported_media_type
@ unsupported_media_type
Definition status.h:67
core::net::http::Status::gateway_timeout
@ gateway_timeout
Definition status.h:76
core::net::http::Status::switching_protocols
@ switching_protocols
Definition status.h:34
core::net::http::Status::length_required
@ length_required
Definition status.h:63
core::net::http::Status::internal_server_error
@ internal_server_error
Definition status.h:72
core::net::http::Status::request_timeout
@ request_timeout
Definition status.h:60
core::net::http::Status::precondition_failed
@ precondition_failed
Definition status.h:64
core::net::http::Status::non_authorative_info
@ non_authorative_info
Definition status.h:39
core::net::http::Status::method_not_allowed
@ method_not_allowed
Definition status.h:57
core::net::http::Status::payment_required
@ payment_required
Definition status.h:54
core::net::http::Status::created
@ created
Definition status.h:37
core::net::http::Status::request_entity_too_large
@ request_entity_too_large
Definition status.h:65
core::net::http::Status::partial_content
@ partial_content
Definition status.h:42
core::net::http::Status::http_version_not_supported
@ http_version_not_supported
Definition status.h:77
core::net
Definition error.h:28
core
Definition location.h:24
visibility.h
CORE_NET_DLL_PUBLIC
#define CORE_NET_DLL_PUBLIC
Definition visibility.h:25