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 error codes


From: gnunet
Subject: [taler-taler-util] branch master updated: more error codes
Date: Sun, 19 Apr 2020 22:31:14 +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 5b5504e  more error codes
5b5504e is described below

commit 5b5504e73bb434c8bca2436130528569741be63c
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Apr 19 22:31:12 2020 +0200

    more error codes
---
 taler/util/errorcodes.py | 300 +++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 291 insertions(+), 9 deletions(-)

diff --git a/taler/util/errorcodes.py b/taler/util/errorcodes.py
index ee67b7f..a9caf83 100644
--- a/taler/util/errorcodes.py
+++ b/taler/util/errorcodes.py
@@ -627,6 +627,15 @@ ec._add_ec(
     """,
 )
 
+ec._add_ec(
+    "WITHDRAW_UNBLIND_FAILURE",
+    1119,
+    """
+    The client failed to unblind the blind signature.
+    This error is not used in the protocol but created client-side.
+    """,
+)
+
 
 ec._add_ec(
     "RESERVE_STATUS_DB_ERROR",
@@ -1789,7 +1798,7 @@ ec._add_ec(
     to satisfy the required amount for the contract.  The client should
     revisit the logic used to calculate fees it must cover.
     This response is provided
-    with HTTP status code #MHD_HTTP_BAD_REQUEST.
+    with HTTP status code #MHD_HTTP_ACCEPTED.
     """,
 )
 
@@ -1800,7 +1809,7 @@ ec._add_ec(
     Even if we do not consider deposit and wire fees,
     the payment is insufficient to satisfy the required amount for
     the contract.  This response is provided with HTTP status code
-    #MHD_HTTP_BAD_REQUEST.
+    #MHD_HTTP_ACCEPTED.
     """,
 )
 
@@ -2290,6 +2299,107 @@ ec._add_ec(
     """,
 )
 
