# Interface: FetchResponse<T>

Defined in: [api_types.ts:825](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/api_types.ts#L825)

The response of a call to [Fetcher.fetch](../Fetcher/#fetch).

The structure largely follows https://developer.mozilla.org/en-US/docs/Web/API/Response

## Type Parameters

| Type Parameter | Default type | | --- | --- | | `T` *extends* `any` | `any` |

## Properties

### body?

> `optional` **body**: `T`

Defined in: [api_types.ts:839](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/api_types.ts#L839)

The body of the response.

If the response contains JSON data, either because the Content-Type header is application/json or if the data is JSON-parsable, this will be a parsed JavaScript object. Similarly, if the response headers are text/xml or application/xml, this will be a parsed JavaScript object using the `xml2js` library.

If implicit parsing is undesirable, you may consider using [FetchRequest.isBinaryResponse](../FetchRequest/#isbinaryresponse) on the request to disable any parsing. Note however that this will result in the body being a NodeJS Buffer.

______________________________________________________________________

### headers

> **headers**: `object`

Defined in: [api_types.ts:843](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/api_types.ts#L843)

HTTP response headers. The contents of many headers will be redacted for security reasons.

#### Index Signature

\[`header`: `string`\]: `string` | `string`[] | `undefined`

______________________________________________________________________

### status

> **status**: `number`

Defined in: [api_types.ts:827](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/api_types.ts#L827)

The HTTP status code, e.g. `200`.
