.net-core - 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
解决方案
推荐阅读
- powershell - 在 ForEach 查询中修剪
- java - 用大括号分割注释部分(代码块)
- c# - C# 映射 JSON 对象显示 null
- cassandra - Cassandra 在数据库中写入数据时从哪里花费时间进行 WRITETIME?
- vba - 如何使用原始附件回复所有联系人
- postgresql - 如何在 ASP.NET Core 5 中使用 FromSqlRaw 删除记录?
- node.js - 由于 CORS 错误,React 不会调用后端(节点)
- android - 带有条件的活动回栈
- graphics - 我们如何在 Vulkan 中禁用帧限制/垂直同步
- angular - 如何为 Swagger UI 提供标题?