aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/misc/httpcodes.h
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:25 +0300
commit344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/http/misc/httpcodes.h
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
downloadydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/misc/httpcodes.h')
-rw-r--r--library/cpp/http/misc/httpcodes.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/http/misc/httpcodes.h b/library/cpp/http/misc/httpcodes.h
index e655dd5bd1..cbfbaa1188 100644
--- a/library/cpp/http/misc/httpcodes.h
+++ b/library/cpp/http/misc/httpcodes.h
@@ -75,20 +75,20 @@ enum HttpCodes {
HTTP_CODE_MAX
};
-TStringBuf HttpCodeStrEx(int code) noexcept;
+TStringBuf HttpCodeStrEx(int code) noexcept;
-inline TStringBuf HttpCodeStr(int code) noexcept {
+inline TStringBuf HttpCodeStr(int code) noexcept {
return HttpCodeStrEx(code).Skip(4);
}
-inline bool IsHttpCode(int code) noexcept {
+inline bool IsHttpCode(int code) noexcept {
return HttpCodeStrEx(code).data() != HttpCodeStrEx(0).data();
}
-inline bool IsUserError(int code) noexcept {
+inline bool IsUserError(int code) noexcept {
return code >= 400 && code < 500;
}
-inline bool IsServerError(int code) noexcept {
+inline bool IsServerError(int code) noexcept {
return code >= 500;
}