Skip to content

Commit

Permalink
respond with 429 instead of 403 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajvb committed Mar 13, 2019
1 parent afc8414 commit 60d8261
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/resty/iprepd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ function _M.check(self, ip)
if self.statsd then
self.statsd.incr("iprepd.status.rejected")
end
ngx.exit(ngx.HTTP_FORBIDDEN)
-- respond with a 429
ngx.exit(ngx.HTTP_TOO_MANY_REQUESTS)
end
end
end
Expand Down

0 comments on commit 60d8261

Please sign in to comment.