RED-4789 - Uploading an invalid digital signature certificate returns error code 500

- return BadRequestException instead of InternalServerErrorException
This commit is contained in:
devplant 2022-08-09 13:12:49 +03:00
parent d395724f73
commit f541ac2ab8

View File

@ -40,7 +40,7 @@ public class DigitalSignatureKmsService {
if (e.status() == HttpStatus.BAD_REQUEST.value()) {
throw new BadRequestException(e.getMessage(), e);
}
throw new InternalServerErrorException("Could not validate digital KMS signature", e);
throw new BadRequestException("Could not validate digital KMS signature", e);
}
log.info("Digital KMS signature is valid");