Use https instead of http, print better error messages