Use the exception handling capabilty built in, implementing a custom handler. Should be able to do everything the current custom middleware does.
Use the exception handling capabilty built in, implementing a custom handler.
Should be able to do everything the current custom middleware does.