Report HTTP error code on failure to install

This gives the end user more information as to why their command failed.

See #1493