@@ -29,32 +29,62 @@ namespace boost { namespace network { namespace http {
2929typedef tags::http_server tag;
3030typedef response_header<tags::http_server>::type header_type;
3131
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+ */
3336enum status_type {
37+ continue_http =100 ,
38+ switching_protocols =101 ,
3439 ok =200 ,
3540 created =201 ,
3641 accepted =202 ,
42+ non_authoritative_information =203 ,
3743 no_content =204 ,
44+ reset_content =205 ,
3845 partial_content =206 ,
3946 multiple_choices =300 ,
4047 moved_permanently =301 ,
41- moved_temporarily =302 ,
48+ moved_temporarily =302 ,// /< \deprecated Not HTTP standard
49+ found =302 ,
50+ see_other =303 ,
4251 not_modified =304 ,
52+ use_proxy =305 ,
53+ temporary_redirect =307 ,
4354 bad_request =400 ,
4455 unauthorized =401 ,
4556 forbidden =403 ,
57+ payment_required =402 ,
58+ forbidden =403 ,
4659 not_found =404 ,
47- not_supported =405 ,
60+ not_supported =405 ,// /< \deprecated Not HTTP standard
61+ method_not_allowed =405 ,
4862 not_acceptable =406 ,
63+ proxy_authentication_required =407 ,
4964 request_timeout =408 ,
65+ conflict =409 ,
66+ gone =410 ,
67+ length_required =411 ,
5068 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 ,
5278 internal_server_error =500 ,
5379 not_implemented =501 ,
5480 bad_gateway =502 ,
5581 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
5786 } status;
87+
5888
5989// / The headers to be included in the reply.
6090typedef vector<tags::http_server>::apply<header_type>::type headers_vector;