[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-docs] 24/36: more detailed 401 error
From: |
gnunet |
Subject: |
[taler-docs] 24/36: more detailed 401 error |
Date: |
Tue, 22 Jun 2021 19:35:20 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository docs.
commit 81655daf19f3739127cb78d6553cfaf48640e46a
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue May 18 20:01:39 2021 +0200
more detailed 401 error
---
core/api-exchange.rst | 34 +++++++++++++++++++++++++++++-----
1 file changed, 29 insertions(+), 5 deletions(-)
diff --git a/core/api-exchange.rst b/core/api-exchange.rst
index 23365ef..06f7658 100644
--- a/core/api-exchange.rst
+++ b/core/api-exchange.rst
@@ -2672,11 +2672,8 @@ Wallet-to-wallet transfers
purse deposits before the expiration deadline.
The response will include a `PurseDepositAccepted` object.
:http:statuscode:`401 Unauthorized`:
- A coin signature is invalid.
- FIXME: add message that tells the client
- which coin signature(s) were valid. ErrorDetail is not enough
- to identify the problematic coin.
- This response comes with a standard `ErrorDetail` response.
+ A coin signature is invalid. The response will
+ include a `PurseDepositSignatureErrorDetail`
:http:statuscode:`403 Forbidden`:
The server is denying the operation as a purse with a
different contract or total amount already exists.
@@ -2916,6 +2913,33 @@ Wallet-to-wallet transfers
}
+ .. ts:def:: PurseDepositSignatureErrorDetail
+
+ interface PurseDepositSignatureErrorDetail {
+ // Taler error code, summarizing the problem.
+ // Note that for problems about specific
+ // coins, the 'coin_error_map' should be consulted.
+ // The 'coin_error_map' will be empty if the
+ // 'purse_sig' was invalid. In this case,
+ // the coins will not even have been checked by
+ // the exchange.
+ code: number;
+
+ // Human-readable description of the error, i.e. "invalid siganture".
+ hint?: string;
+
+ // Total amount contributed by the current request.
+ // Note that some coins may have been successfully
+ // deposited into the purse, so the total amount
+ // from these coins is listed here.
+ total_amount_contributed: Amount;
+
+ // Public keys of coins that could not be deposited
+ // into the purse, mapped to the coin's histories.
+ coin_error_map: EddsaPublicKey -> ErrorDetail[];
+ }
+
+
.. http:POST:: /purses/$PURSE_PUB/merge
Merge purse with account, adding the value of the purse into
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-docs] 05/36: document test vector for #6855, (continued)
- [taler-docs] 05/36: document test vector for #6855, gnunet, 2021/06/22
- [taler-docs] 03/36: work on w2w spec, gnunet, 2021/06/22
- [taler-docs] 09/36: clarifications, gnunet, 2021/06/22
- [taler-docs] 07/36: define merchant-bank facade, gnunet, 2021/06/22
- [taler-docs] 04/36: more dd13 spec updates, gnunet, 2021/06/22
- [taler-docs] 30/36: clarify merchant api, gnunet, 2021/06/22
- [taler-docs] 02/36: update spec for W2W, gnunet, 2021/06/22
- [taler-docs] 15/36: add missing configuration endpoints, gnunet, 2021/06/22
- [taler-docs] 16/36: add tables for configuration related to p2p payments, gnunet, 2021/06/22
- [taler-docs] 22/36: revise purse amount handling, gnunet, 2021/06/22
- [taler-docs] 24/36: more detailed 401 error,
gnunet <=
- [taler-docs] 33/36: simplify/cleaner docs, gnunet, 2021/06/22
- [taler-docs] 19/36: clarify, gnunet, 2021/06/22
- [taler-docs] 27/36: document wallet transaction deletion, gnunet, 2021/06/22
- [taler-docs] 10/36: misc spec fixes, gnunet, 2021/06/22
- [taler-docs] 28/36: doc update for #6889, gnunet, 2021/06/22
- [taler-docs] 18/36: add endpoint to delete bogus wire transfers, gnunet, 2021/06/22
- [taler-docs] 35/36: update manuals, gnunet, 2021/06/22
- [taler-docs] 11/36: remove dangerous API as per discussion with FD, gnunet, 2021/06/22
- [taler-docs] 17/36: add table to cache /wire reply from partner exchange, gnunet, 2021/06/22
- [taler-docs] 26/36: document 409 case, see #6863, gnunet, 2021/06/22