create a better error enum for returning errors from the curl functions, including - wrapping up the curl error codes - io errors