Check that res.statusCode in 200..299 range

This will prevent errors on 201 codes for server.