首页 > 解决方案 > What is the alternative for System.Web.Http.HttpError class in .NET 5?

问题描述

I am migration our old API from ASP Web API to .Net 5 core and I found the usage of HttpError class.

var httpError = new HttpError(exception, true);

I have checked Microsoft official documentation and did not find any suggestions how to replace the legacy. Please suggest the alternative for HttpError.

Thanks

标签: .net-coreasp.net-core-webapi.net-5

解决方案


推荐阅读