exchange

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

commit e1d65f0758c0662f003e2bc1c06b5ef00bda4a68
parent d3fdd7d2d092d032d1888aaa2a9de6e98e638d9d
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 26 Dec 2025 22:54:29 +0100

gana update

Diffstat:
Msrc/include/taler/taler_error_codes.h | 32++++++++++++++++++++++++++++++++
Msrc/util/taler_error_codes.c | 34+++++++++++++++++++++++++++++++++-
2 files changed, 65 insertions(+), 1 deletion(-)

diff --git a/src/include/taler/taler_error_codes.h b/src/include/taler/taler_error_codes.h @@ -415,6 +415,14 @@ enum TALER_ErrorCode /** + * The operating system failed to allocate required resources. Restarting services periodically can help, especially if Postgres is using excessive amounts of memory. Check with the system administrator to investigate. + * Returned with an HTTP status code of #MHD_HTTP_INTERNAL_SERVER_ERROR (500). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_GENERIC_OS_RESOURCE_ALLOCATION_FAILURE = 77, + + + /** * Exchange is badly configured and thus cannot operate. * Returned with an HTTP status code of #MHD_HTTP_INTERNAL_SERVER_ERROR (500). * (A value of 0 indicates that the error is generated client-side). @@ -2680,6 +2688,14 @@ enum TALER_ErrorCode /** + * The report ID provided to the backend is not known to the backend. + * Returned with an HTTP status code of #MHD_HTTP_NOT_IMPLEMENTED (501). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_MERCHANT_GENERIC_REPORT_GENERATOR_UNCONFIGURED = 2035, + + + /** * The exchange failed to provide a valid answer to the tracking request, thus those details are not in the response. * Returned with an HTTP status code of #MHD_HTTP_OK (200). * (A value of 0 indicates that the error is generated client-side). @@ -3549,6 +3565,22 @@ enum TALER_ErrorCode /** + * The report ID provided to the backend is not known to the backend. + * Returned with an HTTP status code of #MHD_HTTP_NOT_IMPLEMENTED (501). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_MERCHANT_REPORT_GENERATOR_FAILED = 2570, + + + /** + * Failed to fetch the data for the report from the backend. + * Returned with an HTTP status code of #MHD_HTTP_BAD_GATEWAY (502). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_MERCHANT_REPORT_FETCH_FAILED = 2571, + + + /** * The merchant backend cannot create an instance under the given identifier as one already exists. Use PATCH to modify the existing entry. * 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 @@ -425,6 +425,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 77 */ + .ec = TALER_EC_GENERIC_OS_RESOURCE_ALLOCATION_FAILURE, + .hint = gettext_noop ( + "The operating system failed to allocate required resources. Restarting services periodically can help, especially if Postgres is using excessive amounts of memory. Check with the system administrator to investigate."), + .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR + }, + + { /* 1000 */ .ec = TALER_EC_EXCHANGE_GENERIC_BAD_CONFIGURATION, .hint = gettext_noop ( @@ -2663,6 +2671,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2035 */ + .ec = TALER_EC_MERCHANT_GENERIC_REPORT_GENERATOR_UNCONFIGURED, + .hint = gettext_noop ( + "The report ID provided to the backend is not known to the backend."), + .http_code = MHD_HTTP_NOT_IMPLEMENTED + }, + + { /* 2100 */ .ec = TALER_EC_MERCHANT_GET_ORDERS_EXCHANGE_TRACKING_FAILURE, .hint = gettext_noop ( @@ -3526,6 +3542,22 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2570 */ + .ec = TALER_EC_MERCHANT_REPORT_GENERATOR_FAILED, + .hint = gettext_noop ( + "The report ID provided to the backend is not known to the backend."), + .http_code = MHD_HTTP_NOT_IMPLEMENTED + }, + + { + /* 2571 */ + .ec = TALER_EC_MERCHANT_REPORT_FETCH_FAILED, + .hint = gettext_noop ( + "Failed to fetch the data for the report from the backend."), + .http_code = MHD_HTTP_BAD_GATEWAY + }, + + { /* 2600 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_INSTANCES_ALREADY_EXISTS, .hint = gettext_noop ( @@ -5515,7 +5547,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { /** * The length of @e code_hint_pairs. */ -static const unsigned int code_hint_pairs_length = 690; +static const unsigned int code_hint_pairs_length = 694; const char *