Fixed check_auth in ClientHttp

check_auth in ClientHttp will now raise an error when it
encounters an unexpected HTTP return code