Understanding `UseExceptionHandler` in .Net Core Web API I have an exception-handling middleware that looks like this: