From 2a6e6c977666486ac88f3765814ae2203b7ab7b2 Mon Sep 17 00:00:00 2001 From: Jianfei Bai Date: Mon, 12 Aug 2019 21:56:20 +0800 Subject: [PATCH] Replace self defined const StatusTooManyRequests with http.StatusTooManyRequests. --- staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go b/staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go index 2f7378c404a..95d5c7a3553 100644 --- a/staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go +++ b/staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go @@ -30,11 +30,11 @@ import ( ) const ( - // DEPRECATED: please use http.StatusTooManyRequests, this will be removed in - // the future version. // StatusTooManyRequests means the server experienced too many requests within a // given window and that the client must wait to perform the action again. - StatusTooManyRequests = 429 + // DEPRECATED: please use http.StatusTooManyRequests, this will be removed in + // the future version. + StatusTooManyRequests = http.StatusTooManyRequests ) // StatusError is an error intended for consumption by a REST API server; it can also be