diff --git a/pkg/tool/http/http.go b/pkg/tool/http/http.go index d7e5f331e..fa55264b4 100644 --- a/pkg/tool/http/http.go +++ b/pkg/tool/http/http.go @@ -83,9 +83,11 @@ func (c *httpCmd) Run(ctx *task.Context) (res interface{}, err error) { // parse response body and headers return map[string]interface{}{ "response": map[string]interface{}{ - "body": string(b), - "header": resp.Header, - "trailer": resp.Trailer, + "status": resp.Status, + "statusCode": resp.StatusCode, + "body": string(b), + "header": resp.Header, + "trailer": resp.Trailer, }, }, err }