title: SSErrorDomain, SKReceiptRefreshRequest, SKRequest did fail with error, code = 16, code = 110
body: <p><strong>iOS 9.2.1, Xcode 7.2.1, ARC enabled</strong></p>
  
  <p>I am using the following method to check for failures of <code>SKProductsRequest</code> and <code>SKReceiptRefreshRequest</code>:</p>
  
  <pre><code>- (void)request:(SKRequest *)request didFailWithError:(NSError *)error
  {
      NSLog(@"error: %@", error);
  }
  </code></pre>
  
  <p>My question is specifically about <code>SKReceiptRefreshRequest</code>.  I am testing for two conditions, (1) when the user cancels the sign-in to iTunes Store for the receipt request and (2) when the user tries to sign-in and there is no connection (Air Plane Mode).</p>
  
  <p>I get the following errors:</p>
  
  <p>When there is no connection:</p>
  
  <blockquote>
    <p>Error Domain=SSErrorDomain Code=110 "Cannot connect to iTunes Store"
    UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store,
    NSUnderlyingError=0x13c76d680 {Error Domain=NSURLErrorDomain
    Code=-1009 "Cannot connect to iTunes Store"
    UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store,
    NSErrorFailingURLStringKey=</p>
    
    <p>{ your product ids and corresponding URIs here }</p>
    
    <p>, _kCFStreamErrorCodeKey=8, _kCFStreamErrorDomainKey=12,
    NSLocalizedDescription=The Internet connection appears to be
    offline.}}}</p>
  </blockquote>
  
  <p>When the user taps cancel:</p>
  
  <blockquote>
    <p>Error Domain=SSErrorDomain Code=16 "Cannot connect to iTunes Store"
    UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store,
    NSUnderlyingError=0x13c6ac7b0 {Error Domain=AKAuthenticationError
    Code=-7003 "(null)"}}</p>
  </blockquote>
  
  <p>I have used the raw error codes to differentiate between the errors and trigger the appropriate UI events to handle the error state.  But I've been doing it without understanding what the underlying error is.</p>
  
  <p><strong>The common error domain between the two is SSErrorDomain.</strong></p>
  
  <p><em>Could someone please elaborate on what the SSErrorDomain is and what framework it belongs to?  Also, could you provide some helpful documentation about all of the possible error codes for this domain?</em></p>
  
  <p>Thanks in advance!</p>