@@ -29,32 +29,62 @@ namespace boost { namespace network { namespace http {
29
29
typedef tags::http_server tag;
30
30
typedef response_header<tags::http_server>::type header_type;
31
31
32
- // / The status of the reply.
32
+ /* ! The status of the reply. Represent all the status codes of HTTP v1.1
33
+ * from http://tools.ietf.org/html/rfc2616#page-39 and
34
+ * http://tools.ietf.org/html/rfc6585
35
+ */
33
36
enum status_type {
37
+ continue_http = 100 ,
38
+ switching_protocols = 101 ,
34
39
ok = 200 ,
35
40
created = 201 ,
36
41
accepted = 202 ,
42
+ non_authoritative_information = 203 ,
37
43
no_content = 204 ,
44
+ reset_content = 205 ,
38
45
partial_content = 206 ,
39
46
multiple_choices = 300 ,
40
47
moved_permanently = 301 ,
41
- moved_temporarily = 302 ,
48
+ moved_temporarily = 302 , // /< \deprecated Not HTTP standard
49
+ found = 302 ,
50
+ see_other = 303 ,
42
51
not_modified = 304 ,
52
+ use_proxy = 305 ,
53
+ temporary_redirect = 307 ,
43
54
bad_request = 400 ,
44
55
unauthorized = 401 ,
45
56
forbidden = 403 ,
57
+ payment_required = 402 ,
58
+ forbidden = 403 ,
46
59
not_found = 404 ,
47
- not_supported = 405 ,
60
+ not_supported = 405 , // /< \deprecated Not HTTP standard
61
+ method_not_allowed = 405 ,
48
62
not_acceptable = 406 ,
63
+ proxy_authentication_required = 407 ,
49
64
request_timeout = 408 ,
65
+ conflict = 409 ,
66
+ gone = 410 ,
67
+ length_required = 411 ,
50
68
precondition_failed = 412 ,
51
- unsatisfiable_range = 416 ,
69
+ request_entity_too_large = 413 ,
70
+ request_uri_too_large = 414 ,
71
+ unsupported_media_type = 415 ,
72
+ unsatisfiable_range = 416 , // /< \deprecated Not HTTP standard
73
+ requested_range_not_satisfiable = 416 ,
74
+ expectation_failed = 417 ,
75
+ precondition_required = 428 ,
76
+ too_many_requests = 429 ,
77
+ request_header_fields_too_large = 431 ,
52
78
internal_server_error = 500 ,
53
79
not_implemented = 501 ,
54
80
bad_gateway = 502 ,
55
81
service_unavailable = 503 ,
56
- space_unavailable = 507
82
+ gateway_timeout = 504 ,
83
+ http_version_not_supported = 505 ,
84
+ space_unavailable = 507 ,
85
+ network_authentication_required = 511
57
86
} status;
87
+
58
88
59
89
// / The headers to be included in the reply.
60
90
typedef vector<tags::http_server>::apply<header_type>::type headers_vector;
0 commit comments