Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
api_documentation: Update rate limit error description.
Lauryn Menard7077871111cc
diff --git a/templates/zerver/api/changelog.md b/templates/zerver/api/changelog.mdindex 13390d71028..29e260a9bff 100644--- a/templates/zerver/api/changelog.md+++ b/templates/zerver/api/changelog.md@@ -590,7 +590,7 @@ field with an integer field `invite_to_realm_policy`.* [`POST /users`](/api/create-user): Restricted access to organizationadministrators with the `can_create_users` permission.* [Error handling](/api/rest-error-handling): The `code` property will- not be present in errors due to rate limits.+ now 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.mdindex 1adeff2f283..637534541e7 100644--- a/templates/zerver/api/rest-error-handling.md+++ b/templates/zerver/api/rest-error-handling.md@@ -19,9 +19,6 @@ errors common to many endpoints:{generate_code_example|/rest-error-handling:post|fixture}-The `retry-after` parameter in the response indicates how many seconds-the client must wait before making additional requests.-To help clients avoid exceeding rate limits, Zulip sets the followingHTTP headers in all API responses:@@ -44,6 +41,3 @@ and over time. The default configuration currently limits:When the Zulip server has configured multiple rate limits that applyto a given request, the values returned will be for the strictestlimit.--**Changes**: The `code` field in the response is new in Zulip 4.0-(feature level 36).diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex 051ef323a07..12b9c2feca0 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -15190,8 +15190,8 @@ components:description: |## Missing request parameter(s)- A typical failed JSON response for when a required request parameter:- is not supplied+ A typical failed JSON response for when a required request parameter+ is not supplied:properties:result: {}msg: {}@@ -15250,6 +15250,12 @@ components:description: |## Rate limit exceeded+ The `retry-after` parameter in the response indicates how many seconds+ the client must wait before making additional requests.++ **Changes**: The `code` field was not present in rate+ limit errors before Zulip 4.0 (feature level 36).+A typical failed JSON response for when a rate limit is exceeded:RealmDeactivatedError:allOf: