Retrieving the path that generated an error with the StatusCodePages Middleware

added by DotNetKicks
3/30/2017 10:49:13 AM

2 Kicks, 173 Views

In my previous post, I showed how to use the re-execute features of the StatusCodePagesMiddleware to generate custom error pages for status-code errors. This allows you to easily create custom error pages for common error status codes like 404 or 500.