 
   _timeout: options.timeout
 
-  _onError: options.onError or handle500
+  _onError: options.onError or default500
 
 # The root request handler.
 onRequest = (req, res) ->

  setProto res, Response

  # The default 404 response handler.
  req.next = handle404

  # Prevent long-running requests.
  if app._timeout > 0

    return

# Attached to the request object.
default404 = (res) ->
  res.status 404
  res.send {error: "Nothing exists here. Sorry!"}
  return

# The default handler when the server throws an error.
default500 = (error, res) ->

  log.moat 1
  log.white error.stack
