From ce9840f8c43c6d2421c6995b3fbdd3d8839291a9 Mon Sep 17 00:00:00 2001 From: noisypixy Date: Wed, 2 Mar 2016 21:13:53 -0430 Subject: [PATCH] Constant missing in Go < 1.6 --- restapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restapi.go b/restapi.go index dc26baf..93b71ea 100644 --- a/restapi.go +++ b/restapi.go @@ -111,7 +111,7 @@ func (s *Session) request(method, urlStr, contentType string, b []byte) (respons // TODO check for 401 response, invalidate token if we get one. - case http.StatusTooManyRequests: // Rate limiting + case 429: // TOO MANY REQUESTS - Rate limiting rl := RateLimit{} err = json.Unmarshal(response, &rl) if err != nil {