Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added support for more http status codes.#212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
deanberris merged 1 commit intocpp-netlib:0.9-develfrommarcb1:0.9-devel-integration
Feb 20, 2013
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added support for more http status codes.
  • Loading branch information
@marcb1
marcb1 committedFeb 19, 2013
commitcd3947b177007b0e9d5182f1b9d792f395b47202
15 changes: 15 additions & 0 deletionsboost/network/protocol/http/server/async_connection.hpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -62,6 +62,7 @@ namespace boost { namespace network { namespace http {
, created = 201
, accepted = 202
, no_content = 204
, partial_content = 206
, multiple_choices = 300
, moved_permanently = 301
, moved_temporarily = 302
Expand All@@ -72,10 +73,14 @@ namespace boost { namespace network { namespace http {
, not_found = 404
, not_supported = 405
, not_acceptable = 406
, request_timeout = 408
, precondition_failed = 412
, unsatisfiable_range = 416
, internal_server_error = 500
, not_implemented = 501
, bad_gateway = 502
, service_unavailable = 503
, space_unavailable = 507
};

typedef typename string<Tag>::type string_type;
Expand DownExpand Up@@ -104,6 +109,11 @@ namespace boost { namespace network { namespace http {
, bad_gateway_[] = "Bad Gateway"
, service_unavailable_[] = "Service Unavailable"
, unknown_[] = "Unknown"
, partial_content_[] = "Partial Content"
, request_timeout_[] = "Request Timeout"
, precondition_failed_[] = "Precondition Failed"
, unsatisfiable_range_[] = "Requested Range Not Satisfiable"
, space_unavailable_[] = "Insufficient Space to Store Resource"
;
switch(status) {
case ok: return ok_;
Expand All@@ -124,6 +134,11 @@ namespace boost { namespace network { namespace http {
case not_implemented: return not_implemented_;
case bad_gateway: return bad_gateway_;
case service_unavailable: return service_unavailable_;
case partial_content: return partial_content_;
case request_timeout: return request_timeout_;
case precondition_failed: return precondition_failed_;
case unsatisfiable_range: return unsatisfiable_range_;
case space_unavailable: return space_unavailable_;
default: return unknown_;
}
}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp