<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CFNetwork",
  "identifier" : "/documentation/CFNetwork/CFStreamErrorHTTPAuthentication",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "CFNetwork"
    ],
    "preciseIdentifier" : "c:@E@CFStreamErrorHTTPAuthentication"
  },
  "title" : "CFStreamErrorHTTPAuthentication"
}
-->

# CFStreamErrorHTTPAuthentication

Authentication error codes that may be returned when trying to apply authentication to a request.

```
enum CFStreamErrorHTTPAuthentication
```

## Topics

### Constants

[`kCFStreamErrorHTTPAuthenticationTypeUnsupported`](/documentation/CFNetwork/CFStreamErrorHTTPAuthentication/typeUnsupported)

Specified authentication type is not supported.

[`kCFStreamErrorHTTPAuthenticationBadUserName`](/documentation/CFNetwork/CFStreamErrorHTTPAuthentication/badUserName)

User name is in a format that is not suitable for the request. Currently, user names are decoded using `kCFStringEncodingISOLatin1`.

[`kCFStreamErrorHTTPAuthenticationBadPassword`](/documentation/CFNetwork/CFStreamErrorHTTPAuthentication/badPassword)

Password is in a format that is not suitable for the request. Currently, passwords are decoded using `kCFStringEncodingISOLatin1`.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)