Error detection

Errors of page not found and Inifinite loop were made explicit.