I've been thinking what would be a better to render when an error occurs in my web application, using a html page as an error page because it will always run unless my whole server is down or using dynamic server-side pages as they might be affected by the problem which causes the error so the system may end up with infinite loop to render error page. But I may not be thinking thoroughly so I am asking you about what you think about this case?