Switch status code set/get to integer fixes #881

Since we know this is a number, instead of turning a number into a string and a string into an array, we can simply do:

```php
$level = floor($response->getStatusCode() / 100);
```