title: getReasonPhrase() in HTTP for iOS
body: <p>In Android we can use <code>getReasonPhrase()</code> in HTTP Client:</p>
  
  <pre><code>HttpResponse response = httpClient.execute(getRequest);
  System.print.out(response.getStatusLine().getReasonPhrase());
  </code></pre>
  
  <p>Which can be <code>ok</code>, <code>Not Found</code>, <code>Created</code> or whatever from Web Service.</p>
  
  <p>How we can get it in Objective-C ?</p>
  
  <p>This is the way that I could receive the <code>status Code</code>:</p>
  
  <pre><code>NSURLResponse *resp
  NSHTTPURLResponse* httpResponse = (NSHTTPURLResponse*)resp;
  int responseStatusCode = [httpResponse statusCode];
  NSLog(@"%i", responseStatusCode);
  </code></pre>
  
  <p>How about <code>getReasonPhrase()</code>?</p>