summaryrefslogtreecommitdiff
path: root/src/HttpServerBodyCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-09-21 22:58:31 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-09-21 22:58:31 +0900
commit031b86d512e26f6aa1b434f548bb54be50a6aae7 (patch)
tree0dc5e88ff0e458780869500c98def5e0ae23a0eb /src/HttpServerBodyCommand.cc
parente7eedfc8cf1bbd2a545b996c312ef2c08603f5c4 (diff)
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.
Diffstat (limited to 'src/HttpServerBodyCommand.cc')
-rw-r--r--src/HttpServerBodyCommand.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HttpServerBodyCommand.cc b/src/HttpServerBodyCommand.cc
index 93b52c1f..2f7bc7da 100644
--- a/src/HttpServerBodyCommand.cc
+++ b/src/HttpServerBodyCommand.cc
@@ -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;