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


# TODO: Support custom "500 Internal Error" page.

assertTypes = require "assertTypes"
assertType = require "assertType"

  secure: Boolean
  maxHeaders: Number
  timeout: Number
  onError: Function

type.defineValues (options) ->

