Check that res.statusCode in 200..299 range
Merge pull request #3 from floatdrop/check-for-2xx-codes

Check that res.statusCode in 200..299 range