public function parseResponse($response, $headers = [])
{
$objects = [];
if ($this->code == '300') {
$position = strpos($headers[Http::CONTENT_TYPE_KEY], 'boundary=');
$boundary = '--' . substr($headers[Http::CONTENT_TYPE_KEY], $position + 9);
$objects = $this->parseSiblings($response, $boundary, $headers[Http::VCLOCK_KEY]);
} elseif (in_array($this->code, ['200', '201', '204'])) {
$objects[] = $this->parseObject($response, $headers);
}
return $objects;
}