From cf7a25f935af3893d32fa91314b860f9ddd6da5e Mon Sep 17 00:00:00 2001 From: asonix Date: Mon, 19 Dec 2022 11:44:50 -0600 Subject: [PATCH] Consider NoSignature a BadRequest --- src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index ece3c06..dde9ba3 100644 --- a/src/error.rs +++ b/src/error.rs @@ -197,7 +197,7 @@ impl ResponseError for Error { ErrorKind::Kind(_) | ErrorKind::MissingKind | ErrorKind::MissingId - | ErrorKind::ObjectCount => StatusCode::BAD_REQUEST, + | ErrorKind::ObjectCount | ErrorKind::NoSignature(_) => StatusCode::BAD_REQUEST, _ => StatusCode::INTERNAL_SERVER_ERROR, } }