<!--
{
  "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

[`kSCStatusOK`](/documentation/SystemConfiguration/kSCStatusOK)

The call was successful.

[`kSCStatusFailed`](/documentation/SystemConfiguration/kSCStatusFailed)

A nonspecific failure occurred.

[`kSCStatusInvalidArgument`](/documentation/SystemConfiguration/kSCStatusInvalidArgument)

An invalid argument was specified.

[`kSCStatusAccessError`](/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.

[`kSCStatusNoKey`](/documentation/SystemConfiguration/kSCStatusNoKey)

No such key.

[`kSCStatusKeyExists`](/documentation/SystemConfiguration/kSCStatusKeyExists)

[`kSCStatusLocked`](/documentation/SystemConfiguration/kSCStatusLocked)

A lock is already held.

[`kSCStatusNeedLock`](/documentation/SystemConfiguration/kSCStatusNeedLock)

A lock is required for this operation.

[`kSCStatusNoStoreSession`](/documentation/SystemConfiguration/kSCStatusNoStoreSession)

The configuration daemon session is not active.

[`kSCStatusNoStoreServer`](/documentation/SystemConfiguration/kSCStatusNoStoreServer)

The configuration daemon is not available or no longer available.

[`kSCStatusNotifierActive`](/documentation/SystemConfiguration/kSCStatusNotifierActive)

Notifier is currently active.

[`kSCStatusNoPrefsSession`](/documentation/SystemConfiguration/kSCStatusNoPrefsSession)

The preferences session is not active.

[`kSCStatusPrefsBusy`](/documentation/SystemConfiguration/kSCStatusPrefsBusy)

A preferences update is currently in progress.

[`kSCStatusNoConfigFile`](/documentation/SystemConfiguration/kSCStatusNoConfigFile)

The configuration file cannot be found.

[`kSCStatusNoLink`](/documentation/SystemConfiguration/kSCStatusNoLink)

No such link exists.

[`kSCStatusStale`](/documentation/SystemConfiguration/kSCStatusStale)

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

[`kSCStatusMaxLink`](/documentation/SystemConfiguration/kSCStatusMaxLink)

The maximum link count is exceeded.

[`kSCStatusReachabilityUnknown`](/documentation/SystemConfiguration/kSCStatusReachabilityUnknown)

Network reachability cannot be determined.

[`kSCStatusConnectionNoService`](/documentation/SystemConfiguration/kSCStatusConnectionNoService)

Network service for the connection is not available.

[`kSCStatusConnectionIgnore`](/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)