From e7da2d70098922de9caae9535546710edca2949b Mon Sep 17 00:00:00 2001 From: core Date: Mon, 31 Jul 2023 00:34:50 -0400 Subject: [PATCH] roles:get error parity References: https://todo.e3t.cc/~core/trifid/1 --- trifid-api/src/routes/v1/roles.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trifid-api/src/routes/v1/roles.rs b/trifid-api/src/routes/v1/roles.rs index 93d1936..cd8b00b 100644 --- a/trifid-api/src/routes/v1/roles.rs +++ b/trifid-api/src/routes/v1/roles.rs @@ -822,8 +822,8 @@ pub async fn get_role( } else { HttpResponse::NotFound().json(APIErrorsResponse { errors: vec![APIError { - code: "ERR_MISSING_ROLE".to_string(), - message: "Role does not exist".to_string(), + code: "ERR_NOT_FOUND".to_string(), + message: "resource not found".to_string(), path: None, }], })