added a custom error to start catching any http errors in a single place
added a check to make sure openssl is enabled