exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit f67b71738ee5a8f0cb346fb7ad7c6c15befce1f2
parent f05990eb80339bb5f5137af0c4b84eeeb942044a
Author: Florian Dold <dold@taler.net>
Date:   Sat, 29 Aug 2026 18:50:48 +0200

error codes: add merchant current password response

Diffstat:
Msrc/include/taler/taler_error_codes.h | 8++++++++
Msrc/util/taler_error_codes.c | 13++++++++++---
2 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/src/include/taler/taler_error_codes.h b/src/include/taler/taler_error_codes.h @@ -3832,6 +3832,14 @@ enum TALER_ErrorCode /** + * The merchant backend cannot update an instance's authentication settings because the required current password was missing or did not match. + * Returned with an HTTP status code of #MHD_HTTP_UNAUTHORIZED (401). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_MERCHANT_PRIVATE_POST_INSTANCE_AUTH_BAD_OLD_PASSWORD = 2604, + + + /** * The merchant backend cannot update an instance under the given identifier, the previous one was deleted but must be purged first. * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409). * (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 @@ -3704,6 +3704,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2604 */ + .ec = TALER_EC_MERCHANT_PRIVATE_POST_INSTANCE_AUTH_BAD_OLD_PASSWORD, + .hint = + "The merchant backend cannot update an instance's authentication settings because the required current password was missing or did not match.", + .http_code = MHD_HTTP_UNAUTHORIZED + }, + + { /* 2625 */ .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_INSTANCES_PURGE_REQUIRED, .hint = @@ -6067,7 +6075,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { /** * The length of @e code_hint_pairs. */ -static const unsigned int code_hint_pairs_length = 782; +static const unsigned int code_hint_pairs_length = 783; const char * @@ -6144,4 +6152,4 @@ TALER_ErrorCode_check_invariants (void) for (unsigned int i = 1; i < code_hint_pairs_length; i++) GNUNET_assert (code_hint_pairs[i - 1].ec < code_hint_pairs[i].ec); -} -\ No newline at end of file +}