xhr.status might be 0 for local files