diff options
author | hiddenpath <hiddenpath@yandex-team.com> | 2025-02-18 12:34:23 +0300 |
---|---|---|
committer | hiddenpath <hiddenpath@yandex-team.com> | 2025-02-18 13:18:25 +0300 |
commit | b8ac60a673bd416577ca37b911409acbd32c7be2 (patch) | |
tree | c7a831e31968ebea4fbcdcb60fcd406193f208f5 /yt/cpp/mapreduce/http_client/raw_batch_request.cpp | |
parent | 75f5993689410f06224ace8767c11e2c71093fde (diff) | |
download | ydb-b8ac60a673bd416577ca37b911409acbd32c7be2.tar.gz |
YT-23616: Remove HttpCode from TErrorResponse
commit_hash:412a7a1e02eb68d388aff73a439e98f6f2dab8a6
Diffstat (limited to 'yt/cpp/mapreduce/http_client/raw_batch_request.cpp')
-rw-r--r-- | yt/cpp/mapreduce/http_client/raw_batch_request.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/yt/cpp/mapreduce/http_client/raw_batch_request.cpp b/yt/cpp/mapreduce/http_client/raw_batch_request.cpp index 69bae54cf6..93a15f27e3 100644 --- a/yt/cpp/mapreduce/http_client/raw_batch_request.cpp +++ b/yt/cpp/mapreduce/http_client/raw_batch_request.cpp @@ -695,8 +695,7 @@ void THttpRawBatchRequest::ParseResponse( if (errorIt == responseNode.end()) { BatchItemList_[i].ResponseParser->SetResponse(Nothing()); } else { - TErrorResponse error(400, requestId); - error.SetError(TYtError(errorIt->second)); + TErrorResponse error(TYtError(errorIt->second), requestId); if (auto curInterval = IsRetriable(error) ? retryPolicy->OnRetriableError(error) : Nothing()) { YT_LOG_INFO( "Batch subrequest (%s) failed, will retry, error: %s", |