s ` ](/en-US/docs/Web/API/Headers)
    2. [ ` Request ` ](/en-US/docs/Web/API/Request)
    3. [ ` fetch() ` ](/en-US/docs/Web/API/fetch)

##  In this article

  * Constructor 
  * Instance properties 
  * Static methods 
  * Instance methods 
  * Examples 
  * Specifications 
  * Browser compatibility 
  * See also 

#  Response

The **` Response ` ** interface of the [ Fetch API ](/en-
US/docs/Web/API/Fetch_API) represents the response to a request.

You can create a new ` Response ` object using the [ ` Response() ` ](/en-
US/docs/Web/API/Response/Response "Response\(\)") constructor, but you are
more likely to encounter a ` Response ` object being returned as the result of
another API operationâfor example, a service worker [ `
FetchEvent.respondWith ` ](/en-US/docs/Web/API/FetchEvent/respondWith) , or a
simple [ ` fetch() ` ](/en-US/docs/Web/API/fetch) .

##  Constructor

[ ` Response() ` ](/en-US/docs/Web/API/Response/Response "Response\(\)")

    

Creates a new ` Response ` object.

##  Instance properties

[ ` Response.body ` ](/en-US/docs/Web/API/Response/body) Read only

    

A [ ` ReadableStream ` ](/en-US/docs/Web/API/ReadableStream) of the body
contents.

[ ` Response.bodyUsed ` ](/en-US/docs/Web/API/Response/bodyUsed) Read only

    

Stores a boolean value that declares whether the body has been used in a
response yet.

[ ` Response.headers ` ](/en-US/docs/Web/API/Response/headers) Read only

    

The [ ` Headers ` ](/en-US/docs/Web/API/Headers) object associated with the
response.

[ ` Response.ok ` ](/en-US/docs/Web/API/Response/ok) Read only

    

A boolean indicating whether the response was successful (status in the range
` 200 ` â ` 299 ` ) or not.

[ ` Response.redirected ` ](/en-US/docs/Web/API/Response/redirected) Read only

    

Indicates whether or not the response is the result of a redirect (that is,
its URL list has more than one entry).

[ ` Response.status ` ](/en-US/docs/Web/API/Response/status) Read only

    

The status code of the response. (This will be ` 200 ` for a success).

[ ` Response.statusText ` ](/en-US/docs/Web/API/Response/statusText) Read only

    

The status message corresponding to the status code. (e.g., ` OK ` for ` 200 `
).

[ ` Response.type ` ](/en-US/docs/Web/API/Response/type) Read only

    

The type of the response (e.g., ` basic ` , ` cors ` ).

[ ` Response.url ` ](/en-US/docs/Web/API/Response/url) Read only

    

The URL of the response.

##  Static methods

[ ` Response.error() ` ](/en-US/docs/Web/API/Response/error_static
"Response.error\(\)")

    

Returns a new ` Response ` object associated with a network error.

[ ` Response.redirect() ` ](/en-US/docs/Web/API/Response/redirect_static
"Response.redirect\(\)")

    

Returns a new response with a different URL.

[ ` Response.json() ` ](/en-US/docs/Web/API/Response/json_static
"Response.json\(\)")

    

Returns a new ` Response ` object for returning the provided JSON encoded
data.

##  Instance methods

[ ` Response.arrayBuffer() ` ](/en-US/docs/Web/API/Response/arrayBuffer)

    

Returns a promise that resolves with an [ ` ArrayBuffer ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) representation of
the response body.

[ ` Response.blob() ` ](/en-US/docs/Web/API/Response/blob)

    

Returns a promise that resolves with a [ ` Blob ` ](/en-US/docs/Web/API/Blob)
representation of the response body.

[ ` Response.clone() ` ](/en-US/docs/Web/API/Response/clone)

    

Creates a clone of a ` Response ` object.

[ ` Response.formData() ` ](/en-US/docs/Web/API/Response/formData)

    

Returns a promise that resolves with a [ ` FormData ` ](/en-
US/docs/Web/API/FormData) representation of the response body.

[ ` Response.json() ` ](/en-US/docs/Web/API/Response/json)

    

Returns a promise that resolves with the result of parsing the response body
text as [ ` JSON ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON)
.

[ ` Response.text() ` ](/en-US/docs/Web/API/Response