diff options
Diffstat (limited to 'src/message')
| -rw-r--r-- | src/message/routes.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message/routes.rs b/src/message/routes.rs index 29fe3d7..e21c674 100644 --- a/src/message/routes.rs +++ b/src/message/routes.rs @@ -9,7 +9,7 @@ use axum::{ use crate::{ app::App, clock::RequestedAt, - error::Internal, + error::{Internal, NotFound}, login::Login, message::{self, app::DeleteError}, }; @@ -38,7 +38,7 @@ impl IntoResponse for ErrorResponse { let Self(error) = self; match error { not_found @ (DeleteError::ChannelNotFound(_) | DeleteError::NotFound(_)) => { - (StatusCode::NOT_FOUND, not_found.to_string()).into_response() + NotFound(not_found).into_response() } other => Internal::from(other).into_response(), } |
