Include extra data on errors other than 404

This will help us surface other sorts of problems in the npm error handler.