summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-05-22 11:19:34 +0200
committerChristian Grothoff <christian@grothoff.org>2020-05-22 11:19:34 +0200
commitf438164b947ffb057645b6176d3595fcb73d1611 (patch)
tree88aadfb55af8ecab71978ae530e318a1bde8988d
parent1dda880147a488f74f5bd1e90ca098b9ce98933a (diff)
downloadtaler-util-f438164b947ffb057645b6176d3595fcb73d1611.tar.gz
taler-util-f438164b947ffb057645b6176d3595fcb73d1611.tar.bz2
taler-util-f438164b947ffb057645b6176d3595fcb73d1611.zip
more ECs
-rw-r--r--taler/util/errorcodes.py47
1 files changed, 46 insertions, 1 deletions
diff --git a/taler/util/errorcodes.py b/taler/util/errorcodes.py
index 19a7f95..f9280bd 100644
--- a/taler/util/errorcodes.py
+++ b/taler/util/errorcodes.py
@@ -3014,6 +3014,15 @@ ec._add_ec(
)
ec._add_ec(
+ "GET_RESERVES_DB_LOOKUP_ERROR",
+ 2652,
+ """
+ The backend failed to fetch the requested information from the database.
+ Returned with an HTTP status of #MHD_HTTP_INTERNAL_SERVER_ERROR.
+ """,
+)
+
+ec._add_ec(
"TIP_AUTHORIZE_INSTANCE_DOES_NOT_TIP",
2701,
"""
@@ -3030,7 +3039,7 @@ ec._add_ec(
"""
The reserve that was used to fund the tips has expired.
Returned with an HTTP status code of
- #MHD_HTTP_NOT_FOUND.
+ #MHD_HTTP_GONE.
""",
)
@@ -3220,6 +3229,24 @@ ec._add_ec(
""",
)
+ec._add_ec(
+ "RESERVES_DELETE_DB_HARD_FAILURE",
+ 2721,
+ """
+ The reserve could not be deleted due to a database failure.
+ Returned with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR.
+ """,
+)
+
+ec._add_ec(
+ "RESERVES_DELETE_NO_SUCH_RESERVE",
+ 2722,
+ """
+ The reserve could not be deleted because it is unknown.
+ Returned with HTTP status code #MHD_HTTP_NOT_FOUND.
+ """,
+)
+
ec._add_ec(
"TIP_ENABLE_DB_TRANSACTION_ERROR",
@@ -3358,6 +3385,24 @@ ec._add_ec(
""",
)
+ec._add_ec(
+ "GET_TIPS_DB_LOOKUP_ERROR",
+ 2813,
+ """
+ Merchant failed to access its database to lookup the tip.
+ Returned with a response code of #MHD_HTTP_INTERNAL_SERVER_ERROR.
+ """,
+)
+
+ec._add_ec(
+ "GET_TIPS_ID_UNKNOWN",
+ 2814,
+ """
+ Merchant failed find the tip in its database.
+ Returned with a response code of #MHD_HTTP_NOT_FOUND.
+ """,
+)
+
ec._add_ec(
"GET_ORDERS_DB_LOOKUP_ERROR",