   else
     url = Url.parse req.url
 
-    four_oh_hour = (msg) ->
+    four_oh_four = (msg) ->
       log msg
       resp.writeHead 404, { }
       resp.write "Not Found"

              switch srcResp.statusCode
                when 200
                  if srcResp.statusCode == 200 && newHeaders['content-type'].slice(0, 5) != 'image'
                    four_oh_hour("Non-Image content-type returned")

                  log newHeaders


          srcReq.end()

        else
          four_oh_four("No host found")
      else
        four_oh_four("checksum mismatch")
    else
      four_oh_four("No pathname provided on the server")

console.log "SSL-Proxy running on #{port} with pid:#{process.pid}."
console.log "Using the secret key #{shared_key}"
