From ad10ca1da81f25f1e5aa18916a70a0ccaf14aaf7 Mon Sep 17 00:00:00 2001 From: feihujiang Date: Thu, 3 Dec 2015 19:12:01 +0800 Subject: [PATCH] Add type for StatusReason constants --- pkg/api/unversioned/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/api/unversioned/types.go b/pkg/api/unversioned/types.go index 596ca56ac51..b333970678b 100644 --- a/pkg/api/unversioned/types.go +++ b/pkg/api/unversioned/types.go @@ -239,13 +239,13 @@ const ( // Details (optional): // "causes" - The original error // Status code 500 - StatusReasonInternalError = "InternalError" + StatusReasonInternalError StatusReason = "InternalError" // StatusReasonExpired indicates that the request is invalid because the content you are requesting // has expired and is no longer available. It is typically associated with watches that can't be // serviced. // Status code 410 (gone) - StatusReasonExpired = "Expired" + StatusReasonExpired StatusReason = "Expired" // StatusReasonServiceUnavailable means that the request itself was valid, // but the requested service is unavailable at this time.