added error detection code in pageObject class

opens an HttpURLConnection and returns status code of the request made
to the HREF provided by the object, if the error falls under the 4XX or
5XX error codes, then the page has an error, and the hasERROR boolean
atribute of the object is set to true.