Bitcointalk · bitcoind not responding to RPC

中本聪,2010 年 7 月 24 日

SN-1611 已核对来源,附原文与上下文。

阅读语言
中文译文

有谁能确认,HTTP 上的 JSON-RPC 在错误回复时是否按规定该用状态 500?我记不清从哪看来的,也可能是错的。感觉 200 更合理,除非 HTTP 请求本身的机制出了问题。(兴许原文只针对某种情况,我忘了,然后把 500 扩散到了所有错误响应)

ORIGINAL · 英文原文
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)
上下文
← 上一条 SN-1611 · 当前 下一条 → 在档案中查看完整主题串 →
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-1611