userver: userver/clients/http/error_kind.hpp Source File
Loading...
Searching...
No Matches
error_kind.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/clients/http/error_kind.hpp
4/// @brief @copybrief clients::http::ErrorKind
5
6USERVER_NAMESPACE_BEGIN
7
8namespace clients::http {
9
10/// Additional tag to the exception.
11enum class ErrorKind {
12 kNetwork, // error during transportation
13 kDeadlinePropagation, // our own deadline exceeded
14 kTimeout, // timeout reached
15 kCancel, // task or request cancelled
16 kClient, // request was called with a bad parameter
17 kServer, // error on server side
18};
19
20} // namespace clients::http
21
22USERVER_NAMESPACE_END