diff options
Diffstat (limited to 'library/cpp/http/misc/httpcodes.h')
-rw-r--r-- | library/cpp/http/misc/httpcodes.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/http/misc/httpcodes.h b/library/cpp/http/misc/httpcodes.h index 87175019f9..cbfbaa1188 100644 --- a/library/cpp/http/misc/httpcodes.h +++ b/library/cpp/http/misc/httpcodes.h @@ -84,11 +84,11 @@ inline TStringBuf HttpCodeStr(int code) noexcept { inline bool IsHttpCode(int code) noexcept { return HttpCodeStrEx(code).data() != HttpCodeStrEx(0).data(); } - + inline bool IsUserError(int code) noexcept { - return code >= 400 && code < 500; -} - + return code >= 400 && code < 500; +} + inline bool IsServerError(int code) noexcept { - return code >= 500; -} + return code >= 500; +} |