UseExceptionHandler
Also written: UseStatusCodePages
Middleware that catches exceptions, logs them and returns a 500 problem without a stack trace. `UseStatusCodePages()` adds problem bodies to bare errors like 404.
Also written: UseStatusCodePages
Middleware that catches exceptions, logs them and returns a 500 problem without a stack trace. `UseStatusCodePages()` adds problem bodies to bare errors like 404.