#include <HTTPResponseException.h>
This exception is thrown when HTTP-request fails because of HTTP-statuscode.
This exception is usually thrown by users of tenduke::http::HTTPClient, the client itself does not care about the HTTP-status code.
◆ HTTPResponseException()
tenduke::http::HTTPResponseException::HTTPResponseException |
( |
int |
httpStatusCode, |
|
|
const std::string & |
message |
|
) |
| |
|
inline |
Constructs new instance.
- Parameters
-
◆ getStatusCode()
int tenduke::http::HTTPResponseException::getStatusCode |
( |
| ) |
const |
|
inline |
Returns the HTTP status code.
- Returns
- -
The documentation for this class was generated from the following file: