[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: |
Fri, 01 May 2020 18:38:31 +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 7b35635 more error codes
7b35635 is described below
commit 7b3563501dd2ce4b5ad77c628f36181c73a8708e
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri May 1 18:38:29 2020 +0200
more error codes
---
taler/util/errorcodes.py | 269 ++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 254 insertions(+), 15 deletions(-)
diff --git a/taler/util/errorcodes.py b/taler/util/errorcodes.py
index a9caf83..790c6a7 100644
--- a/taler/util/errorcodes.py
+++ b/taler/util/errorcodes.py
@@ -1961,17 +1961,6 @@ ec._add_ec(
""",
)
-ec._add_ec(
- "PAY_ABORT_REFUND_REFUSED_PAYMENT_COMPLETE",
- 2126,
- """
- The merchant refuses to abort and refund the payment
- operation as the payment succeeded already.
- This response is provided with HTTP status code of
- #MHD_HTTP_FORBIDDEN.
- """,
-)
-
ec._add_ec(
"PAY_WRONG_INSTANCE",
2127,
@@ -2047,6 +2036,118 @@ ec._add_ec(
with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR.
""",
)
+
+ec._add_ec(
+ "ABORT_EXCHANGE_KEYS_FAILURE",
+ 2150,
+ """
+ The merchant failed to contact the exchange.
+ This response is provided with HTTP status code of
+ #MHD_HTTP_FAILED_DEPENDENCY.
+ """,
+)
+
+ec._add_ec(
+ "ABORT_EXCHANGE_REFUND_FAILED",
+ 2151,
+ """
+ The merchant failed to send the exchange the refund request.
+ This response is provided with HTTP status code of
+ #MHD_HTTP_INTERNAL_SERVER_ERROR.
+ """,
+)
+
+ec._add_ec(
+ "ABORT_EXCHANGE_LOOKUP_FAILED",
+ 2152,
+ """
+ The merchant failed to find the exchange to process the lookup.
+ This response is provided with HTTP status code of
+ #MHD_HTTP_INTERNAL_SERVER_ERROR.
+ """,
+)
+
+ec._add_ec(
+ "ABORT_DB_STORE_ABORT_ERROR",
+ 2153,
+ """
+ The merchant failed to store the abort request in its database.
+ This response is provided with HTTP status code of
+ #MHD_HTTP_INTERNAL_SERVER_ERROR.
+ """,
+)
+
+ec._add_ec(
+ "ABORT_DB_STORE_TRANSACTION_ERROR",
+ 2154,
+ """
+ The merchant failed to repeatedly serialize the transaction.
+ This response is provided with HTTP status code of
+ #MHD_HTTP_INTERNAL_SERVER_ERROR.
+ """,
+)
+
+ec._add_ec(
+ "ABORT_DB_FETCH_TRANSACTION_ERROR",
+ 2155,
+ """
+ The merchant failed in the lookup part of the transaction.
+ This response is provided with HTTP status code of
+ #MHD_HTTP_INTERNAL_SERVER_ERROR.
+ """,
+)
+
+ec._add_ec(
+ "ABORT_CONTRACT_NOT_FOUND",
+ 2156,
+ """
+ The merchant could not find the contract.
+ This response is provided with HTTP status code of
+ #MHD_HTTP_NOT_FOUND.
+ """,
+)
+
+ec._add_ec(
+ "ABORT_REFUND_REFUSED_PAYMENT_COMPLETE",
+ 2157,
+ """
+ The payment was already completed and thus cannot be
+ aborted anymore.
+ This response is provided with HTTP status code of
+ #MHD_HTTP_FORBIDDEN.
+ """,
+)
+
+ec._add_ec(
+ "ABORT_CONTRACT_HASH_MISSMATCH",
+ 2158,
+ """
+ The hash provided by the wallet does not match the order.
+ This response is provided with HTTP status code of
+ #MHD_HTTP_BAD_REQUEST.
+ """,
+)
+
+ec._add_ec(
+ "ABORT_COINS_ARRAY_EMPTY",
+ 2159,
+ """
+ The array of coins cannot be empty.
+ This response is provided with HTTP status code of
+ #MHD_HTTP_BAD_REQUEST.
+ """,
+)
+
+ec._add_ec(
+ "ABORT_EXCHANGE_TIMEOUT",
+ 2160,
+ """
+ The merchant experienced a timeout processing the request.
+ This response is provided with HTTP status code of
+ #MHD_HTTP_REQUEST_TIMEOUT.
+ """,
+)
+
ec._add_ec(
"HISTORY_TIMESTAMP_OVERFLOW",
2200,
@@ -2425,6 +2526,7 @@ ec._add_ec(
"""
The backend encountered an error while trying to retrieve the
proposal data from database. Likely to be an internal error.
+ The response is provided with HTTP status code
#MHD_HTTP_INTERNAL_SERVER_ERROR.
""",
)
@@ -2433,6 +2535,7 @@ ec._add_ec(
2503,
"""
The proposal being looked up is not found on this merchant.
+ Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND
""",
)
@@ -2442,6 +2545,7 @@ ec._add_ec(
"""
The proposal had no timestamp and the backend failed to obtain the local
time.
Likely to be an internal error.
+ The response is provided with HTTP status code
#MHD_HTTP_INTERNAL_SERVER_ERROR.
""",
)
@@ -2451,7 +2555,7 @@ ec._add_ec(
"""
The order provided to the backend could not be parsed, some
required fields were missing or ill-formed.
- Returned as a bad request.
+ Returned with an HTTP status code #MHD_HTTP_BAD_REQUEST.
""",
)
@@ -2505,6 +2609,112 @@ ec._add_ec(
""",
)
+ec._add_ec(
+ "ORDERS_DELETE_NO_SUCH_ORDER",
+ 2511,
+ """
+ The order provided to the backend could not be deleted, it is not known.
+ Returned with an HTTP status code #MHD_HTTP_NOT_FOUND.
+ """,
+)
+
+ec._add_ec(
+ "ORDERS_DELETE_AWAITING_PAYMENT",
+ 2512,
+ """
+ The order provided to the backend could not be deleted, our offer is still
+ valid and awaiting payment.
+ Returned with an HTTP status code #MHD_HTTP_CONFLICT.
+ """,
+)
+
+ec._add_ec(
+ "ORDERS_DELETE_DB_HARD_FAILURE",
+ 2513,
+ """
+ The order provided to the backend could not be deleted, due to a database
error.
+ Returned with an HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR.
+ """,
+)
+
+ec._add_ec(
+ "ORDERS_LOOKUP_PRODUCT_DB_HARD_FAILURE",
+ 2514,
+ """
+ The order provided to the backend could not be completed, due to a
database error
+ trying to fetch product inventory data.
+ Returned with an HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR.
+ """,
+)
+
+ec._add_ec(
+ "ORDERS_LOOKUP_PRODUCT_DB_SOFT_FAILURE",
+ 2515,
+ """
+ The order provided to the backend could not be completed, due to a database
+ serialization error (which should be impossible) trying to fetch product
inventory data.
+ Returned with an HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR.
+ """,
+)
+
+ec._add_ec(
+ "ORDERS_LOOKUP_PRODUCT_NOT_FOUND",
+ 2516,
+ """
+ The order provided to the backend could not be completed, because a product
+ to be completed via inventory data is not actually in our inventory.
+ Returned with an HTTP status code #MHD_HTTP_NOT_FOUND.
+ """,
+)
+
+ec._add_ec(
+ "ORDERS_GET_DB_LOOKUP_ERROR",
+ 2517,
+ """
+ We could not obtain a list of all orders because of a database failure.
+ Returned with an HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR.
+ """,
+)
+
+ec._add_ec(
+ "ORDERS_CLAIM_HARD_DB_ERROR",
+ 2518,
+ """
+ We could not claim the order because of a database failure.
+ Returned with an HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR.
+ """,
+)
+
+ec._add_ec(
+ "ORDERS_CLAIM_SOFT_DB_ERROR",
+ 2519,
+ """
+ We could not claim the order because of a database serialization failure.
+ Returned with an HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR.
+ """,
+)
+
+ec._add_ec(
+ "ORDERS_CLAIM_NOT_FOUND",
+ 2520,
+ """
+ We could not claim the order because the backend is unaware of it.
+ Returned with an HTTP status code #MHD_HTTP_NOT_FOUND.
+ """,
+)
+
+ec._add_ec(
+ "ORDERS_ALREADY_CLAIMED",
+ 2521,
+ """
+ We could not claim the order because someone else claimed it first.
+ Returned with an HTTP status code #MHD_HTTP_CONFLICT.
+ """,
+)
+
+
+
+
ec._add_ec(
"GET_PRODUCTS_DB_LOOKUP_ERROR",
2550,
@@ -2587,11 +2797,11 @@ ec._add_ec(
)
ec._add_ec(
- "PRODUCTS_PATCH_TOTAL_SOLD_REDUCED",
+ "PRODUCTS_PATCH_TOTAL_LOST_EXCEEDS_STOCKS",
2558,
"""
- The update would have reduced the total amount of product
- sold, which is not allowed.
+ The update would have mean that more stocks were
+ lost than what remains from total inventory after sales, which is not
allowed.
The response is provied with an HTTP status of
#MHD_HTTP_CONFLICT.
""",
@@ -2628,6 +2838,35 @@ ec._add_ec(
""",
)
+ec._add_ec(
+ "PRODUCTS_DELETE_DB_HARD_FAILURE",
+ 2562,
+ """
+ The deletion request resulted in a hard database error.
+ The response is provied with an HTTP status of
+ #MHD_HTTP_INTERNAL_SERVER_ERROR.
+ """,
+)
+
+ec._add_ec(
+ "PRODUCTS_DELETE_NO_SUCH_PRODUCT",
+ 2563,
+ """
+ The deletion request was for a product unknown to the backend.
+ The response is provied with an HTTP status of
+ #MHD_HTTP_NOT_FOUND.
+ """,
+)
+
+ec._add_ec(
+ "PRODUCTS_DELETE_CONFLICTING_LOCK",
+ 2564,
+ """
+ The deletion request is for a product that is locked.
+ The response is provied with an HTTP status of
+ #MHD_HTTP_CONFLICT.
+ """,
+)
ec._add_ec(
"REFUND_LOOKUP_INVALID_RESPONSE",
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-taler-util] branch master updated: more error codes,
gnunet <=