diff --git a/internal/helper/helpers.go b/internal/helper/helpers.go index b5c99526691978a1434dbe9fd292ac0968170552..aca3f13a360e71b2109c42867203303eb094060a 100644 --- a/internal/helper/helpers.go +++ b/internal/helper/helpers.go @@ -28,7 +28,7 @@ func ServiceUnavailable(w http.ResponseWriter, r *http.Request, err error) { } func TooManyRequests(w http.ResponseWriter, r *http.Request, err error) { - http.Error(w, "Too Many Requests", http.StatusTooManyRequests) + http.Error(w, "Too Many Requests", 429) // http.StatusTooManyRequests was added in go1.6 captureRavenError(r, err) printError(r, err) }