checking errors while making a request and returning the caller page