olp-cpp-sdk
1.22.0
|
HTTP status codes, as specified in RFC7231. More...
#include <HttpStatusCode.h>
Static Public Member Functions | |
static bool | IsRetryable (int http_code) |
Checks if the given error code is a temporary error. More... | |
static olp::client::ErrorCode | GetErrorCode (int http_code) |
Maps an HTTP status code or olp::http::ErrorCode to olp::client::ErrorCode . More... | |
HTTP status codes, as specified in RFC7231.
For more information, see the Hypertext Transfer Protocol (HTTP) Status Code Registry.
|
inlinestatic |
Maps an HTTP status code or olp::http::ErrorCode
to olp::client::ErrorCode
.
[in] | http_code | The HTTP status code or olp::http::ErrorCode . |
olp::client::ErrorCode
.
|
inlinestatic |
Checks if the given error code is a temporary error.
Some errors are sever errors or caused by wrong user data. These errors cannot be repeated and always result in the same error.
[in] | http_code | The HTTP status code or olp::http::ErrorCode . |