Added error handling to the static index page.