         if req.method is 'GET' or req.method is 'HEAD'
           next()
         else
-          heck req, res, "
+          heck.handler req, res, "
 Route '#{req.url}' not found, the '#{req.method}' method not allowed further.",
             405
 

  # Middlewares
  app.use express.logger()

  # Some configuration options made available through `req`.
  app.use (req, res, next) ->
    req.errorHandlerOptions ?=
      platesDir: app_path + "/public"
      templates:
        "4xx": "/codes/4xx.html"
        "5xx": "/codes/5xx.html"
      debugClass: "debug-hand"
    next()

  # Routing...
  app.use (req, res, next) ->

  vfs = require('vfs-local') root: "#{app_path}/public"
  app.use require('vfs-http-adapter') '/', vfs,
    readOnly: true
    errorHandler: heck.handler


# Catch and log any exceptions that may bubble to the top.
