title: iOS: Where to find the full list of OSStatus codes for iOS?
body: <p>I can easily find <code>noErr = 0</code> in the OS X library source code. But it's pretty hard to find a full list of error code for <code>OSStatus</code> on iOS. </p>
  
  <p>On Mac OS X, it's not that hard to find stuff like</p>
  
  <pre><code>kAudioHardwareUnsupportedOperationError
  </code></pre>
  
  <p>But I can't seem to find useful info for iOS OSStatus codes. It would be nice to have a full list of them or any pointers to the header files that define them.</p>
  
  <p>Thanks!</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I don't think my question is a duplicate of the above question. The op of that "possible duplicate" question wanted to convert the 4-char codes he already knew into human-readable strings. Instead, here is my further spec:</p>
  
  <p>I don't even know what 4-char or typedefed integers to use for iOS.
  I'd like to see something like a full list of codes, like you would normally see in many C++ framework/library design, e.g., an enum list, or standard exceptions, or even the OSX k-something codes, which at least can be found in the Xcode docs alone.</p>
  
  <p>My usecases of these codes include:</p>
  
  <p>In my custom functions, e.g., some CoreAudio callbacks that have to return OSStatus, I'd like to return these built-in human-readable codes to indicate the types of runtime errors. Without the list, I don't know what to return, other than noErr.</p>
  
  <p>Apparently, many OSX k-codes are undefined under iOS environment so they can't be used transparently.</p>
  
  <p><strong>UPDATE (CONCLUSION):</strong></p>
  
  <p>I finally found a clue: Search for keyword "Result Codes" in Xcode documentation (Organizer) and we get more or less categorized return codes documentation sections in the "System Guides" result. This is good enough for my original question. –</p>