summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-09-21 22:59:45 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-09-21 22:59:45 +0900
commit3ce0d91757b2f06fab0807969ff82a93126d5e43 (patch)
tree84fdfd1cd0268bd81973687d2ba26cd34edc57f5
parent031b86d512e26f6aa1b434f548bb54be50a6aae7 (diff)
Update NEWS
-rw-r--r--NEWS6
1 files changed, 3 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 9810cfbc..e1f7fe7e 100644
--- a/NEWS
+++ b/NEWS
@@ -21,11 +21,11 @@ Similarly, if aria2.conf exists under $HOME/.aria2/ directory, it is
used instead.
Previously, we return 500 HTTP status if RPC method execution
-encountered error. Now it returns with 200 HTTP status with error
+encountered error. Now it returns with 400 HTTP status with error
code. This is more natural because server processed request and found
an error, and returned error reply correctly. This is not something
server crashed or something. Also, there is RPC libraries which
-throws exception if it sees 5XX status code, where 200 is better
+throws exception if it sees 5XX status code, where 400 is better
because we can examine the error.
Changes
@@ -37,7 +37,7 @@ Changes
Patch from amtlib-dot-dll
-* Return 200 HTTP status code if exception was caught while executing RPC method
+* Return 400 HTTP status code if exception was caught while executing RPC method
Previously, we returned 500 HTTP status code. I think the found in
RPC level, not in HTTP protocol, so 500 is not appropriate.