title: How to get the status code from HTTP Get in swift?
body: <p>I have try the following code to implement HTTP Get in IOS Swift.</p>
  
  <pre><code>NSURLConnection.sendAsynchronousRequest(request, queue: queue, completionHandler: {(response: NSURLResponse!, data: NSData!,error: NSError!) -&gt; Void in
  
              var jsonResult: NSDictionary = NSJSONSerialization.JSONObjectWithData(data, options: NSJSONReadingOptions.MutableContainers, error: nil) as NSDictionary
              println("response = \(response)")
          })
  </code></pre>
  
  <p>It success and show the following response:</p>
  
  <pre><code>response = &lt;NSHTTPURLResponse: 0x155xxxxx&gt; { URL: http://xxx.xx.xxx.xxx:38080/getid/user-wiced1 } 
  { status code: 200, headers {
      "Content-Length" = 111;
      "Content-Type" = "application/json; charset=UTF-8";
      Date = "Thu, 08 Jan 2015 07:31:21 GMT";
      Server = "spray-can/1.3.2-20140909";
  } }
  </code></pre>
  
  <p>How to get the <code>status code</code> from <code>NSURLResponse</code> ? </p>
  
  <p>Thanks in advance.</p>