From 337c87b949b1725cd8c8bff5d52c1312c3a8baf4 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Wed, 17 Feb 2021 12:11:08 +0000 Subject: [PATCH] Add 404 on make_knock if unknown room ID --- proposals/2403-knock.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/proposals/2403-knock.md b/proposals/2403-knock.md index 7cac2eec..fb82adb3 100644 --- a/proposals/2403-knock.md +++ b/proposals/2403-knock.md @@ -417,6 +417,15 @@ This request was invalid, e.g. bad JSON. Example reply: } ``` +##### Status code 404: +The room is unknown to the remote server. Example reply: +```json +{ + "errcode": "M_NOT_FOUND", + "error": "Unknown room" +} +``` + ### `PUT /_matrix/federation/v2/send_knock/{roomId}/{eventId}` Submits a signed knock event to the resident homeserver for it to accept into the room's graph. Note that event format may differ between room versions.