fix: Use 404 instead of 400 (and include sender)
This commit is contained in:
parent
a9ebdf58e2
commit
d15ac1d3c1
2 changed files with 4 additions and 1 deletions
2
changelog.d/1308.feature.md
Normal file
2
changelog.d/1308.feature.md
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
Added unstable support for [MSC4406: `M_SENDER_IGNORED`](https://github.com/matrix-org/matrix-spec-proposals/pull/4406).
|
||||||
|
Contributed by @nex
|
||||||
|
|
@ -85,7 +85,8 @@ pub(super) fn bad_request_code(kind: &ErrorKind) -> StatusCode {
|
||||||
| Unrecognized => StatusCode::METHOD_NOT_ALLOWED,
|
| Unrecognized => StatusCode::METHOD_NOT_ALLOWED,
|
||||||
|
|
||||||
// 404
|
// 404
|
||||||
| NotFound | NotImplemented | FeatureDisabled => StatusCode::NOT_FOUND,
|
| NotFound | NotImplemented | FeatureDisabled | SenderIgnored { .. } =>
|
||||||
|
StatusCode::NOT_FOUND,
|
||||||
|
|
||||||
// 403
|
// 403
|
||||||
| GuestAccessForbidden
|
| GuestAccessForbidden
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue