ASP.NET WebApi see https://github.com/boeschenstein/webapi IExceptionHandler (asp.net 8) https://www.milanjovanovic.tech/blog/global-error-handling-in-aspnetcore-8