---
title: kCFSOCKSStatusCodeKey
framework: cfnetwork
role: symbol
role_heading: Global Variable
path: cfnetwork/kcfsocksstatuscodekey
---

# kCFSOCKSStatusCodeKey

## Declaration

```swift
let kCFSOCKSStatusCodeKey: CFString
```

## Discussion

Discussion When a SOCKS error occurs, querying this key returns the last status code sent by the SOCKS server in response to the previous operation.

## See Also

### Constants

- [kCFURLErrorFailingURLErrorKey](cfnetwork/kcfurlerrorfailingurlerrorkey.md)
- [kCFURLErrorFailingURLStringErrorKey](cfnetwork/kcfurlerrorfailingurlstringerrorkey.md)
- [kCFGetAddrInfoFailureKey](cfnetwork/kcfgetaddrinfofailurekey.md)
- [kCFSOCKSVersionKey](cfnetwork/kcfsocksversionkey.md)
- [kCFSOCKSNegotiationMethodKey](cfnetwork/kcfsocksnegotiationmethodkey.md)
- [kCFDNSServiceFailureKey](cfnetwork/kcfdnsservicefailurekey.md)
- [kCFFTPStatusCodeKey](cfnetwork/kcfftpstatuscodekey.md)
