summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-10-18 23:04:43 +0200
committerChristian Grothoff <christian@grothoff.org>2016-10-18 23:04:43 +0200
commit5315da03acdef93934533497d781b47cc17134d9 (patch)
treeb39c2473e41af7ed700be499fe3f60bb902658dd
parentf0f8e4b873acf06cd7ac3dc5ef221bb3ab361fa1 (diff)
downloaddocs-5315da03acdef93934533497d781b47cc17134d9.tar.gz
docs-5315da03acdef93934533497d781b47cc17134d9.tar.bz2
docs-5315da03acdef93934533497d781b47cc17134d9.zip
update specification to match current implementation
-rw-r--r--api-common.rst4
-rw-r--r--api-exchange.rst4
2 files changed, 4 insertions, 4 deletions
diff --git a/api-common.rst b/api-common.rst
index 3bbc8722..d44e55ec 100644
--- a/api-common.rst
+++ b/api-common.rst
@@ -70,8 +70,8 @@ handle the error as if an internal error (500) had been returned.
interface ErrorDetail {
- // Numeric error code. See "taler_error_codes.h".
- error_code: number;
+ // Numeric error code unique to the condition. See "taler_error_codes.h".
+ code: number;
// Human-readable description of the error, i.e. "missing parameter", "commitment violation", ...
// The other arguments are specific to the error value reported here.
diff --git a/api-exchange.rst b/api-exchange.rst
index 15acf5ed..d53056fb 100644
--- a/api-exchange.rst
+++ b/api-exchange.rst
@@ -392,7 +392,7 @@ exchange.
not yet have completed and might be known to the exchange in the near future.
In this case, the wallet should repeat the exact same request later again
using exactly the same blinded coin.
- :status 402 Payment Required:
+ :status 403 Forbidden:
The balance of the reserve is not sufficient to withdraw a coin of the indicated denomination.
The response is `WithdrawError`_ object.
@@ -475,7 +475,7 @@ denomination.
The operation succeeded, the exchange confirms that no double-spending took place. The response will include a `DepositSuccess`_ object.
:status 401 Unauthorized:
One of the signatures is invalid.
- :status 403:
+ :status 403 Forbidden:
The deposit operation has failed because the coin has insufficient
residual value; the request should not be repeated again with this coin.
In this case, the response is a `DepositDoubleSpendError`_.