add error code for cannot init libcurl.