Again I would recommend to switch the conditions and do:

```ruby
if res and res.code == 200
  # good case, loot...
else
  print_error("#{peer} - Server returned #{res.code.to_s}")
end
```