Some samples that show how to correctly handle errors in Web API projects, either Controller-based and Minimal APIs (check the comments in code to get more information).
marcominerva/ErrorHandling
Some samples that show how to correctly handle errors in Web API projects
C#MIT