Improving the error page generation.