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

    return

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

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

  log.moat 1
  log.white error.stack

  setProto res, Response

  # The default 404 response handler.
  req.next = default404.bind req, res

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