mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 11:13:48 +00:00
Add type for StatusReason constants
This commit is contained in:
parent
51e7042295
commit
ad10ca1da8
@ -239,13 +239,13 @@ const (
|
|||||||
// Details (optional):
|
// Details (optional):
|
||||||
// "causes" - The original error
|
// "causes" - The original error
|
||||||
// Status code 500
|
// Status code 500
|
||||||
StatusReasonInternalError = "InternalError"
|
StatusReasonInternalError StatusReason = "InternalError"
|
||||||
|
|
||||||
// StatusReasonExpired indicates that the request is invalid because the content you are requesting
|
// 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
|
// has expired and is no longer available. It is typically associated with watches that can't be
|
||||||
// serviced.
|
// serviced.
|
||||||
// Status code 410 (gone)
|
// Status code 410 (gone)
|
||||||
StatusReasonExpired = "Expired"
|
StatusReasonExpired StatusReason = "Expired"
|
||||||
|
|
||||||
// StatusReasonServiceUnavailable means that the request itself was valid,
|
// StatusReasonServiceUnavailable means that the request itself was valid,
|
||||||
// but the requested service is unavailable at this time.
|
// but the requested service is unavailable at this time.
|
||||||
|
Loading…
Reference in New Issue
Block a user