Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

exceptions: Add link to rate-limiting docs in 429 response.

Alex Vandiverc6a60fd533ab
diff --git a/zerver/lib/exceptions.py b/zerver/lib/exceptions.py
index 4528e07ea8a..8f434caf437 100644
--- a/zerver/lib/exceptions.py
+++ b/zerver/lib/exceptions.py
@@ -268,7 +268,9 @@ class RateLimitedError(JsonableError):
@staticmethod
@override
def msg_format() -> str:
- return _("API usage exceeded rate limit")
+ return _(
+ "API usage exceeded rate limit; see https://zulip.com/api/http-headers#rate-limiting-response-headers"
+ )
@property
@override