diff --git a/src/backend/ci/core/common/common-api/src/main/kotlin/com/tencent/devops/common/api/util/OkhttpUtils.kt b/src/backend/ci/core/common/common-api/src/main/kotlin/com/tencent/devops/common/api/util/OkhttpUtils.kt index f465e0ff15a..2d5faf08295 100644 --- a/src/backend/ci/core/common/common-api/src/main/kotlin/com/tencent/devops/common/api/util/OkhttpUtils.kt +++ b/src/backend/ci/core/common/common-api/src/main/kotlin/com/tencent/devops/common/api/util/OkhttpUtils.kt @@ -275,7 +275,7 @@ object OkhttpUtils { totalBytesRead += len if (totalBytesRead >= readLimit) { throw ErrorCodeException( - statusCode = 200, + statusCode = 413, errorCode = ERROR_HTTP_RESPONSE_BODY_TOO_LARGE, defaultMessage = errorMsg ?: "response body cannot be exceeded $readLimit" )