title: NSURLConnection sendSynchronousRequest response is nil upon invalid credential
body: <p>I'm getting a weird behavior where using <code>sendSynchronousRequest</code> or <code>sendAsynchronousRequest</code> with invalid credential will make the nsurlresponse nil. But the old way with the <code>[[NSURLConnection alloc] initWithRequest:request delegate:self];</code> I get the 401 response code. </p>
  
  <p>The error value using the  <code>sendSynchronousRequest</code> or <code>sendAsynchronousRequest</code> is</p>
  
  <blockquote>
    <p><code>Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be
    completed. (NSURLErrorDomain error -1012.)" UserInfo=0x756ecb0
    {NSErrorFailingURLKey=myurl,
    NSErrorFailingURLStringKey=myurl,
    NSUnderlyingError=0x75704d0 "The operation couldn’t be completed.
    (kCFErrorDomainCFNetwork error -1012.)"</code></p>
  </blockquote>
  
  <p>Does someone have a clue as to why it is like that? Any information on this is appreciated. I was expecting to get a 401 response from  <code>sendSynchronousRequest</code> or <code>sendAsynchronousRequest</code></p>
  
  <p>Thanks,</p>