Returns error code when cannot access internet