Consider NoSignature a BadRequest

This commit is contained in:
asonix 2022-12-19 11:44:50 -06:00
parent b56bddccb4
commit cf7a25f935

View file

@ -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,
}
}