ntlm: support libnettle.
Fix erroneous error codes when HTTP Digest Authentication fails.