【发布时间】:2015-02-12 07:49:10
【问题描述】:
当从我的 Hapi 路由回复 Boom 错误时...
{
method: 'PUT',
path:'foo',
handler: function (request, reply) {
reply(Boom.badRequest('something', { stuff: 'and more' }));
}
}
...我得到以下响应:
{"statusCode":400,"error":"Bad Request","message":"something"}
缺少提供错误详细信息的数据对象!有什么关系?
【问题讨论】:
-
hapi 的哪个版本?
-
7.2.0.用我发现的内容发布“答案”。
标签: javascript hapijs