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.

api docs: Document history of rate limit format.

Tim Abbotta9cc3751cca7
diff --git a/templates/zerver/api/changelog.md b/templates/zerver/api/changelog.md
index e3e8bd02a1c..0c06a570210 100644
--- a/templates/zerver/api/changelog.md
+++ b/templates/zerver/api/changelog.md
@@ -268,6 +268,8 @@ field with an integer field `invite_to_realm_policy`.
* [`POST /users`](/api/create-user): Restricted access to organization
administrators with the `can_create_users` permission.
+* [Error handling](/api/rest-error-hanlding): The `code` property will
+ not be present in errors due to rate limits.
**Feature level 35**
diff --git a/templates/zerver/api/rest-error-handling.md b/templates/zerver/api/rest-error-handling.md
index b68db96c3e6..22f272c1c28 100644
--- a/templates/zerver/api/rest-error-handling.md
+++ b/templates/zerver/api/rest-error-handling.md
@@ -47,4 +47,7 @@ When the Zulip server has configured multiple rate limits that apply
to a given request, the values returned will be for the strictest
limit.
+**Changes**: The `code` field in the response is new in Zulip 4.0
+(feature level 36).
+
{generate_code_example|/rest-error-handling:post|fixture(403)}