userver: userver/server/http/http_error.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
http_error.hpp File Reference

Get http status code mapped to generic handler error code. More...

#include <stdexcept>
#include <string>
#include <userver/server/handlers/exceptions.hpp>
#include <userver/server/http/http_status.hpp>
+ Include dependency graph for http_error.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  server::http::CustomHandlerException
 An extension of server::handlers::CustomHandlerException that allows to specify a custom HttpStatus. More...
 

Namespaces

namespace  server::http
 Server parts of the HTTP protocol implementation.
 

Functions

HttpStatus server::http::GetHttpStatus (handlers::HandlerErrorCode) noexcept
 Get http status code mapped to generic handler error code.
 
HttpStatus server::http::GetHttpStatus (const handlers::CustomHandlerException &exception) noexcept
 

Detailed Description

Get http status code mapped to generic handler error code.

Definition in file http_error.hpp.