The error is associated with yahoo site. I made the test through javascript and had the same problem. If you want to test access download.finance.yahoo.com and them open chrome console via F12 and put the code bellow:
function test() {
for(var x = 0; x < 100; x++) {
var req = new XMLHttpRequest();
req.open("GET", "http://download.finance.yahoo.com/d/quotes.csv?s=AAPL&f=sl1d1t1c1ohgv&e=.csv", false);
req.send();
if(req.status != 200) {
console.log("ERROR"); return;
}else {
console.log("OK");
}
}
}
test();
Check in my example that it worked 8 times (8 OK's) but in the 9th try it failed.