matrix-org / matrix-spec

The Matrix protocol specification
Apache License 2.0
188 stars 94 forks source link

Add 403 response error to `/_matrix/federation/v1/state_ids/{roomId}` #1912

Open anoadragon453 opened 2 months ago

anoadragon453 commented 2 months ago

Suggestion /_matrix/federation/v1/state_ids/{roomId} currently specifies 200 and 404 status code responses. However, homeserver implementations (Synapse, Conduit) have been returning 403s in the following cases:

  1. The host is not in the room.
  2. The host is banned from the room via its ACL.

403 should be specified as a possible response code in these cases.