title: How to check status code 200 or not using swift?
body: <p>I am trying to validate my response status code is equal to 200 or not but == or != not working. Please give some sample.</p>
  
  <pre><code>JSON Response:{
      message = "registered Successfull";
      result =     {
          "created_by" = "2012-03-14 07:26:31";
          "created_ts" = "2013-03-14 07:26:31";
          "c_email" = "jk@mail.com";
          "c_lastname" = hi;
          "c_name" = sc;
          id = 123;
          login =         {
              authorization = z2VIownsD0Pr1jIMhJE;
          };
          "phone_no" = 123XXXX;
      };
      status = 1;
      "status_code" = 200;
  }
  </code></pre>
  
  <p>My Code below</p>
  
  <pre><code>let status_code = result["status_code"]  as? [String: AnyObject]           
  if (status_code! == "200") {
      print("ERROR:\(String(describing: status_code))")
  } else {
      let results = result["result"]  as? [String: AnyObject]
      if let login = results!["login"]  as? [String: AnyObject] {
          let authorization = login["authorization"] as? String
          print(authorization ?? "")
      }
      self.navigatepop() // Not working
  }
  </code></pre>