Skip to content

回复:bitcoind 不响应 RPC ​

原始发布页

打开来源页面
查看 1 个交叉存档

谁能确认一下,通过 HTTP 使用 JSON-RPC 时,如果回复是错误回复,是否应该使用状态码 500?我不记得自己是从哪里得知这一点的,也许这是错的。除非 HTTP 请求机制本身出了问题,否则 200 似乎更合理。(也许原本说的就是这个,只是我忘了,还把 500 套用到了所有错误响应上)

英文原文 ​

展开英文原文

Can anyone confirm if JSON-RPC over HTTP is supposed to use status 500 if the reply is an error reply? I can't remember where I picked that up, maybe it's wrong. It seems like 200 would make more sense unless there's something wrong with the mechanics of the HTTP request itself. (and maybe that's what it said and I forgot and spread 500 to all error responses)

为历史保存,为中文读者整理。每篇档案均附来源与英文原文。