better error handling, ignores 407 lines
keep it DRY
Merge pull request #2 from jiehanzheng/master

ignore HTTP 407, etc.