Skip to content
Snippets Groups Projects
Commit 89005254 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

More blood for the blood gods

parent 35ba2353
No related branches found
No related tags found
No related merge requests found
......@@ -299,7 +299,14 @@ enum HttpError
struct HttpStatus
{
typedef unsigned short type_enum_t;
enum : type_enum_t
{
EXT_CURL_EASY = 0, ///< mStatus is an error from a curl_easy_*() call
EXT_CURL_MULTI = 1, ///< mStatus is an error from a curl_multi_*() call
LLCORE = 2 ///< mStatus is an HE_* error code
///< 100-999 directly represent HTTP status codes
};
HttpStatus()
{
mDetails = boost::make_shared<Details>(LLCORE, HE_SUCCESS);
......@@ -344,10 +351,6 @@ struct HttpStatus
return *this;
}
static const type_enum_t EXT_CURL_EASY = 0; ///< mStatus is an error from a curl_easy_*() call
static const type_enum_t EXT_CURL_MULTI = 1; ///< mStatus is an error from a curl_multi_*() call
static const type_enum_t LLCORE = 2; ///< mStatus is an HE_* error code
///< 100-999 directly represent HTTP status codes
/// Test for successful status in the code regardless
/// of error source (internal, libcurl).
///
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment