---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Response()

The **`Response()`** constructor creates a new `Response` object.

## Syntax

```js
new Response()
new Response(body)
new Response(body, options)
```

### Parameters

- `body` _**optional**_

  - : An object defining a body for the response. This can be `null` (which is
    the default value), or one of:

    - [`ArrayBuffer`](../../globals/ArrayBuffer/ArrayBuffer.mdx)
    - `TypedArray`
    - [`DataView`](../../globals/DataView/DataView.mdx)
    - [`ReadableStream`](../../globals/ReadableStream/ReadableStream.mdx)
    - [`URLSearchParams`](../../globals/URLSearchParams/URLSearchParams.mdx)
    - [`String`](../../globals/String/String.mdx)
    - string literal

- `options` _**optional**_

  - : An options object containing any custom settings that you want to apply to the
    response, or an empty object (which is the default value). The possible options are:

    - `status`
      - : The status code for the response, e.g., `200`.
    - `statusText`
      - : The status message associated with the status code,
        e.g., `OK`.
    - `headers`
      - : Any headers you want to add to your response, contained
        within a [`Headers`](../../globals/Headers/Headers.mdx) object or object literal of
        [`String`](../../globals/String/String.mdx) key/value pairs.
