<!--
{
  "documentType" : "article",
  "framework" : "SystemConfiguration",
  "identifier" : "/documentation/SystemConfiguration/1518026-status-and-error-codes",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Status and Error Codes"
}
-->

# Status and Error Codes

The status or error code generated by the most recent System Configuration function call.

## Topics

### Constants

[`var kSCStatusOK: Int`](/documentation/SystemConfiguration/kSCStatusOK)

The call was successful.

[`var kSCStatusFailed: Int`](/documentation/SystemConfiguration/kSCStatusFailed)

A nonspecific failure occurred.

[`var kSCStatusInvalidArgument: Int`](/documentation/SystemConfiguration/kSCStatusInvalidArgument)

An invalid argument was specified.

[`var kSCStatusAccessError: Int`](/documentation/SystemConfiguration/kSCStatusAccessError)

Permission is denied; you must be root to obtain a lock. As a result, the function could not create or access preferences.

[`var kSCStatusNoKey: Int`](/documentation/SystemConfiguration/kSCStatusNoKey)

No such key.

[`var kSCStatusKeyExists: Int`](/documentation/SystemConfiguration/kSCStatusKeyExists)

[`var kSCStatusLocked: Int`](/documentation/SystemConfiguration/kSCStatusLocked)

A lock is already held.

[`var kSCStatusNeedLock: Int`](/documentation/SystemConfiguration/kSCStatusNeedLock)

A lock is required for this operation.

[`var kSCStatusNoStoreSession: Int`](/documentation/SystemConfiguration/kSCStatusNoStoreSession)

The configuration daemon session is not active.

[`var kSCStatusNoStoreServer: Int`](/documentation/SystemConfiguration/kSCStatusNoStoreServer)

The configuration daemon is not available or no longer available.

[`var kSCStatusNotifierActive: Int`](/documentation/SystemConfiguration/kSCStatusNotifierActive)

Notifier is currently active.

[`var kSCStatusNoPrefsSession: Int`](/documentation/SystemConfiguration/kSCStatusNoPrefsSession)

The preferences session is not active.

[`var kSCStatusPrefsBusy: Int`](/documentation/SystemConfiguration/kSCStatusPrefsBusy)

A preferences update is currently in progress.

[`var kSCStatusNoConfigFile: Int`](/documentation/SystemConfiguration/kSCStatusNoConfigFile)

The configuration file cannot be found.

[`var kSCStatusNoLink: Int`](/documentation/SystemConfiguration/kSCStatusNoLink)

No such link exists.

[`var kSCStatusStale: Int`](/documentation/SystemConfiguration/kSCStatusStale)

A write was attempted on a stale version of the object.

[`var kSCStatusMaxLink: Int`](/documentation/SystemConfiguration/kSCStatusMaxLink)

The maximum link count is exceeded.

[`var kSCStatusReachabilityUnknown: Int`](/documentation/SystemConfiguration/kSCStatusReachabilityUnknown)

Network reachability cannot be determined.

[`var kSCStatusConnectionNoService: Int`](/documentation/SystemConfiguration/kSCStatusConnectionNoService)

Network service for the connection is not available.

[`var kSCStatusConnectionIgnore: Int`](/documentation/SystemConfiguration/kSCStatusConnectionIgnore)

Network connection information is not available at this time.



---

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)