summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexnick <[email protected]>2022-10-03 16:06:02 +0300
committeralexnick <[email protected]>2022-10-03 16:06:02 +0300
commit5179cfc81a4dcd8aac4db5ad32d89bd77f1c462d (patch)
treef1eaa7308034d5d37271ca43336b2f71e9e75bf3
parent5ff7dea50cb4e4fae89d588641dc282e21338d54 (diff)
treat all unauth errors correctly
-rw-r--r--ydb/core/http_proxy/http_req.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ydb/core/http_proxy/http_req.cpp b/ydb/core/http_proxy/http_req.cpp
index ebd161e5862..a4eb8a230dd 100644
--- a/ydb/core/http_proxy/http_req.cpp
+++ b/ydb/core/http_proxy/http_req.cpp
@@ -49,6 +49,7 @@ namespace NKikimr::NHttpProxy {
switch(status) {
case NYdb::EStatus::BAD_REQUEST:
return "InvalidParameterValueException"; //TODO: bring here issues and parse from them
+ case NYdb::EStatus::CLIENT_UNAUTHENTICATED:
case NYdb::EStatus::UNAUTHORIZED:
return "AccessDeniedException";
case NYdb::EStatus::INTERNAL_ERROR:
@@ -87,6 +88,7 @@ namespace NKikimr::NHttpProxy {
case NYdb::EStatus::UNSUPPORTED:
case NYdb::EStatus::BAD_REQUEST:
return HTTP_BAD_REQUEST;
+ case NYdb::EStatus::CLIENT_UNAUTHENTICATED:
case NYdb::EStatus::UNAUTHORIZED:
return HTTP_FORBIDDEN;
case NYdb::EStatus::INTERNAL_ERROR: