Call res.end() if options are invalid