<!--
{
  "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/CFNetServicesError",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "CFNetwork"
    ],
    "preciseIdentifier" : "c:@E@CFNetServicesError"
  },
  "title" : "CFNetServicesError"
}
-->

# CFNetServicesError

Error codes that may be returned by CFNetServices functions or passed to CFNetServices callback functions.

```
enum CFNetServicesError
```

## Topics

### Constants

[`kCFNetServicesErrorUnknown`](/documentation/CFNetwork/CFNetServicesError/unknown)

An unknown CFNetService error occurred.

[`kCFNetServicesErrorCollision`](/documentation/CFNetwork/CFNetServicesError/collision)

An attempt was made to use a name that is already in use.

[`kCFNetServicesErrorNotFound`](/documentation/CFNetwork/CFNetServicesError/notFound)

Not used.

[`kCFNetServicesErrorInProgress`](/documentation/CFNetwork/CFNetServicesError/inProgress)

A search is already in progress.

[`kCFNetServicesErrorBadArgument`](/documentation/CFNetwork/CFNetServicesError/badArgument)

A required argument was not provided.

[`kCFNetServicesErrorCancel`](/documentation/CFNetwork/CFNetServicesError/cancel)

The search or service was canceled.

[`kCFNetServicesErrorInvalid`](/documentation/CFNetwork/CFNetServicesError/invalid)

Invalid data was passed to a CFNetServices function.

[`kCFNetServicesErrorTimeout`](/documentation/CFNetwork/CFNetServicesError/timeout)

Resolution failed because the timeout was reached.

### Enumeration Cases

[`kCFNetServicesErrorMissingRequiredConfiguration`](/documentation/CFNetwork/CFNetServicesError/missingRequiredConfiguration)

A required configuration for local network access is missing.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)