generalized reading http response