Added CurlError in curl namespace, changed some methods return type