From f38e5fa24e2ac6cf343b5351d2a1269b5b07f842 Mon Sep 17 00:00:00 2001 From: core Date: Sun, 30 Jul 2023 14:53:48 -0400 Subject: [PATCH] hosts:delete error parity --- trifid-api/src/routes/v1/hosts.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trifid-api/src/routes/v1/hosts.rs b/trifid-api/src/routes/v1/hosts.rs index 806820a..1a4bef5 100644 --- a/trifid-api/src/routes/v1/hosts.rs +++ b/trifid-api/src/routes/v1/hosts.rs @@ -1239,9 +1239,9 @@ pub async fn delete_host( None => { return HttpResponse::Unauthorized().json(APIErrorsResponse { errors: vec![APIError { - code: "ERR_UNAUTHORIZED".to_string(), + code: "ERR_NOT_FOUND".to_string(), message: - "This resource does not exist or you do not have permission to access it." + "resource not found" .to_string(), path: None, }],