fix: Use 404 instead of 400 (and include sender)

This commit is contained in:
timedout authored and Jade Ellis committed 2026-02-15 15:55:36 +00:00
1 parent a9ebdf58e2
commit d15ac1d3c1
2 files changed
+4 -1

No files matched your search

+2 -1
View File
@@ -85,7 +85,8 @@ pub(super) fn bad_request_code(kind: &ErrorKind) -> StatusCode {
| Unrecognized => StatusCode::METHOD_NOT_ALLOWED,
// 404
| NotFound | NotImplemented | FeatureDisabled => StatusCode::NOT_FOUND,
| NotFound | NotImplemented | FeatureDisabled | SenderIgnored { .. } =>
StatusCode::NOT_FOUND,
// 403
| GuestAccessForbidden