- Notifications
You must be signed in to change notification settings - Fork425
RFC: Pull out status_t to the top level to allow using those enum values from clients.#837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#ifndef BOOST_NETWORK_PROTOCOL_HTTP_STATUS_HPP_20180501 | ||
#define BOOST_NETWORK_PROTOCOL_HTTP_STATUS_HPP_20180501 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Consider naming this file | ||
namespace boost { | ||
namespace network { | ||
namespace http { | ||
/// The set of known status codes for HTTP server responses. | ||
enum status_t { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. If we're doing this, then I suggest dropping the Also, if we're going to do this as well, we might as well add the following:
| ||
ok = 200, | ||
created = 201, | ||
accepted = 202, | ||
no_content = 204, | ||
partial_content = 206, | ||
multiple_choices = 300, | ||
moved_permanently = 301, | ||
moved_temporarily = 302, | ||
not_modified = 304, | ||
bad_request = 400, | ||
unauthorized = 401, | ||
forbidden = 403, | ||
not_found = 404, | ||
not_supported = 405, | ||
not_acceptable = 406, | ||
request_timeout = 408, | ||
precondition_failed = 412, | ||
unsatisfiable_range = 416, | ||
internal_server_error = 500, | ||
not_implemented = 501, | ||
bad_gateway = 502, | ||
service_unavailable = 503, | ||
space_unavailable = 507, | ||
}; | ||
} // namespace http | ||
} // namespace network | ||
} // namespace boost | ||
#endif // BOOST_NETWORK_PROTOCOL_HTTP_STATUS_HPP_20180501 |