http client on data, end, error