added deprecation notice when reponse.ok? is called