Represents an HTTP or network-level error. More...
#include <http_error.hpp>
Public Attributes | |
| int | statusCode |
| HTTP status code (e.g. 404, 500). 0 means a network-level failure — no HTTP response was received. | |
| std::string | body |
| Raw response body (often contains error details for 4xx/5xx responses) | |
| std::string | message |
| Human-readable error description. | |
Represents an HTTP or network-level error.
Returned by IConnection::fetch() and IConnection::fetchResponse() when a request cannot be completed successfully.
| std::string cpp_restapi::HttpError::body |
Raw response body (often contains error details for 4xx/5xx responses)
| std::string cpp_restapi::HttpError::message |
Human-readable error description.
| int cpp_restapi::HttpError::statusCode |
HTTP status code (e.g. 404, 500). 0 means a network-level failure — no HTTP response was received.