<system.webServer> <httpErrors errorMode="Custom"> <remove statusCode="404"/> <error statusCode="404" path="App/Errors/NotFound" responseMode="ExecuteURL"/> </httpErrors> </system.webServer>