RangeError:无效状态码:0节点中的错误,表示?

如果我给这样的错误信息工作正常没有问题

res.status(401).send('not found, please register'); 

但是当我改变到这一个我得到错误

 return res.status('EXTINF-10202').json({ 'message': 'not found, please register' }); 

我得到这样的错误

 F:\test\node_modules\mongoose\node_modules\mongodb\lib\utils.js:97 process.nextTick(function() { throw err; }); ^ RangeError: Invalid status code: 0 at ServerResponse.writeHead (_http_server.js:192:11) at ServerResponse.writeHead (F:\test\node_modules\on-headers\index.js: 55:19) at ServerResponse.res.writeHead (F:\test\node_modules\express-session\ index.js:169:17) at ServerResponse._implicitHeader (_http_server.js:157:8) at ServerResponse.res.write (F:\test\node_modules\compression\index.js :90:14) at ServerResponse.res.end (F:\test\node_modules\compression\index.js:1 11:14) at F:\test\node_modules\express-session\index.js:182:13 at F:\test\node_modules\connect-mongo\lib\connect-mongo.js:365:9 at handleCallback (F:\test\node_modules\mongoose\node_modules\mongodb\ lib\utils.js:95:12) at F:\test\node_modules\mongoose\node_modules\mongodb\lib\collection.j s:666:5 at F:\test\node_modules\mongoose\node_modules\mongodb-core\lib\topolog ies\server.js:795:13 at Callbacks.emit (F:\test\node_modules\mongoose\node_modules\mongodb- core\lib\topologies\server.js:94:3) at Connection.messageHandler (F:\test\node_modules\mongoose\node_modul es\mongodb-core\lib\topologies\server.js:235:23) at Socket.<anonymous> (F:\test\node_modules\mongoose\node_modules\mong odb-core\lib\connection\connection.js:259:22) at emitOne (events.js:96:13) at Socket.emit (events.js:188:7) 

       

网上收集的解决方案 "RangeError:无效状态码:0节点中的错误,表示?"