title: Can I access "Reason Phrase" from the HTTP Status-Line in NSHTTPURLResponse
body: <p>RFC 2616 specifying HTTP says - in section 6.1.1 - that part of the Status-Line is a 3-digit numeric Status Code AND a textual "Reason Phrase".</p>
  
  <p>I am building an iPhone app, that is using NSURLConnection to access data over HTTP. I can get the HTTP Status Code without problems, but how can I access the "Reason Phrase"?</p>
  
  <p>Here's my connection:didReceiveResponse: method</p>
  
  <pre><code>- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response {
      NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *)response;
  
      httpStatusCode = [httpResponse statusCode];
      // Reason Phrase ??
  }
  </code></pre>
  
  <p>To be specific, I do NOT mean the "explanation of what a code xxx means" text. I can lookup that in the RFC and those are static. I mean the text the server produced in the status line. An example of such a status line would be:</p>
  
  <pre><code>HTTP/1.1 412 ClientAppVersion: 0.10 &lt; 0.11
  </code></pre>
  
  <p>and the Reason Phrase would be "ClientAppVersion: 0.10 &lt; 0.11" here. </p>
  
  <p>This example also gives a hint at what I am trying to do. I am building a REST-like API, and as such, I should use the HTTP status codes to indicate errors. But HTTP status codes were invented for HTTP and not for my app, so I try to cram extra information into the Reason Phrase.</p>