I've been seeing developers pattern after some code in Zend and I'm trying to figure out why Zend might have implemented http response code checking this way:

```
/**
 * Check whether the response in successful
 *
 * @return boolean
 */
public function isSuccessful()
{
    $restype = floor($this->code / 100);
    if ($restype == 2 || $restype == 1) { // Shouldn't 3xx count as success as well ???
        return true;
    }

    return false;
}

```

Specifically, why would they do that instead of

```
public function isSuccessful()
{
    return $this->code >= 100 && $this->code < 300
}

```