Is there an equivalent to HttpResponseException in .Net 6?

Viewed 18

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."));
                }
0 Answers
Related