@@ -62,6 +62,7 @@ namespace boost { namespace network { namespace http {
62
62
, created = 201
63
63
, accepted = 202
64
64
, no_content = 204
65
+ , partial_content = 206
65
66
, multiple_choices = 300
66
67
, moved_permanently = 301
67
68
, moved_temporarily = 302
@@ -72,10 +73,14 @@ namespace boost { namespace network { namespace http {
72
73
, not_found = 404
73
74
, not_supported = 405
74
75
, not_acceptable = 406
76
+ , request_timeout = 408
77
+ , precondition_failed = 412
78
+ , unsatisfiable_range = 416
75
79
, internal_server_error = 500
76
80
, not_implemented = 501
77
81
, bad_gateway = 502
78
82
, service_unavailable = 503
83
+ , space_unavailable = 507
79
84
};
80
85
81
86
typedef typename string<Tag>::type string_type;
@@ -104,6 +109,11 @@ namespace boost { namespace network { namespace http {
104
109
, bad_gateway_[] = " Bad Gateway"
105
110
, service_unavailable_[] = " Service Unavailable"
106
111
, 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"
107
117
;
108
118
switch (status) {
109
119
case ok: return ok_;
@@ -124,6 +134,11 @@ namespace boost { namespace network { namespace http {
124
134
case not_implemented: return not_implemented_;
125
135
case bad_gateway: return bad_gateway_;
126
136
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_;
127
142
default : return unknown_;
128
143
}
129
144
}
0 commit comments