title: How To Check Response.statusCode in sendSynchronousRequest on Swift
body: <p>How To check response.statusCode in SendSynchronousRequest in Swift
  The Code is Below :</p>
  
  <pre><code>let urlPath: String = "URL_IS_HERE"
  var url: NSURL = NSURL(string: urlPath)
  var request: NSURLRequest = NSURLRequest(URL: url)
  var response: AutoreleasingUnsafeMutablePointer&lt;NSURLResponse?&gt; = nil
  
  var error: NSErrorPointer? = nil
  var data = NSURLConnection.sendSynchronousRequest(request, returningResponse: response, error: nil) as NSData?
  </code></pre>
  
  <p>before and in objective c , we check response.statusCode With this :
        (long)response.statusCode
  but in swift i have no idea how can check response status Code</p>