From a1de65f178f9bffa17e28ba20fa2e32f565fb276 Mon Sep 17 00:00:00 2001 From: Jonathan de Jong Date: Wed, 13 Apr 2022 11:14:56 +0200 Subject: [PATCH] @MSC2666: Add "may return 400" qualifier (#3770) Resolves [this comment](https://github.com/matrix-org/matrix-spec-proposals/pull/2666#discussion_r830500133) Rationale for `M_UNKNOWN`: There's not a "semantically more close" variant of that error, and i'm hesitant to add a new error. cc @Half-Shot --- proposals/2666-get-rooms-in-common.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proposals/2666-get-rooms-in-common.md b/proposals/2666-get-rooms-in-common.md index c66b35d94..1ecc06323 100644 --- a/proposals/2666-get-rooms-in-common.md +++ b/proposals/2666-get-rooms-in-common.md @@ -26,6 +26,9 @@ The response format will be an array containing all rooms where both the authent a membership of type `join`. If the `user_id` does not exist, or does not share any rooms with the authenticated user, an empty array should be returned. +Additionally, a server may respond with a `400` `M_UNKNOWN` to this endpoint for any reason, +signalling its unwillingess (or inability) to satisfy the request. + ``` GET /_matrix/client/r0/user/mutual_rooms/%40bob%3Aexample.com ```