+ec._add_ec(
+    "POST_INSTANCES_ALREADY_EXISTS",
+    2450,
+    """
+    The merchant backend cannot create an instance under the
+    given identifier as one already exists. Use PATCH to
+    modify the existing entry.  The response
+    is provied with an HTTP status of
+    #MHD_HTTP_CONFLICT.
+    """,
+)
+
+ec._add_ec(
+    "POST_INSTANCES_BAD_PAYTO_URIS",
+    2451,
+    """
+    The merchant backend cannot create an instance because
+    the specified bank accounts are somehow invalid.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_BAD_REQUEST.
+    """,
+)
+
+ec._add_ec(
+    "POST_INSTANCES_DB_START_ERROR",
+    2452,
+    """
+    The merchant backend cannot create an instance because
+    it failed to start the database transaction.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_INTERNAL_SERVER_ERROR.
+    """,
+)
+
+ec._add_ec(
+    "POST_INSTANCES_DB_COMMIT_ERROR",
+    2453,
+    """
+    The merchant backend cannot create an instance because
+    it failed to commit the database transaction.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_INTERNAL_SERVER_ERROR.
+    """,
+)
+
+ec._add_ec(
+    "DELETE_INSTANCES_ID_DB_HARD_FAILURE",
+    2454,
+    """
+    The merchant backend cannot delete an instance because
+    it failed to commit the database transaction.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_INTERNAL_SERVER_ERROR.
+    """,
+)
+
+ec._add_ec(
+    "DELETE_INSTANCES_ID_NO_SUCH_INSTANCE",
+    2455,
+    """
+    The merchant backend cannot delete the data because
+    it already does not exist.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_NOT_FOUND.
+    """,
+)
+
+ec._add_ec(
+    "PATCH_INSTANCES_BAD_PAYTO_URIS",
+    2456,
+    """
+    The merchant backend cannot update an instance because
+    the specified bank accounts are somehow invalid.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_BAD_REQUEST.
+    """,
+)
+
+ec._add_ec(
+    "PATCH_INSTANCES_DB_START_ERROR",
+    2457,
+    """
+    The merchant backend cannot patch an instance because
+    it failed to start the database transaction.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_INTERNAL_SERVER_ERROR.
+    """,
+)
+
+ec._add_ec(
+    "PATCH_INSTANCES_DB_COMMIT_ERROR",
+    2458,
+    """
+    The merchant backend cannot patch an instance because
+    it failed to commit the database transaction.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_INTERNAL_SERVER_ERROR.
+    """,
+)
+
+
 ec._add_ec(
     "MAP_IN_UNMATCHED_HASH",
     2500,
@@ -2395,6 +2505,139 @@ ec._add_ec(
     """,
 )
 
+ec._add_ec(
+    "GET_PRODUCTS_DB_LOOKUP_ERROR",
+    2550,
+    """
+    The merchant backend failed to lookup the products.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_INTERNAL_SERVER_ERROR.
+    """,
+)
+
+ec._add_ec(
+    "PRODUCTS_POST_DB_START_ERROR",
+    2551,
+    """
+    The merchant backend failed to start the transaction.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_INTERNAL_SERVER_ERROR.
+    """,
+)
+
+ec._add_ec(
+    "PRODUCTS_POST_CONFLICT_PRODUCT_EXISTS",
+    2552,
+    """
+    The product ID exists.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_CONFLICT.
+    """,
+)
+
+ec._add_ec(
+    "PRODUCTS_POST_DB_COMMIT_SOFT_ERROR",
+    2553,
+    """
+    The merchant backend failed to serialize the transaction.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_INTERNAL_SERVER_ERROR.
+    """,
+)
+
+ec._add_ec(
+    "PRODUCTS_POST_DB_COMMIT_HARD_ERROR",
+    2554,
+    """
+    The merchant backend failed to commit the transaction.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_INTERNAL_SERVER_ERROR.
+    """,
+)
+
+ec._add_ec(
+    "PRODUCTS_PATCH_DB_COMMIT_HARD_ERROR",
+    2555,
+    """
+    The merchant backend failed to commit the transaction.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_INTERNAL_SERVER_ERROR.
+    """,
+)
+
+ec._add_ec(
+    "PRODUCTS_PATCH_UNKNOWN_PRODUCT",
+    2556,
+    """
+    The merchant backend did not find the product to be updated.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_NOT_FOUND.
+    """,
+)
+
+ec._add_ec(
+    "PRODUCTS_PATCH_TOTAL_LOST_REDUCED",
+    2557,
+    """
+    The update would have reduced the total amount of product
+    lost, which is not allowed.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_CONFLICT.
+    """,
+)
+
+ec._add_ec(
+    "PRODUCTS_PATCH_TOTAL_SOLD_REDUCED",
+    2558,
+    """
+    The update would have reduced the total amount of product
+    sold, which is not allowed.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_CONFLICT.
+    """,
+)
+
+ec._add_ec(
+    "PRODUCTS_PATCH_TOTAL_STOCKED_REDUCED",
+    2559,
+    """
+    The update would have reduced the total amount of product
+    in stock, which is not allowed.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_CONFLICT.
+    """,
+)
+
+ec._add_ec(
+    "PRODUCTS_LOCK_INSUFFICIENT_STOCKS",
+    2560,
+    """
+    The lock request is for more products than we have left (unlocked) in 
stock.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_CONFLICT.
+    """,
+)
+
+ec._add_ec(
+    "PRODUCTS_LOCK_UNKNOWN_PRODUCT",
+    2561,
+    """
+    The lock request is for an unknown product.
+    The response is provied with an HTTP status of
+    #MHD_HTTP_NOT_FOUND.
+    """,
+)
+
+
+ec._add_ec(
+    "REFUND_LOOKUP_INVALID_RESPONSE",
+    2600,
+    """
+    The merchant returned a malformed response. Error created
+    client-side.
+    """,
+)
+
 ec._add_ec(
     "REFUND_ORDER_ID_UNKNOWN",
     2601,
@@ -2451,6 +2694,16 @@ ec._add_ec(
     """,
 )
 
+ec._add_ec(
+    "REFUND_LOOKUP_NO_REFUND",
+    2607,
+    """
+    The merchant backend is not available of any applicable refund(s) for this 
order.
+    Returned with an HTTP status of #MHD_HTTP_NOT_FOUND.
+    """,
+)
+
+
 
 ec._add_ec(
     "TIP_AUTHORIZE_INSTANCE_DOES_NOT_TIP",
@@ -2650,6 +2903,15 @@ ec._add_ec(
     """,
 )
 
+ec._add_ec(
+    "TIP_QUERY_TIP_ID_UNKNOWN",
+    2720,
+    """
+    The tip id is unknown.  This could happen if the
+    tip id is wrong or the tip authorization expired.
+    """,
+)
+
 
 ec._add_ec(
     "TIP_ENABLE_DB_TRANSACTION_ERROR",
@@ -2715,7 +2977,8 @@ ec._add_ec(
     2805,
     """
     We failed to contact the exchange to obtain the denomination
-    keys.  Returned with a response code "failed dependency" (424).
+    keys.  Returned with a response code
+    #MHD_HTTP_FAILED_DEPENDENCY.
     """,
 )
 
@@ -2725,7 +2988,8 @@ ec._add_ec(
     """
     We contacted the exchange to obtain any denomination
     keys, but got no valid keys.
-    Returned with a response code "failed dependency" (424).
+    Returned with a response code
+    #MHD_HTTP_FAILED_DEPENDENCY.
     """,
 )
 
@@ -2745,7 +3009,7 @@ ec._add_ec(
     """
     We encountered an arithmetic issue totaling up the
     amount to withdraw. Returned with a response code
-    of "bad request".
+    of #MHD_HTTP_BAD_REQUEST.
     """,
 )
 
@@ -2755,16 +3019,34 @@ ec._add_ec(
     """
     The number of planchets specified exceeded the
     limit. Returned with a response code
-    of "bad request".
+    of #MHD_HTTP_BAD_REQUEST.
     """,
 )
 
 ec._add_ec(
-    "TIP_QUERY_TIP_ID_UNKNOWN",
+    "TIP_PICKUP_WITHDRAW_FAILED",
     2810,
     """
-    The tip id is unknown.  This could happen if the
-    tip id is wrong or the tip authorization expired.
+    The merchant failed to initialize the withdraw operaiton.
+    Returned with a response code of #MHD_HTTP_INTERNAL_SERVER_ERROR.
+    """,
+)
+
+ec._add_ec(
+    "TIP_PICKUP_WITHDRAW_FAILED_AT_EXCHANGE",
+    2811,
+    """
+    The merchant failed to initialize the withdraw operaiton.
+    Returned with a response code of #MHD_HTTP_FAILED_DEPENDENCY.
+    """,
+)
+
+ec._add_ec(
+    "TIP_PICKUP_UNBLIND_FAILURE",
+    2812,
+    """
+    The client failed to unblind the signature returned by the merchant.
+    Generated client-side.
     """,
 )
 

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



reply via email to

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