From 0a8445fead90337a968c350a1920146cdbd0b031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Pr=C3=A9vost?= Date: Wed, 31 Jan 2024 14:13:35 +0100 Subject: [PATCH] dec key: not found instead of internal error in case key doesn't exist --- src/routes/keys/get_key.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/routes/keys/get_key.rs b/src/routes/keys/get_key.rs index 2f352db..392cf1c 100644 --- a/src/routes/keys/get_key.rs +++ b/src/routes/keys/get_key.rs @@ -170,6 +170,9 @@ pub(in crate::routes) async fn route_get_key_with_id(rcx: &RequestContext<'_>, r QkdManagerResponse::AuthenticationError => { super::QKDKMERoutesV1::authentication_error() } + QkdManagerResponse::NotFound => { + super::QKDKMERoutesV1::not_found() + } _ => { super::QKDKMERoutesV1::internal_server_error() }