protected function createResponse($statusCode, $url, $headers, $body, $effectiveUrl = null)
    {
        return new HttpResponse($statusCode, $url, $this->createHeaders($headers), $body, $effectiveUrl);
    }