From 44fc07089d79e48faf82cdda4a48092161bd8a80 Mon Sep 17 00:00:00 2001 From: core Date: Mon, 31 Jul 2023 00:24:17 -0400 Subject: [PATCH] networks:get, networks:list error parity References: https://todo.e3t.cc/~core/trifid/1 --- trifid-api/src/routes/v1/networks.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trifid-api/src/routes/v1/networks.rs b/trifid-api/src/routes/v1/networks.rs index 9a0497a..c7cd6b3 100644 --- a/trifid-api/src/routes/v1/networks.rs +++ b/trifid-api/src/routes/v1/networks.rs @@ -394,8 +394,8 @@ pub async fn get_network_request( } else { HttpResponse::NotFound().json(APIErrorsResponse { errors: vec![APIError { - code: "ERR_MISSING_NETWORK".to_string(), - message: "Network does not exist".to_string(), + code: "ERR_NOT_FOUND".to_string(), + message: "resource not found".to_string(), path: None, }], })