---
title: Error Subdomains
framework: corefoundation
role: collectionGroup
path: corefoundation/error-subdomains
---

# Error Subdomains

Subdomains used to determine how to interpret an error in the kCFStreamErrorDomainSOCKS domain.

## Overview

Overview Error codes in the kCFStreamErrorDomainSOCKS domain can come from multiple parts of the protocol stack, many of which define their own error values as part of outside specifications such as the HTTP specification. To avoid confusion from conflicting error numbers, error codes in the kCFStreamErrorDomainSOCKS domain contain two parts: a subdomain, which tells which part of the protocol stack generated the error, and the error code itself. Calling CFSocketStreamSOCKSGetErrorSubdomain(_:) returns an identifier that tells which layer of the protocol stack produced the error. This list of constants contains the possible values that this function will return. Calling CFSocketStreamSOCKSGetError(_:) returns the actual error code that the subdomain describes.

## Topics

### Constants

- [kCFStreamErrorSOCKSSubDomainNone](cfnetwork/kcfstreamerrorsockssubdomainnone.md)
- [kCFStreamErrorSOCKSSubDomainVersionCode](cfnetwork/kcfstreamerrorsockssubdomainversioncode.md)
- [kCFStreamErrorSOCKS4SubDomainResponse](cfnetwork/kcfstreamerrorsocks4subdomainresponse.md)
- [kCFStreamErrorSOCKS5SubDomainUserPass](cfnetwork/kcfstreamerrorsocks5subdomainuserpass.md)
- [kCFStreamErrorSOCKS5SubDomainMethod](cfnetwork/kcfstreamerrorsocks5subdomainmethod.md)
- [kCFStreamErrorSOCKS5SubDomainResponse](cfnetwork/kcfstreamerrorsocks5subdomainresponse.md)

## See Also

### Constants

- [CFStreamStatus](corefoundation/cfstreamstatus.md)
- [CFStreamErrorDomain](corefoundation/cfstreamerrordomain.md)
- [CFStream Error Domain Constants (CFHost)](corefoundation/cfstream-error-domain-constants-cfhost.md)
- [Secure Sockets (SOCKS) Errors](cfnetwork/1518266-secure-sockets-socks-errors.md)
- [CFStreamEventType](corefoundation/cfstreameventtype.md)
- [Stream Properties](corefoundation/stream-properties.md)
- [CFStream Property SSL Settings Constants](corefoundation/cfstream-property-ssl-settings-constants.md)
- [CFStream Socket Security Level Constants](corefoundation/cfstream-socket-security-level-constants.md)
- [CFStream SOCKS Proxy Key Constants](corefoundation/cfstream-socks-proxy-key-constants.md)
- [Stream Service Types](corefoundation/stream-service-types.md)
