In case of error, report the right error instead of missing etag

also, missing etag is not a fatal error
Fix compilation without the BUILD_ONLY_LIBRARIES mode
An abort on the reply is not usually a password error.

Copy the code from HTTPCredidentials