title: Is checking "http_status / 100 != 2" better than "http_status != 200"
body: <p>When talking about HTTPUrlConnection on his <a href="http://www.tbray.org/ongoing/When/201x/2012/01/17/HttpURLConnection" rel="noreferrer">blog</a> Tim Bray gives us the following snippet for checking the HTTP status code </p>
  
  <pre><code>// better check it first
  if (http_status / 100 != 2) {
    // redirects, server errors, lions and tigers and bears! Oh my!
  }
  </code></pre>
  
  <p>Is <strong>http_status / 100 != 2</strong> better or faster than <strong>http_status != 200</strong></p>