# createPullResponse

> **createPullResponse**(`status`, `pieces`): [`PullResponse`](/reference/filoz/synapse-core/sp/type-aliases/pullresponse/)

Defined in: [packages/synapse-core/src/mocks/pdp.ts:500](https://github.com/FilOzone/synapse-sdk/blob/b11ef4f7e3c201d8bba29973a09628063e6547b1/packages/synapse-core/src/mocks/pdp.ts#L500)

Helper to create a complete PullResponse

## Parameters

| Parameter | Type |
| ------ | ------ |
| `status` | [`PullStatus`](/reference/filoz/synapse-core/sp/type-aliases/pullstatus/) |
| `pieces` | `object`[] |

## Returns

[`PullResponse`](/reference/filoz/synapse-core/sp/type-aliases/pullresponse/)