use parse_http_response to parse the backend response