mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 12:54:58 +00:00
This simplifies the code, as it allows using the mechanism of converting JsonableErrors into a response instead of having separate, but ultimately similar, logic in RateLimitMiddleware. We don't touch tests here because "rate limited" error responses are already verified in test_external.py.
3.0 KiB
3.0 KiB