Skip to content

Commit

Permalink
dec key: not found instead of internal error in case key doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Prévost committed Jan 31, 2024
1 parent 8f3add1 commit 0a8445f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/routes/keys/get_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 0a8445f

Please sign in to comment.