Kurlyk
Loading...
Searching...
No Matches
HttpErrorCategory.hpp File Reference

Defines the HttpErrorCategory class for interpreting HTTP status codes as std::error_code values. More...

Go to the source code of this file.

Classes

class  kurlyk::utils::HttpErrorCategory
 Custom error category that maps HTTP status codes (e.g., 404, 500) to human-readable error messages. More...
 

Namespaces

namespace  kurlyk
 Primary namespace for the Kurlyk library, encompassing initialization, request management, and utility functions.
 
namespace  kurlyk::utils
 

Macros

#define _KURLYK_UTILS_HTTP_ERROR_CATEGORY_HPP_INCLUDED
 

Functions

std::error_code kurlyk::utils::make_http_error (int status_code)
 Creates an std::error_code from an HTTP status code.
 
bool kurlyk::utils::is_http_error (const std::error_code &ec)
 Checks whether the given error code belongs to the HTTP error category.
 

Detailed Description

Defines the HttpErrorCategory class for interpreting HTTP status codes as std::error_code values.

Definition in file HttpErrorCategory.hpp.

Macro Definition Documentation

◆ _KURLYK_UTILS_HTTP_ERROR_CATEGORY_HPP_INCLUDED

#define _KURLYK_UTILS_HTTP_ERROR_CATEGORY_HPP_INCLUDED

Definition at line 3 of file HttpErrorCategory.hpp.