handling errors on webxml, 404 and Exception