#include <httpException.hpp>
Public Member Functions | |
| HttpException (anch::rest::Status status, const std::string &message=std::string()) | |
| anch::rest::Status | getStatus () const noexcept |
HTTP error.
Thrown by an endpoint, the response has the exception status and its message as text/plain body (when it is not empty).
| anch::rest::HttpException::HttpException | ( | anch::rest::Status | status, |
| const std::string & | message = std::string() ) |
HttpException constructor
| status | the status |
| message | the message |
|
noexcept |
Status getter