title: Loop through error when checking http status code
body: <p>I have a list of websites and my goal is to check each of their status codes. I have the following, where <code>urls</code> is a list of websites.</p>
  <pre><code>for (i in seq_along(urls)) {
    r &lt;- GET(test[i])
    s &lt;- status_code(r)
  }
  </code></pre>
  <p>When I run the for loop, I get the message:
  <code>Error in curl::curl_fetch_memory(url, handle = handle) :  schannel: SNI or certificate check failed: SEC_E_WRONG_PRINCIPAL (0x80090322) - The target principal name is incorrect.</code></p>
  <p>I am thinking of handling this with <code>tryCatch</code> but I am not sure of the syntax or whether to place the entire for loop in <code>tryCatch</code>.</p>