more robust checking for status code

There were a few more unintended false positives appearing due to the previous change, mainly when the url is a redirect. By checking only the first one (by using `head`), only the redirect code would be caught. This way, it’ll fetch the last response, and me more robust.