commit 4308b0f692aeeded28dc0274d4896b4cbe87b205
parent 9be2a20c127e5e56a1f376787be7a50bcab2741f
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 8 Apr 2026 03:22:15 +0200
update GANA
Diffstat:
2 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/src/include/taler/taler_error_codes.h b/src/include/taler/taler_error_codes.h
@@ -1001,7 +1001,7 @@ enum TALER_ErrorCode
/**
* The total sum of amounts from the denominations did overflow.
- * Returned with an HTTP status code of #MHD_HTTP_INTERNAL_SERVER_ERROR (500).
+ * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400).
* (A value of 0 indicates that the error is generated client-side).
*/
TALER_EC_EXCHANGE_WITHDRAW_AMOUNT_OVERFLOW = 1162,
@@ -5601,6 +5601,14 @@ enum TALER_ErrorCode
/**
+ * The requested operation is not valid for the cipher used by the selected denomination.
+ * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400).
+ * (A value of 0 indicates that the error is generated client-side).
+ */
+ TALER_EC_DONAU_GENERIC_INVALID_DENOMINATION_CIPHER_FOR_OPERATION = 8606,
+
+
+ /**
* The Donau failed to perform the operation as it could not find the private keys. This is a problem with the Donau setup, not with the client's request.
* Returned with an HTTP status code of #MHD_HTTP_SERVICE_UNAVAILABLE (503).
* (A value of 0 indicates that the error is generated client-side).
diff --git a/src/util/taler_error_codes.c b/src/util/taler_error_codes.c
@@ -1005,7 +1005,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = {
.ec = TALER_EC_EXCHANGE_WITHDRAW_AMOUNT_OVERFLOW,
.hint = gettext_noop (
"The total sum of amounts from the denominations did overflow."),
- .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
+ .http_code = MHD_HTTP_BAD_REQUEST
},
{
@@ -5535,6 +5535,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = {
},
{
+ /* 8606 */
+ .ec = TALER_EC_DONAU_GENERIC_INVALID_DENOMINATION_CIPHER_FOR_OPERATION,
+ .hint = gettext_noop (
+ "The requested operation is not valid for the cipher used by the selected denomination."),
+ .http_code = MHD_HTTP_BAD_REQUEST
+ },
+
+ {
/* 8607 */
.ec = TALER_EC_DONAU_GENERIC_KEYS_MISSING,
.hint = gettext_noop (
@@ -5775,7 +5783,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = {
/**
* The length of @e code_hint_pairs.
*/
-static const unsigned int code_hint_pairs_length = 723;
+static const unsigned int code_hint_pairs_length = 724;
const char *