private function persistResponse(Response $response)
    {
        $headers = $response->headers->all();
        $headers['X-Status'] = [$response->getStatusCode()];

        return $headers;
    }
private function persistResponse(Response $response)
    {
        $headers = $response->headers->all();
        $headers['X-Status'] = [$response->getStatusCode()];

        return $headers;
    }
private function persistResponse ( Response $ response ) { $ headers = $ response -> headers -> all ( ) ; $ headers [ 'X-Status' ] = [ $ response -> getStatusCode ( ) ] ; return $ headers ; }
Persists the Response HTTP headers.

@return array An array of HTTP headers
Persists the Response HTTP headers .