Return 400 status code if there is an error in RPC level

200 status code means success.  Since the request did not succeed, we
should avoid it.
pull/481/head
Tatsuhiro Tsujikawa 2015-09-21 22:58:31 +09:00
parent e7eedfc8cf
commit 031b86d512
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ void HttpServerBodyCommand::sendJsonRpcResponse
switch(res.code) {
case 1:
// error caught while executing RpcMethod
httpCode = 200;
httpCode = 400;
break;
case -32600:
httpCode = 400;