AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::rest::HttpError Class Reference

#include <httpError.hpp>

Inheritance diagram for anch::rest::HttpError:
Collaboration diagram for anch::rest::HttpError:

Public Member Functions

 HttpError (anch::rest::Response response)
const anch::rest::Response & getResponse () const noexcept
Public Member Functions inherited from anch::rest::HttpException
 HttpException (anch::rest::Status status, const std::string &message=std::string())
anch::rest::Status getStatus () const noexcept

Detailed Description

Error response (status >= 400) received by Client .

Author
Vincent Lachenal
Since
0.2

Constructor & Destructor Documentation

◆ HttpError()

anch::rest::HttpError::HttpError ( anch::rest::Response response)
explicit

HttpError constructor

Parameters
responsethe error response

Member Function Documentation

◆ getResponse()

const anch::rest::Response & anch::rest::HttpError::getResponse ( ) const
noexcept

Response getter

Returns
the error response (headers and body)

The documentation for this class was generated from the following file: