Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
mute user: Fix incomplete API error responses in docs.
Abhijeet Prasad Bodase1acfb9e9a84
diff --git a/templates/zerver/api/mute-user.md b/templates/zerver/api/mute-user.mdindex 5f28e9a9ad8..fc4e081e58c 100644--- a/templates/zerver/api/mute-user.md+++ b/templates/zerver/api/mute-user.md@@ -28,6 +28,14 @@ A typical successful JSON response may look like:{generate_code_example|/users/me/muted_users/{muted_user_id}:post|fixture(200)}-An example JSON response for when a user is already muted:+An example JSON response for when the user is yourself:-{generate_code_example|/users/me/muted_users/{muted_user_id}:post|fixture(400)}+{generate_code_example|/users/me/muted_users/{muted_user_id}:post|fixture(400_0)}++An example JSON response for when the user is nonexistent or inaccessible:++{generate_code_example|/users/me/muted_users/{muted_user_id}:post|fixture(400_1)}++An example JSON response for when the user is already muted:++{generate_code_example|/users/me/muted_users/{muted_user_id}:post|fixture(400_2)}diff --git a/templates/zerver/api/unmute-user.md b/templates/zerver/api/unmute-user.mdindex 7e0706e6c72..e427de53d23 100644--- a/templates/zerver/api/unmute-user.md+++ b/templates/zerver/api/unmute-user.md@@ -27,6 +27,10 @@ A typical successful JSON response may look like:{generate_code_example|/users/me/muted_users/{muted_user_id}:delete|fixture(200)}-An example JSON response for when a user is not previously muted:+An example JSON response for when the user is nonexistent or inaccessible:-{generate_code_example|/users/me/muted_users/{muted_user_id}:delete|fixture(400)}+{generate_code_example|/users/me/muted_users/{muted_user_id}:delete|fixture(400_0)}++An example JSON response for when the user is not previously muted:++{generate_code_example|/users/me/muted_users/{muted_user_id}:delete|fixture(400_1)}