Persists the Response HTTP headers.
Response $response A Response instance:
array An array of HTTP headers
private function persistResponse(Response $response) {
$headers = $response->headers
->all();
$headers['X-Status'] = array(
$response
->getStatusCode(),
);
return $headers;
}