fn: added http 429 in models Errors (#1236)

This commit is contained in:
Tolga Ceylan
2018-09-21 18:28:18 -07:00
committed by GitHub
parent f166ec0ed1
commit dc6516b8e2

View File

@@ -146,6 +146,10 @@ var (
code: http.StatusBadRequest,
error: fmt.Errorf("Invalid annotation change, new key(s) exceed maximum permitted number of annotations keys (%d)", maxAnnotationsKeys),
}
ErrTooManyRequests = err{
code: http.StatusTooManyRequests,
error: errors.New("Too many requests submitted"),
}
ErrAsyncUnsupported = err{
code: http.StatusBadRequest,