mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-01-06 16:03:42 +01:00
Document the error response.
This commit is contained in:
parent
f71e48c0ac
commit
4143f9ddcb
|
|
@ -44,11 +44,14 @@ following keys, or a string representing the MXID of the user exempted:
|
|||
|
||||
Any entries in the list which do not match the expected format are ignored.
|
||||
|
||||
When a server receives a `/join` request from a client or a `/make_join` / `/send_join`
|
||||
When a homeserver receives a `/join` request from a client or a `/make_join` / `/send_join`
|
||||
request from a server, the request should only be permitted if the user has a valid
|
||||
invite or is in one of the listed spaces (established by peeking if the server is not
|
||||
already in the space, see [MSC2444](https://github.com/matrix-org/matrix-doc/pull/2444)).
|
||||
|
||||
If the user is not part of the proper space, the homeserver should return an error response
|
||||
with HTTP status code of 403 and an `errcode` of `M_FORBIDDEN`.
|
||||
|
||||
Unlike the `invite` join rule, confirmation that the `allow` rules were properly
|
||||
checked cannot be enforced over federation by event authorization, so servers in
|
||||
the room are trusted not to allow invalid users to join.<sup id="a3">[3](#f3)</sup>
|
||||
|
|
|
|||
Loading…
Reference in a new issue