private function prettifyHeaders(array $headers)
    {
        return array_reduce(
            array_filter($headers),
            function ($result, $header) {

                if (false === strpos($header, ':')) {
                    $result['Status'] = trim($header);

                    return $result;
                }

                list($key, $value) = explode(':', $header, 2);
                $result[trim($key)] = trim($value);

                return $result;
            },
            []
        );
    }