Relax error message checks

Monkey-patch npm-registry-client `request` method to include http status
code in the error object.

Modify `install` end-to-end tests to check 404 status code and ignore
error message, because the message may differ between registry
implementations.