How to fix: UseExceptionHandler not working / executed on validation errors in ASP .NET core.
The following post explains exactly how to globally handle validation errors thrown by the ASP .NET core framework. https://www.strathweb.com/2018/07/centralized-exception-handling-and-request-validation-in-asp-net-core/ Validation errors will not trigger the “UseExceptionHandler”. If you want to change the response