def ok(self):
        """Return true if `status_code` is 200 and no error."""
        try:
            self.raise_for_status()
        except:
            return False
        return True
Return true if `status_code` is 200 and no error.
pyspider/libs/response.py