My application uses the recommended exception handling in ASP.NET Core:
if (_webHostEnvironment.IsDevelopme