kickstarter/rack-attack — pull request #20 by sachinmaharjan (2013-06-28 18:04:58+00:00)
Title: Use correct HTTP status codes for blackist and throttle

We noticed rack attack was always returning 503 for blacklisted entries, this is not the correct HTTP status code as it implies a temporary server error such as maintenance. In reality, the problem is with the client, so we should return a 4xx code. According to HTTP 401 is appropriate for blacklisted entries, and 429 for throttled entries.