commit 5315da03acdef93934533497d781b47cc17134d9
parent f0f8e4b873acf06cd7ac3dc5ef221bb3ab361fa1
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 18 Oct 2016 23:04:43 +0200
update specification to match current implementation
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git 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
@@ -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`_.