CoreComponents 3.0.0
A Modern C++ Toolkit
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Modules
HttpError Class Reference

HTTP request could not be successfully processed. More...

#include <cc/HttpError>

Inheritance diagram for HttpError:

Public Member Functions

 HttpError (HttpStatus status, const char *reason)
 Create a new HTTP error.
 
HttpStatus status () const
 
const char * reason () const
 Reason phrase
 
String message () const override
 Generate error message for debug output.
 

Detailed Description

HTTP request could not be successfully processed.

Constructor & Destructor Documentation

◆ HttpError()

HttpError ( HttpStatus status,
const char * reason )

Create a new HTTP error.

Member Function Documentation

◆ status()

HttpStatus status ( ) const

◆ reason()

const char * reason ( ) const

Reason phrase

◆ message()

String message ( ) const
overridevirtual

Generate error message for debug output.

Implements Exception.