hosts:edit error parity

This commit is contained in:
core 2023-07-30 14:58:37 -04:00
parent f38e5fa24e
commit 81e927501e
Signed by: core
GPG Key ID: FDBF740DADDCEECF
1 changed files with 3 additions and 3 deletions

View File

@ -1494,11 +1494,11 @@ pub async fn edit_host(
let host = match host {
Some(h) => h,
None => {
return HttpResponse::Unauthorized().json(APIErrorsResponse {
return HttpResponse::NotFound().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,
}],