gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-util] branch master updated: more EC codes


From: gnunet
Subject: [taler-taler-util] branch master updated: more EC codes
Date: Wed, 01 Apr 2020 23:22:12 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository taler-util.

The following commit(s) were added to refs/heads/master by this push:
     new acb0d8c  more EC codes
acb0d8c is described below

commit acb0d8c772daf43c9566fcc50379e89859a70506
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Apr 1 23:22:10 2020 +0200

    more EC codes
---
 taler/util/errorcodes.py | 76 +++++++++++++++++++++++++++++++++++++++---------
 1 file changed, 62 insertions(+), 14 deletions(-)

diff --git a/taler/util/errorcodes.py b/taler/util/errorcodes.py
index c867601..e2e4f1e 100644
--- a/taler/util/errorcodes.py
+++ b/taler/util/errorcodes.py
@@ -814,7 +814,7 @@ ec._add_ec(
 )
 
 ec._add_ec(
-    "DEPOSIT_CURRENCY_MISSMATCH",
+    "DEPOSIT_CURRENCY_MISMATCH",
     1222,
     """
     The currency specified for the deposit is different from
@@ -942,7 +942,7 @@ ec._add_ec(
 )
 
 ec._add_ec(
-    "MELT_CURRENCY_MISSMATCH",
+    "MELT_CURRENCY_MISMATCH",
     1311,
     """
     The currency specified for the melt amount is different from
@@ -1080,7 +1080,7 @@ ec._add_ec(
 )
 
 ec._add_ec(
-    "REVEAL_NEW_DENOMS_ARRAY_SIZE_MISSMATCH",
+    "REVEAL_NEW_DENOMS_ARRAY_SIZE_MISMATCH",
     1378,
     """
     The number of envelopes given does not match the number
@@ -1215,7 +1215,7 @@ ec._add_ec(
 )
 
 ec._add_ec(
-    "REFUND_CURRENCY_MISSMATCH",
+    "REFUND_CURRENCY_MISMATCH",
     1504,
     """
     The currency specified for the refund is different from
@@ -1296,7 +1296,7 @@ ec._add_ec(
 )
 
 ec._add_ec(
-    "REFUND_FEE_CURRENCY_MISSMATCH",
+    "REFUND_FEE_CURRENCY_MISMATCH",
     1511,
     """
     The refund fee is specified in a different currency
@@ -1667,7 +1667,9 @@ ec._add_ec(
     """
     The exchange failed to provide a meaningful response
     to a /deposit request.  This response is provided
-    with HTTP status code #MHD_HTTP_SERVICE_UNAVAILABLE.
+    with HTTP status code #MHD_HTTP_DEPENDENCY_FAILED, or
+    #MHD_HTTP_CONFLICT in case the exchange reports
+    #TALER_EC_DEPOSIT_INSUFFICIENT_FUNDS (aka double spending).
     """,
 )
 
@@ -1717,7 +1719,7 @@ ec._add_ec(
     """
     There was an integer overflow totaling up the amounts or
     deposit fees in the payment.  This response is provided
-    with HTTP status code #MHD_HTTP_BAD_REQUEST.
+    with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR.
     """,
 )
 
@@ -1769,7 +1771,7 @@ ec._add_ec(
     """
     We failed to contact the exchange for the /pay request.
     This response is provided
-    with HTTP status code #MHD_HTTP_SERVICE_UNAVAILABLE.
+    with HTTP status code #MHD_HTTP_REQUEST_TIMEOUT.
     """,
 )
 
@@ -1850,7 +1852,7 @@ ec._add_ec(
     The exchange failed to provide a valid response to
     the merchant's /keys request.
     This response is provided
-    with HTTP status code #MHD_HTTP_SERVICE_UNAVAILABLE.
+    with HTTP status code #MHD_HTTP_FAILED_DEPENDENDCY.
     """,
 )
 
@@ -1896,7 +1898,7 @@ ec._add_ec(
 )
 
 ec._add_ec(
-    "PAY_WIRE_FEE_CURRENCY_MISSMATCH",
+    "PAY_WIRE_FEE_CURRENCY_MISMATCH",
     2125,
     """
     We got different currencies for the wire fee and the maximum wire
@@ -1923,6 +1925,49 @@ ec._add_ec(
     A unknown merchant public key was included in the payment.  That
     happens typically when the wallet sends the payment to the wrong
     merchant instance.
+    This response is provided with an HTTP status code of
+    #MHD_HTTP_NOT_FOUND.
+    """,
+)
+
+ec._add_ec(
+    "PAY_EXCHANGE_HAS_NO_KEYS",
+    2128,
+    """
+    The exchange failed to give us a response when we asked for /keys.
+    This response is provided
+    with HTTP status code #MHD_HTTP_FAILED_DEPENDENCY.
+    """,
+)
+
+ec._add_ec(
+    "PAY_DENOMINATION_DEPOSIT_EXPIRED",
+    2129,
+    """
+    The deposit time for the denomination has expired.
+    This response is provided
+    with HTTP status code #MHD_HTTP_GONE.
+    """,
+)
+
+ec._add_ec(
+    "PAY_PROPOSAL_NOT_FOUND",
+    2130,
+    """
+    The proposal is not known to the backend.
+    This response is provided with an HTTP status code of
+    #MHD_HTTP_NOT_FOUND.
+    """,
+)
+
+ec._add_ec(
+    "PAY_EXCHANGE_WIRE_FEE_ADDITION_FAILED",
+    2131,
+    """
+    The exchange of the deposited coin charges a wire fee that
+    could not be added to the total (total amount
+    too high).  This response is provided
+    with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR.
     """,
 )
 
@@ -2317,7 +2362,8 @@ ec._add_ec(
     2702,
     """
     The reserve that was used to fund the tips has expired.
-    Returned with an HTTP status code of "not found".
+    Returned with an HTTP status code of
+    #MHD_HTTP_NOT_FOUND.
     """,
 )
 
@@ -2326,7 +2372,8 @@ ec._add_ec(
     2703,
     """
     The reserve that was used to fund the tips was not found in the DB.
-    Returned with an HTTP status code of "not found".
+    Returned with an HTTP status code of
+    #MHD_HTTP_NOT_FOUND.
     """,
 )
 
@@ -2397,7 +2444,7 @@ ec._add_ec(
 )
 
 ec._add_ec(
-    "TIP_QUERY_RESERVE_CURRENCY_MISSMATCH",
+    "TIP_QUERY_RESERVE_CURRENCY_MISMATCH",
     2711,
     """
     The backend got a reserve with a currency that does not match
@@ -2464,7 +2511,8 @@ ec._add_ec(
     2800,
     """
     The tip ID is unknown.  This could happen if the tip has
-    expired.  Returned with an HTTP status code of "not found".
+    expired.  Returned with an HTTP status code of
+    #MHD_HTTP_NOT_FOUND.
     """,
 )
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]