Added BadRequestException for sending HTTP 400