Fix error handler. Improved error pages.