rethrow error when not 404 for package.json
add tests for badResponse
Merge pull request #40 from maxnuf/patch-2

rethrow error when not 404 for package.json