Skip to main content

Posts

Showing posts from February, 2020

How to Setup Custom Umbraco Error Pages per HTTP Status Error Code (e.g: 400, 401, 403, 404, 500, etc.)

In order to create human friendly content editable custom error pages for an Umbraco project, below are the steps that you can follow; In your web.config ( system.webServer  section), add the following setting to tell the site to pass all of the error handling through you application:         < httpErrors   existingResponse = " PassThrough "  /> Add the httpErrors - this is an IIS level setting rather than an ASP.NET setting, therefore, this needs to go into the  system.webServer  section in the web.config: < system.webServer > …     < httpErrors   errorMode = " Custom "   existingResponse = " Replace " >       < clear />       < error          statusCode = " 400 "          path = " /error-pages/http-errors/400/ "          responseMode = " ExecuteURL " />       < error           statusCode = " 401 "           path = " /error-pages/http-errors