Please delete the parenthesis around the if condition:

```ruby
if res.code.between?(400, 499)
```