@@ -62,6 +62,7 @@ namespace boost { namespace network { namespace http {
6262 , created = 201
6363 , accepted = 202
6464 , no_content = 204
65+ , partial_content = 206
6566 , multiple_choices = 300
6667 , moved_permanently = 301
6768 , moved_temporarily = 302
@@ -72,10 +73,14 @@ namespace boost { namespace network { namespace http {
7273 , not_found = 404
7374 , not_supported = 405
7475 , not_acceptable = 406
76+ , request_timeout = 408
77+ , precondition_failed = 412
78+ , unsatisfiable_range = 416
7579 , internal_server_error = 500
7680 , not_implemented = 501
7781 , bad_gateway = 502
7882 , service_unavailable = 503
83+ , space_unavailable = 507
7984 };
8085
8186 typedef typename string<Tag>::type string_type;
@@ -104,6 +109,11 @@ namespace boost { namespace network { namespace http {
104109 , bad_gateway_[] = " Bad Gateway"
105110 , service_unavailable_[] = " Service Unavailable"
106111 , unknown_[] = " Unknown"
112+ , partial_content_[] = " Partial Content"
113+ , request_timeout_[] = " Request Timeout"
114+ , precondition_failed_[] = " Precondition Failed"
115+ , unsatisfiable_range_[] = " Requested Range Not Satisfiable"
116+ , space_unavailable_[] = " Insufficient Space to Store Resource"
107117 ;
108118 switch (status) {
109119 case ok: return ok_;
@@ -124,6 +134,11 @@ namespace boost { namespace network { namespace http {
124134 case not_implemented: return not_implemented_;
125135 case bad_gateway: return bad_gateway_;
126136 case service_unavailable: return service_unavailable_;
137+ case partial_content: return partial_content_;
138+ case request_timeout: return request_timeout_;
139+ case precondition_failed: return precondition_failed_;
140+ case unsatisfiable_range: return unsatisfiable_range_;
141+ case space_unavailable: return space_unavailable_;
127142 default : return unknown_;
128143 }
129144 }
0 commit comments