registry: use const for status code 429
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
84cb77c871
commit
4e09e1b658
2 changed files with 2 additions and 8 deletions
|
@ -71,10 +71,7 @@ var (
|
|||
Message: "too many requests",
|
||||
Description: `Returned when a client attempts to contact a
|
||||
service too many times`,
|
||||
// FIXME: go1.5 doesn't export http.StatusTooManyRequests while
|
||||
// go1.6 does. Update the hardcoded value to the constant once
|
||||
// Docker updates golang version to 1.6.
|
||||
HTTPStatusCode: 429,
|
||||
HTTPStatusCode: http.StatusTooManyRequests,
|
||||
})
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue