diff --git a/server/src/routes/errors.rs b/server/src/routes/errors.rs index 72d8346..d6f7a9e 100644 --- a/server/src/routes/errors.rs +++ b/server/src/routes/errors.rs @@ -112,12 +112,6 @@ impl ClientError for RepositoryError { StatusCode::UNPROCESSABLE_ENTITY, "Account cannot be found".into(), ), - (Kind::Missing, Relation::User) => { - (StatusCode::NOT_FOUND, "User cannot be found".into()) - } - (Kind::Missing, Relation::UserApp) => { - (StatusCode::NOT_FOUND, "User app cannot be found".into()) - } (Kind::StillReferenced, Relation::RecurringTransaction) => ( StatusCode::CONFLICT, "Still referenced by one or more recurring transactions".into(),