【发布时间】:2017-10-03 14:12:57
【问题描述】:
我启动了一个 node.js http-server - "https://www.npmjs.com/package/http-server" 如果我在目录中键入一个不存在的文件,我会得到浏览器消息:
This localhost page can’t be found
No webpage was found for the web address: http://localhost:8080/foo
Search Google for localhost 8080 foo
HTTP ERROR 404
我的问题: 我可以以某种方式自定义此错误消息吗?
【问题讨论】:
标签: node.js http simplehttpserver