def IsError(self):
    """Returns True on client or server error, False otherwise."""
    return self.status >= 400 and self.status <= 599
dataset/ETHPy150Open google/simian/src/simian/client/client.py/Response.IsError/original