Fixed bugs involving generating a basic error page when uri not found