---
title: ReadableStreamBYOBRequest.respond()
slug: Web/API/ReadableStreamBYOBRequest/respond
tags:
  - API
  - Experimental
  - Method
  - ReadableStreamBYOBRequest
  - Reference
  - Streams
  - respond
browser-compat: api.ReadableStreamBYOBRequest.respond
---
{{draft}}{{SeeCompatTable}}{{APIRef("Streams")}}

The **`error()`** method of the
{{domxref("ReadableStreamBYOBRequest")}} interface xxx

## Syntax

```js
readableStreamBYOBRequestInstance.respond(bytesWritten);
```

### Parameters

- _bytesWritten_
  - : xxx

### Return value

Void.

### Exceptions

- TypeError
  - : The source object is not a `ReadableStreamBYOBRequest`, or there is no
    associated controller, or the associated internal array buffer is detached.

## Examples

TBD.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
