macos
macOS OSStatus Error Codes
OSStatus result codes returned by classic Carbon/File Manager APIs and modern frameworks (Security, CoreServices) on macOS. Many still surface today in Finder alerts, AppleScript errors, and framework error domains such as NSOSStatusErrorDomain.
19 codes
references developer.apple.com/documentation/kernel/1542943-issecurityerroropensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/MacErrors.h
· All codes 19 codes
- bdNamErr Bad filename or volume name The supplied name contains characters that are not permitted, or is otherwise malformed for the target file system.
- dskFulErr Disk full There is not enough free space on the volume to complete the requested operation.
- dupFNErr Duplicate filename An item with the same name already exists in the destination directory.
- eofErr End of file An attempt was made to read data past the physical end of the file.
- errSecAuthFailed Keychain authorization failed Authorization or authentication for the requested keychain operation failed.
- errSecDuplicateItem Duplicate keychain item An item with the same primary key attributes already exists in the keychain.
- errSecInteractionNotAllowed User interaction not allowed The operation requires user interaction, such as an unlock prompt, but interaction is not allowed in the current context (e.g. before login or in a background process).
- errSecItemNotFound Keychain item not found The specified item could not be found in the keychain.
- fLckdErr File is locked The file cannot be modified because its locked attribute is set.
- fnfErr File not found The requested file could not be located on the specified volume. Commonly surfaced by Finder as error -43.
- ioErr I/O error A low-level input/output error occurred while reading from or writing to a volume. Commonly surfaced by Finder as error -36 during file copies.
- memFullErr Not enough memory The application's heap does not have enough free memory available to complete the requested operation.
- nsvErr No such volume The volume referenced by the operation could not be found; it may have been unmounted or ejected.
- opWrErr File already open for writing Another process already has the file open with write permission, so it cannot be opened for writing again.
- paramErr Parameter error A function or Carbon API call received an invalid parameter in its argument list.
- permErr Permission error The file could not be opened because of a file permissions conflict.
- unimpErr Unimplemented core routine The requested core routine or feature is not implemented on this system.
- userCanceledErr User canceled The user canceled the operation, typically via a Cancel button or the Command-period keyboard shortcut.
- vLckdErr Volume is locked or read-only The operation requires write access, but the volume is locked or mounted read-only.