Skip to content

Commit

Permalink
Add 403 error response to federation/v1/state_ids (#1926)
Browse files Browse the repository at this point in the history
fixes #1912 by adding a 403 error response to /_matrix/federation/v1/state_ids/{roomId}

Signed-off-by: Srinjoy Sen Chowdhury  <[email protected]>
  • Loading branch information
AllMightLegend authored Oct 30, 2024
1 parent 611d6c3 commit 0b4d1c0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelogs/server_server/newsfragments/1926.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add 403 error response to `/_matrix/federation/v1/state_ids/{roomId}`.
13 changes: 13 additions & 0 deletions data/api/server-server/events.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,19 @@ paths:
required:
- auth_chain_ids
- pdu_ids
"403":
description: |-
The requesting host is not in the room, or is excluded from the room via `m.room.server_acl`.
content:
application/json:
schema:
$ref: ../client-server/definitions/errors/error.yaml
examples:
response:
value: {
"errcode": "M_FORBIDDEN",
"error": "You do not have permission to access the state at the requested event."
}
"404":
description: |-
The given `event_id` was not found or the server doesn't know about the state at
Expand Down

0 comments on commit 0b4d1c0

Please sign in to comment.