Created views for errors; added tests for 404 redirection.