---
url: "https://vueda.dev/v3/reference/api/js/utils/errors/ConfirmationRequiredError/methods/constructor.md"
title: "constructor"
---

# constructor

## Signature

`constructor(responseData, response, options)`

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-responseData">responseData</span> | `any` | yes | The decoded 409 body: `{ confirmation_required, digest, warnings }`. |
| <span id="param-response">response</span> | `Response` | yes | The response object associated with the error. |
| <span id="param-options">options</span> | `object` | no |  |

#### options Properties

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="param-options-bulk">bulk</span> | `boolean` |  |  | Whether `messages` uses the per-object  `{object_id: {field: [messages]}}` shape (`true`) or the aggregate `{field: [messages]}` shape  (`false`). The server chooses this shape by request path, not by how many objects the request  affects. The caller that issued the request is the only place that knows which path it took,  so it must supply this option; it cannot be recovered from `responseData` alone. |

### Returns

[ConfirmationRequiredError](/v3/reference/api/js/utils/errors/members/ConfirmationRequiredError.md)

## Source

`client/lib/utils/errors.js:266`
