Revert status code cmd
parent
a05dc6516b
commit
6e91d719dd
|
@ -66,6 +66,8 @@ const (
|
|||
// Irrelevant is used for statuses that aren't meaningful for worker nodes
|
||||
Irrelevant = "Irrelevant"
|
||||
|
||||
InsufficientStorage = reason.ExInsufficientStorage
|
||||
|
||||
// New status modes, based roughly on HTTP/SMTP standards
|
||||
// 1xx signifies a transitional state. If retried, it will soon return a 2xx, 4xx, or 5xx
|
||||
Starting = 100
|
||||
|
@ -85,12 +87,12 @@ const (
|
|||
|
||||
// 5xx signifies a server-side error (that may be retryable)
|
||||
Error = 500
|
||||
InsufficientStorage = 507
|
||||
Unknown = 520
|
||||
)
|
||||
|
||||
var (
|
||||
codeNames = map[int]string{
|
||||
reason.ExInsufficientStorage: "InsufficientStorage",
|
||||
100: "Starting",
|
||||
101: "Pausing",
|
||||
102: "Unpausing",
|
||||
|
@ -105,12 +107,11 @@ var (
|
|||
418: "Paused",
|
||||
|
||||
500: "Error",
|
||||
507: "InsufficientStorage",
|
||||
520: "Unknown",
|
||||
}
|
||||
|
||||
codeDetails = map[int]string{
|
||||
507: "/var is almost out of disk space",
|
||||
reason.ExInsufficientStorage: "/var is almost out of disk space",
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue