Hoek.assert(options.handler||(options.config&&options.config.handler),'Missing or undefined handler:',options.method,options.path);
Hoek.assert(!!options.handler^!!(options.config&&options.config.handler),'Handler must only appear once:',options.method,options.path);// XOR
Hoek.assert(options.path==='/'||options.path[options.path.length-1]!=='/'||!server.settings.router.stripTrailingSlash,'Path cannot end with a trailing slash when server configured to strip:',options.method,options.path);
Hoek.assert(!this.settings.payload,'Cannot set payload settings on HEAD or GET request:',options.path);
Hoek.assert(!this.settings.validate.payload,'Cannot validate HEAD or GET requests:',options.path);
}
Hoek.assert(!this.settings.validate.payload||this.settings.payload.parse,'Route payload must be set to \'parse\' when payload validation enabled:',options.method,options.path);