| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| 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 | ||
|
|
||
| namespace boost { | ||
| namespace network { | ||
| namespace http { | ||
|
|
||
| /// The set of known status codes for HTTP server responses. | ||
| enum status_t { | ||
|
Comment thread
Copy link
Copy Markdown
Member
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. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityIf we're doing this, then I suggest dropping the _t suffix, and calling it status_code to be more descriptive. Also, if we're going to do this as well, we might as well add the following:
Sorry, something went wrong.
All reactions
|
||
| 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 | ||
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityConsider naming this file status_code.hpp along with the suggested change to the enum name.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.