Add request header and response header parsing; Fix error message