From 97cdda6998ea03e77d12383a0b84da0bb2147b6d Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 30 Oct 2024 15:48:44 +0200 Subject: [PATCH] errors: add constant for 429 --- errors.go | 1 + 1 file changed, 1 insertion(+) diff --git a/errors.go b/errors.go index 3f784409..101436b7 100644 --- a/errors.go +++ b/errors.go @@ -183,6 +183,7 @@ var ( ErrIQGone error = &IQError{Code: 410, Text: "gone"} ErrIQResourceLimit error = &IQError{Code: 419, Text: "resource-limit"} ErrIQLocked error = &IQError{Code: 423, Text: "locked"} + ErrIQRateOverLimit error = &IQError{Code: 429, Text: "rate-overlimit"} ErrIQInternalServerError error = &IQError{Code: 500, Text: "internal-server-error"} ErrIQServiceUnavailable error = &IQError{Code: 503, Text: "service-unavailable"} ErrIQPartialServerError error = &IQError{Code: 530, Text: "partial-server-error"}