aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Zuikov <chertus@gmail.com>2022-03-15 21:49:09 +0300
committerArtem Zuikov <chertus@gmail.com>2022-03-15 21:49:09 +0300
commit428ee57c143798426140bc229ec50c4d007fef8b (patch)
treea03fe84cbe6b0d1796edf1446d8a07ff8a79b41c
parent3dd665b514943f69657b593eb51af90b99b1206b (diff)
downloadydb-428ee57c143798426140bc229ec50c4d007fef8b.tar.gz
KIKIMR-14512: fix error code in RateLimiterService
ref:dd248e9e8d9bb56269358dcb84294faa02db6620
-rw-r--r--ydb/core/grpc_services/rpc_rate_limiter_api.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ydb/core/grpc_services/rpc_rate_limiter_api.cpp b/ydb/core/grpc_services/rpc_rate_limiter_api.cpp
index c59e0f7aed..3e27a32d95 100644
--- a/ydb/core/grpc_services/rpc_rate_limiter_api.cpp
+++ b/ydb/core/grpc_services/rpc_rate_limiter_api.cpp
@@ -143,14 +143,14 @@ protected:
}
if (!entry.KesusInfo) {
- this->Reply(StatusIds::INTERNAL_ERROR, "Internal error: no coordination node info found.", NKikimrIssues::TIssuesIds::GENERIC_RESOLVE_ERROR, TActivationContext::ActorContextFor(this->SelfId()));
+ this->Reply(StatusIds::BAD_REQUEST, "Bad request: no coordination node info found.", NKikimrIssues::TIssuesIds::GENERIC_RESOLVE_ERROR, TActivationContext::ActorContextFor(this->SelfId()));
return;
}
KesusTabletId = entry.KesusInfo->Description.GetKesusTabletId();
if (!KesusTabletId) {
- this->Reply(StatusIds::INTERNAL_ERROR, "Internal error: no coordination node id found.", NKikimrIssues::TIssuesIds::GENERIC_RESOLVE_ERROR, TActivationContext::ActorContextFor(this->SelfId()));
+ this->Reply(StatusIds::BAD_REQUEST, "Bad request: no coordination node id found.", NKikimrIssues::TIssuesIds::GENERIC_RESOLVE_ERROR, TActivationContext::ActorContextFor(this->SelfId()));
return;
}