From 09c5eb0aa0683a64d81e7ae43490fddcb997555a Mon Sep 17 00:00:00 2001 From: Sergey Veselov Date: Wed, 21 Feb 2024 10:12:01 +0000 Subject: [PATCH] LOGBROKER-8953: change 400 to 503 status for Unavailable in http_proxy --- ydb/core/http_proxy/http_req.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ydb/core/http_proxy/http_req.cpp b/ydb/core/http_proxy/http_req.cpp index 9b824d2815dc..bb33ee48e78d 100644 --- a/ydb/core/http_proxy/http_req.cpp +++ b/ydb/core/http_proxy/http_req.cpp @@ -93,7 +93,7 @@ namespace NKikimr::NHttpProxy { case NYdb::EStatus::ABORTED: return TException("Aborted", HTTP_BAD_REQUEST); case NYdb::EStatus::UNAVAILABLE: - return TException("Unavailable", HTTP_BAD_REQUEST); + return TException("Unavailable", HTTP_SERVICE_UNAVAILABLE); case NYdb::EStatus::TIMEOUT: return TException("RequestExpired", HTTP_BAD_REQUEST); case NYdb::EStatus::BAD_SESSION: