commit ce498da835b344cdea7f5bce6959e293d0d8dada
parent 21f306079e8993f2243c52d493a4fbd1cc4f927f
Author: bohdan-potuzhnyi <bohdan.potuzhnyi@gmail.com>
Date: Sat, 22 Nov 2025 15:11:28 +0100
update GANA
Diffstat:
2 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/include/taler/taler_error_codes.h b/src/include/taler/taler_error_codes.h
@@ -2614,6 +2614,13 @@ enum TALER_ErrorCode
*/
TALER_EC_MERCHANT_GENERIC_DONAU_INVALID_RESPONSE = 2032,
+ /**
+ * The unit referenced in the request is builtin and cannot be modified or deleted.
+ * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409).
+ * (A value of 0 indicates that the error is generated client-side).
+ */
+ TALER_EC_MERCHANT_GENERIC_UNIT_BUILTIN = 2033,
+
/**
* The exchange failed to provide a valid answer to the tracking request, thus those details are not in the response.
diff --git a/src/util/taler_error_codes.c b/src/util/taler_error_codes.c
@@ -2085,6 +2085,13 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = {
},
{
+ .ec = TALER_EC_MERCHANT_GENERIC_UNIT_BUILTIN,
+ .hint = gettext_noop (
+ "The unit referenced in the request is builtin and cannot be modified or deleted."),
+ .http_code = MHD_HTTP_CONFLICT
+ },
+
+ {
.ec = TALER_EC_MERCHANT_GENERIC_ORDER_UNKNOWN,
.hint = gettext_noop ("The proposal is not known to the backend."),
.http_code = MHD_HTTP_NOT_FOUND