# 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/d9d7ff65cc57a0664db3a209a0d25c3a4d4e34f0/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/)