Separate curl error and curl error code from http error and http error code