prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  AttributeError: url on Storage Exception when key not found
  When attempting to get a key that does not exist the exception for the `NotFoundError` is trying to reference `request.url` which does not exist.
  
  ``` py
  Traceback (most recent call last):
    [...]
      file_key = self.bucket.get_key(path)
    File "gcloud/storage/bucket.py", line 83, in get_key
      response = self.connection.api_request(method='GET', path=key.path)
    File "gcloud/storage/connection.py", line 212, in api_request
      raise exceptions.NotFoundError(response, content)
    File "gcloud/storage/exceptions.py", line 17, in __init__
      self.message = 'GET %s returned a 404.' % (response.url)
    File "httplib2/__init__.py", line 1680, in __getattr__
      raise AttributeError, name
  AttributeError: url
  ```
  
  
  </issue>
  <code>
  [start of gcloud/storage/exceptions.py]
  1 # TODO: Make these super useful.
  2 
  3 class StorageError(Exception):
  4   pass
  5 
  6 
  7 class ConnectionError(StorageError):
  8 
  9   def __init__(self, response, content):
  10     message = str(response) + content
  11     super(ConnectionError, self).__init__(message)
  12 
  13 
  14 class NotFoundError(ConnectionError):
  15 
  16   def __init__(self, response, content):
  17     self.message = 'GET %s returned a 404.' % (response.url)
  18 
  19 
  20 class StorageDataError(StorageError):
  21   pass
  22
  [end of gcloud/storage/exceptions.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/gcloud/storage/exceptions.py b/gcloud/storage/exceptions.py
  --- a/gcloud/storage/exceptions.py
  +++ b/gcloud/storage/exceptions.py
  @@ -14,7 +14,7 @@
   class NotFoundError(ConnectionError):
   
     def __init__(self, response, content):
  -    self.message = 'GET %s returned a 404.' % (response.url)
  +    self.message = 'Request returned a 404. Headers: %s' % (response)
   
   
   class StorageDataError(StorageError):
  
verification_info: {"golden_diff": "diff --git a/gcloud/storage/exceptions.py b/gcloud/storage/exceptions.py\n--- a/gcloud/storage/exceptions.py\n+++ b/gcloud/storage/exceptions.py\n@@ -14,7 +14,7 @@\n class NotFoundError(ConnectionError):\n \n   def __init__(self, response, content):\n-    self.message = 'GET %s returned a 404.' % (response.url)\n+    self.message = 'Request returned a 404. Headers: %s' % (response)\n \n \n class StorageDataError(StorageError):\n", "issue": "AttributeError: url on Storage Exception when key not found\nWhen attempting to get a key that does not exist the exception for the `NotFoundError` is trying to reference `request.url` which does not exist.\n\n``` py\nTraceback (most recent call last):\n  [...]\n    file_key = self.bucket.get_key(path)\n  File \"gcloud/storage/bucket.py\", line 83, in get_key\n    response = self.connection.api_request(method='GET', path=key.path)\n  File \"gcloud/storage/connection.py\", line 212, in api_request\n    raise exceptions.NotFoundError(response, content)\n  File \"gcloud/storage/exceptions.py\", line 17, in __init__\n    self.message = 'GET %s returned a 404.' % (response.url)\n  File \"httplib2/__init__.py\", line 1680, in __getattr__\n    raise AttributeError, name\nAttributeError: url\n```\n\n", "before_files": [{"content": "# TODO: Make these super useful.\n\nclass StorageError(Exception):\n  pass\n\n\nclass ConnectionError(StorageError):\n\n  def __init__(self, response, content):\n    message = str(response) + content\n    super(ConnectionError, self).__init__(message)\n\n\nclass NotFoundError(ConnectionError):\n\n  def __init__(self, response, content):\n    self.message = 'GET %s returned a 404.' % (response.url)\n\n\nclass StorageDataError(StorageError):\n  pass\n", "path": "gcloud/storage/exceptions.py"}]}