Simple httpclient to fetch a URL and return status code