> **Experimental**
>
> `@aws-cdk/integ-tests-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# HttpResponse

Response from fetch.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/assertions/providers/lambda-handler/types.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/integ-tests-alpha/lib/assertions/providers/lambda-handler/types.ts#L92)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as integ_tests_alpha from '@aws-cdk/integ-tests-alpha';

declare const body: any;
declare const headers: any;
const httpResponse: integ_tests_alpha.HttpResponse = {
  body: body,
  headers: {
    headersKey: headers,
  },
  ok: false,
  status: 123,
  statusText: 'statusText',
};
```

## Properties

- `body`: any — The response, either as parsed JSON or a string literal.

- `headers`: { [key: string]: any } — Headers associated with the response.

- `ok`: boolean — Indicates whether the response was successful.

  status range 200-299

- `status`: number — Status code of the response.

- `statusText`: string — The status message corresponding to the status code.
