Shortcut to get the response code from a URL