           src = Http.createClient url.port || 80, url.hostname
 
           src.on 'error', (error) ->
-            console.log("Client Request error #{error.stack}")
-            resp.writeHead 404, { }
-            resp.write "Not Found"
-            resp.end()
+            four_oh_hour("Client Request error #{error.stack}")
 
           query_path = url.pathname
           if url.query?

                  resp.writeHead srcResp.statusCode, newHeaders

                else
                  console.log("Responded with #{srcResp.statusCode}")
                  resp.writeHead 404, { }
                  resp.write "Not Found"
                  resp.end()

          srcReq.on 'error', ->
            resp.end()


          transferred_headers.host = url.host

          log transferred_headers

          srcReq = src.request 'GET', query_path, transferred_headers

          srcReq.on 'response', (srcResp) ->
            log srcResp.headers

            content_length  = srcResp.headers['content-length']

            if(content_length > 5242880)
              four_oh_hour("Content-Length exceeded")
            else
              newHeaders =
                'expires'                : srcResp.headers['expires']
