add http response map fn