Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
openapi: Fix fixture rendering in rest-error-handling.
Suyash Vardhan Mathur9f4591419603
diff --git a/templates/zerver/api/rest-error-handling.md b/templates/zerver/api/rest-error-handling.mdindex 0364a2f7707..b68db96c3e6 100644--- a/templates/zerver/api/rest-error-handling.md+++ b/templates/zerver/api/rest-error-handling.md@@ -17,24 +17,9 @@ translated into French if the user has a French locale).Each endpoint documents its own unique errors; below, we documenterrors common to many endpoints:-## Invalid API key+{generate_code_example|/rest-error-handling:post|fixture(400)}-A typical failed JSON response for when the API key is invalid:--{generate_code_example|/rest-error-handling:post|fixture(400_0)}--## Missing request parameter(s)--A typical failed JSON response for when a required request parameter-is not supplied:--{generate_code_example|/rest-error-handling:post|fixture(400_1)}--## Rate limit exceeded--A typical failed JSON response for when a rate limit is exceeded:--{generate_code_example|/rest-error-handling:post|fixture(429_0)}+{generate_code_example|/rest-error-handling:post|fixture(429)}The `retry-after` paremeter in the response indicates how many secondsthe client must wait before making additional requests.@@ -62,21 +47,4 @@ When the Zulip server has configured multiple rate limits that applyto a given request, the values returned will be for the strictestlimit.-## User not authorized for query--A typical failed JSON response for when the user is not authorized for-a query:--{generate_code_example|/rest-error-handling:post|fixture(400_2)}--## User account deactivated--A typical failed json response for when user's account is deactivated:--{generate_code_example|/rest-error-handling:post|fixture(403_0)}--## Realm deactivated--A typical failed json response for when user's organization is deactivated:--{generate_code_example|/rest-error-handling:post|fixture(403_1)}+{generate_code_example|/rest-error-handling:post|fixture(403)}