Add 404 on make_knock if unknown room ID

This commit is contained in:
Andrew Morgan 2021-02-17 12:11:08 +00:00
parent 8400877574
commit 337c87b949

View file

@ -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}` ### `PUT /_matrix/federation/v2/send_knock/{roomId}/{eventId}`
Submits a signed knock event to the resident homeserver for it to accept into 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. the room's graph. Note that event format may differ between room versions.