Libraries to throw fallback HTTP errors instead of 404
-
400
-
401
-
403
-
404
-
500
-
501
-
502
-
503
-
520
-
521
-
533
Add the handler to your Web.config
file.
<system.webServer>
...
<handlers>
...
<add name="Http404Handler" verb="" path="*" type="HttpFallback.AspNet.Http404Handler, HttpFallback.AspNet" />
</handlers>
...
</system.webServer>
Check the Available error pages topic to know which error codes can be used
Add this to your Startup.cs
file:
app.Use<HttpFallbackOwinMiddleware>(404)
Check the Available error pages topic to know which error codes can be used
The Error pages were copied from the project HttpErrorPages
Did you find this project useful? Consider making a donation.