`res` might be nil here.
```ruby
if res && res.code == 200
```