I think the ratelimit app proposes to use the `RATELIMIT_VIEW` setting to define a callback that is called when the `block` parameter of the decorator is set to `True` and caught by the `RatelimitMiddleware` middleware. I'd suggest to use that to prevent mixing view code with error handling (e.g. when we use ratelimiting in other views in the future).