I looked in AspNetCore and the HttpResponseException does not exist. I am looking for an equivalent that can make the my code work again. Any suggestions are welcome.
if (!await _bootservice.Setup())
{
throw new HttpResponseException(
Request.CreateErrorResponse(HttpStatusCode.InternalServerError, "Unknown exception occurred. Call returned false."));
}