hosts:delete error parity

This commit is contained in:
core 2023-07-30 14:53:48 -04:00
parent 1afbab3a41
commit f38e5fa24e
Signed by: core
GPG Key ID: FDBF740DADDCEECF
1 changed files with 2 additions and 2 deletions

View File

@ -1239,9 +1239,9 @@ pub async fn delete_host(
None => { None => {
return HttpResponse::Unauthorized().json(APIErrorsResponse { return HttpResponse::Unauthorized().json(APIErrorsResponse {
errors: vec![APIError { errors: vec![APIError {
code: "ERR_UNAUTHORIZED".to_string(), code: "ERR_NOT_FOUND".to_string(),
message: message:
"This resource does not exist or you do not have permission to access it." "resource not found"
.to_string(), .to_string(),
path: None, path: None,
}], }],