@@ -29,32 +29,59 @@ 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
+ found = 302 ,
49
+ see_other = 303 ,
42
50
not_modified = 304 ,
51
+ use_proxy = 305 ,
52
+ temporary_redirect = 307 ,
43
53
bad_request = 400 ,
44
54
unauthorized = 401 ,
45
55
forbidden = 403 ,
56
+ payment_required = 402 ,
57
+ forbidden = 403 ,
46
58
not_found = 404 ,
47
- not_supported = 405 ,
59
+ method_not_allowed = 405 ,
48
60
not_acceptable = 406 ,
61
+ proxy_authentication_required = 407 ,
49
62
request_timeout = 408 ,
63
+ conflict = 409 ,
64
+ gone = 410 ,
65
+ length_required = 411 ,
50
66
precondition_failed = 412 ,
51
- unsatisfiable_range = 416 ,
67
+ request_entity_too_large = 413 ,
68
+ request_uri_too_large = 414 ,
69
+ unsupported_media_type = 415 ,
70
+ requested_range_not_satisfiable = 416 ,
71
+ expectation_failed = 417 ,
72
+ precondition_required = 428 ,
73
+ too_many_requests = 429 ,
74
+ request_header_fields_too_large = 431 ,
52
75
internal_server_error = 500 ,
53
76
not_implemented = 501 ,
54
77
bad_gateway = 502 ,
55
78
service_unavailable = 503 ,
56
- space_unavailable = 507
79
+ gateway_timeout = 504 ,
80
+ http_version_not_supported = 505 ,
81
+ space_unavailable = 507 ,
82
+ network_authentication_required = 511
57
83
} status;
84
+
58
85
59
86
// / The headers to be included in the reply.
60
87
typedef vector<tags::http_server>::apply<header_type>::type headers_vector;
0 commit comments