exchange

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

commit 214994750ba655d3cc4234b1bd757e06e903ba8e
parent ed3ba557793c53a1057d2945c6b76ffb7ff0fd5b
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu, 27 Nov 2025 13:52:13 +0100

latest GANA: fix EC sorting

Diffstat:
Msrc/include/taler/taler_error_codes.h | 688++++++++++++++++++++++++++++++++++++++++----------------------------------------
Msrc/util/taler_error_codes.c | 1307++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------
2 files changed, 1347 insertions(+), 648 deletions(-)

diff --git a/src/include/taler/taler_error_codes.h b/src/include/taler/taler_error_codes.h @@ -63,6 +63,22 @@ enum TALER_ErrorCode /** + * An internal failure happened on the client side. Details should be in the local logs. Check if you are using the latest available version or file a report with the developers. + * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_GENERIC_CLIENT_INTERNAL_ERROR = 2, + + + /** + * The client does not support the protocol version advertised by the server. + * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_GENERIC_CLIENT_UNSUPPORTED_PROTOCOL_VERSION = 3, + + + /** * The response we got from the server was not in the expected format. Most likely, the server does not speak the GNU Taler protocol. Check the URL and/or the network connection to the server. * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). * (A value of 0 indicates that the error is generated client-side). @@ -71,6 +87,334 @@ enum TALER_ErrorCode /** + * The operation timed out. Trying again might help. Check the network connection. + * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_GENERIC_TIMEOUT = 11, + + + /** + * The protocol version given by the server does not follow the required format. Most likely, the server does not speak the GNU Taler protocol. Check the URL and/or the network connection to the server. + * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_GENERIC_VERSION_MALFORMED = 12, + + + /** + * The service responded with a reply that was in the right data format, but the content did not satisfy the protocol. Please file a bug report. + * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_GENERIC_REPLY_MALFORMED = 13, + + + /** + * There is an error in the client-side configuration, for example an option is set to an invalid value. Check the logs and fix the local configuration. + * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_GENERIC_CONFIGURATION_INVALID = 14, + + + /** + * The client made a request to a service, but received an error response it does not know how to handle. Please file a bug report. + * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_GENERIC_UNEXPECTED_REQUEST_ERROR = 15, + + + /** + * The token used by the client to authorize the request does not grant the required permissions for the request. Check the requirements and obtain a suitable authorization token to proceed. + * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_GENERIC_TOKEN_PERMISSION_INSUFFICIENT = 16, + + + /** + * The HTTP method used is invalid for this endpoint. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers. + * Returned with an HTTP status code of #MHD_HTTP_METHOD_NOT_ALLOWED (405). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_GENERIC_METHOD_INVALID = 20, + + + /** + * There is no endpoint defined for the URL provided by the client. Check if you used the correct URL and/or file a report with the developers of the client software. + * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_GENERIC_ENDPOINT_UNKNOWN = 21, + + + /** + * The JSON in the client's request was malformed. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers. + * 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_GENERIC_JSON_INVALID = 22, + + + /** + * Some of the HTTP headers provided by the client were malformed and caused the server to not be able to handle the request. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers. + * 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_GENERIC_HTTP_HEADERS_MALFORMED = 23, + + + /** + * The payto:// URI provided by the client is malformed. Check that you are using the correct syntax as of RFC 8905 and/or that you entered the bank account number correctly. + * 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_GENERIC_PAYTO_URI_MALFORMED = 24, + + + /** + * A required parameter in the request was missing. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers. + * 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_GENERIC_PARAMETER_MISSING = 25, + + + /** + * A parameter in the request was malformed. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers. + * 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_GENERIC_PARAMETER_MALFORMED = 26, + + + /** + * The reserve public key was malformed. + * 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_GENERIC_RESERVE_PUB_MALFORMED = 27, + + + /** + * The body in the request could not be decompressed by the server. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers. + * 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_GENERIC_COMPRESSION_INVALID = 28, + + + /** + * A segment in the path of the URL provided by the client is malformed. Check that you are using the correct encoding for the URL. + * 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_GENERIC_PATH_SEGMENT_MALFORMED = 29, + + + /** + * The currency involved in the operation is not acceptable for this server. Check your configuration and make sure the currency specified for a given service provider is one of the currencies supported by that provider. + * 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_GENERIC_CURRENCY_MISMATCH = 30, + + + /** + * The URI is longer than the longest URI the HTTP server is willing to parse. If you believe this was a legitimate request, contact the server administrators and/or the software developers to increase the limit. + * Returned with an HTTP status code of #MHD_HTTP_URI_TOO_LONG (414). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_GENERIC_URI_TOO_LONG = 31, + + + /** + * The body is too large to be permissible for the endpoint. If you believe this was a legitimate request, contact the server administrators and/or the software developers to increase the limit. + * Returned with an HTTP status code of #MHD_HTTP_CONTENT_TOO_LARGE (413). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_GENERIC_UPLOAD_EXCEEDS_LIMIT = 32, + + + /** + * The service refused the request due to lack of proper authorization. Accessing this endpoint requires an access token from the account owner. + * 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_GENERIC_UNAUTHORIZED = 40, + + + /** + * The service refused the request as the given authorization token is unknown. You should request a valid access token from the account owner. + * 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_GENERIC_TOKEN_UNKNOWN = 41, + + + /** + * The service refused the request as the given authorization token expired. You should request a fresh authorization token from the account owner. + * 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_GENERIC_TOKEN_EXPIRED = 42, + + + /** + * The service refused the request as the given authorization token is invalid or malformed. You should check that you have the right credentials. + * 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_GENERIC_TOKEN_MALFORMED = 43, + + + /** + * The service refused the request due to lack of proper rights on the resource. You may need different credentials to be allowed to perform this operation. + * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_GENERIC_FORBIDDEN = 44, + + + /** + * The service failed initialize its connection to the database. The system administrator should check that the service has permissions to access the database and that the database is running. + * 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_DB_SETUP_FAILED = 50, + + + /** + * The service encountered an error event to just start the database transaction. The system administrator should check that the database is running. + * 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_DB_START_FAILED = 51, + + + /** + * The service failed to store information in its database. The system administrator should check that the database is running and review the service logs. + * 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_DB_STORE_FAILED = 52, + + + /** + * The service failed to fetch information from its database. The system administrator should check that the database is running and review the service logs. + * 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_DB_FETCH_FAILED = 53, + + + /** + * The service encountered an unrecoverable error trying to commit a transaction to the database. The system administrator should check that the database is running and review the service logs. + * 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_DB_COMMIT_FAILED = 54, + + + /** + * The service encountered an error event to commit the database transaction, even after repeatedly retrying it there was always a conflicting transaction. This indicates a repeated serialization error; it should only happen if some client maliciously tries to create conflicting concurrent transactions. It could also be a sign of a missing index. Check if you are using the latest available version and/or file a report with the developers. + * 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_DB_SOFT_FAILURE = 55, + + + /** + * The service's database is inconsistent and violates service-internal invariants. Check if you are using the latest available version and/or file a report with the developers. + * 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_DB_INVARIANT_FAILURE = 56, + + + /** + * The HTTP server experienced an internal invariant failure (bug). Check if you are using the latest available version and/or file a report with the developers. + * 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_INTERNAL_INVARIANT_FAILURE = 60, + + + /** + * The service could not compute a cryptographic hash over some JSON value. Check if you are using the latest available version and/or file a report with the developers. + * 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_FAILED_COMPUTE_JSON_HASH = 61, + + + /** + * The service could not compute an amount. Check if you are using the latest available version and/or file a report with the developers. + * 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_FAILED_COMPUTE_AMOUNT = 62, + + + /** + * The HTTP server had insufficient memory to parse the request. 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_PARSER_OUT_OF_MEMORY = 70, + + + /** + * The HTTP server failed to allocate memory. 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_ALLOCATION_FAILURE = 71, + + + /** + * The HTTP server failed to allocate memory for building JSON reply. 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_JSON_ALLOCATION_FAILURE = 72, + + + /** + * The HTTP server failed to allocate memory for making a CURL request. 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_CURL_ALLOCATION_FAILURE = 73, + + + /** + * The backend could not locate a required template to generate an HTML reply. The system administrator should check if the resource files are installed in the correct location and are readable to the service. + * Returned with an HTTP status code of #MHD_HTTP_NOT_ACCEPTABLE (406). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_GENERIC_FAILED_TO_LOAD_TEMPLATE = 74, + + + /** + * The backend could not expand the template to generate an HTML reply. The system administrator should investigate the logs and check if the templates are well-formed. + * 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_FAILED_TO_EXPAND_TEMPLATE = 75, + + + /** + * The requested feature is not implemented by the server. The system administrator of the server may try to update the software or build it with other options to enable the feature. + * 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_GENERIC_FEATURE_NOT_IMPLEMENTED = 76, + + + /** * 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). @@ -456,14 +800,6 @@ enum TALER_ErrorCode /** - * The operation timed out. Trying again might help. Check the network connection. - * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). - * (A value of 0 indicates that the error is generated client-side). - */ - TALER_EC_GENERIC_TIMEOUT = 11, - - - /** * The exchange did not find information about the specified transaction in the database. * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404). * (A value of 0 indicates that the error is generated client-side). @@ -656,14 +992,6 @@ enum TALER_ErrorCode /** - * The protocol version given by the server does not follow the required format. Most likely, the server does not speak the GNU Taler protocol. Check the URL and/or the network connection to the server. - * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). - * (A value of 0 indicates that the error is generated client-side). - */ - TALER_EC_GENERIC_VERSION_MALFORMED = 12, - - - /** * The signature made by the coin over the deposit permission is not valid. * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403). * (A value of 0 indicates that the error is generated client-side). @@ -760,14 +1088,6 @@ enum TALER_ErrorCode /** - * The service responded with a reply that was in the right data format, but the content did not satisfy the protocol. Please file a bug report. - * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). - * (A value of 0 indicates that the error is generated client-side). - */ - TALER_EC_GENERIC_REPLY_MALFORMED = 13, - - - /** * The exchange encountered melt fees exceeding the melted coin's contribution. * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400). * (A value of 0 indicates that the error is generated client-side). @@ -896,14 +1216,6 @@ enum TALER_ErrorCode /** - * There is an error in the client-side configuration, for example an option is set to an invalid value. Check the logs and fix the local configuration. - * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). - * (A value of 0 indicates that the error is generated client-side). - */ - TALER_EC_GENERIC_CONFIGURATION_INVALID = 14, - - - /** * The coin specified in the link request is unknown to the exchange. * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404). * (A value of 0 indicates that the error is generated client-side). @@ -960,14 +1272,6 @@ enum TALER_ErrorCode /** - * The client made a request to a service, but received an error response it does not know how to handle. Please file a bug report. - * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). - * (A value of 0 indicates that the error is generated client-side). - */ - TALER_EC_GENERIC_UNEXPECTED_REQUEST_ERROR = 15, - - - /** * The exchange knows literally nothing about the coin we were asked to refund. But without a transaction history, we cannot issue a refund. This is kind-of OK, the owner should just refresh it directly without executing the refund. * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404). * (A value of 0 indicates that the error is generated client-side). @@ -1136,14 +1440,6 @@ enum TALER_ErrorCode /** - * The token used by the client to authorize the request does not grant the required permissions for the request. Check the requirements and obtain a suitable authorization token to proceed. - * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403). - * (A value of 0 indicates that the error is generated client-side). - */ - TALER_EC_GENERIC_TOKEN_PERMISSION_INSUFFICIENT = 16, - - - /** * This exchange does not allow clients to request /keys for times other than the current (exchange) time. * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403). * (A value of 0 indicates that the error is generated client-side). @@ -2088,22 +2384,6 @@ enum TALER_ErrorCode /** - * An internal failure happened on the client side. Details should be in the local logs. Check if you are using the latest available version or file a report with the developers. - * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). - * (A value of 0 indicates that the error is generated client-side). - */ - TALER_EC_GENERIC_CLIENT_INTERNAL_ERROR = 2, - - - /** - * The HTTP method used is invalid for this endpoint. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers. - * Returned with an HTTP status code of #MHD_HTTP_METHOD_NOT_ALLOWED (405). - * (A value of 0 indicates that the error is generated client-side). - */ - TALER_EC_GENERIC_METHOD_INVALID = 20, - - - /** * The backend could not find the merchant instance specified in the request. * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404). * (A value of 0 indicates that the error is generated client-side). @@ -2376,14 +2656,6 @@ enum TALER_ErrorCode /** - * There is no endpoint defined for the URL provided by the client. Check if you used the correct URL and/or file a report with the developers of the client software. - * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404). - * (A value of 0 indicates that the error is generated client-side). - */ - TALER_EC_GENERIC_ENDPOINT_UNKNOWN = 21, - - - /** * 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). @@ -2771,14 +3043,6 @@ enum TALER_ErrorCode /** - * The JSON in the client's request was malformed. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers. - * 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_GENERIC_JSON_INVALID = 22, - - - /** * The contract hash does not match the given order ID. * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400). * (A value of 0 indicates that the error is generated client-side). @@ -2915,14 +3179,6 @@ enum TALER_ErrorCode /** - * Some of the HTTP headers provided by the client were malformed and caused the server to not be able to handle the request. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers. - * 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_GENERIC_HTTP_HEADERS_MALFORMED = 23, - - - /** * We could not claim the order because the backend is unaware of it. * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404). * (A value of 0 indicates that the error is generated client-side). @@ -2955,14 +3211,6 @@ enum TALER_ErrorCode /** - * The payto:// URI provided by the client is malformed. Check that you are using the correct syntax as of RFC 8905 and/or that you entered the bank account number correctly. - * 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_GENERIC_PAYTO_URI_MALFORMED = 24, - - - /** * The client failed to unblind the signature returned by the merchant. * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). * (A value of 0 indicates that the error is generated client-side). @@ -3011,14 +3259,6 @@ enum TALER_ErrorCode /** - * A required parameter in the request was missing. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers. - * 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_GENERIC_PARAMETER_MISSING = 25, - - - /** * The merchant instance has no active bank accounts configured. However, at least one bank account must be available to create new orders. * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404). * (A value of 0 indicates that the error is generated client-side). @@ -3278,14 +3518,6 @@ enum TALER_ErrorCode /** - * A parameter in the request was malformed. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers. - * 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_GENERIC_PARAMETER_MALFORMED = 26, - - - /** * 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). @@ -3406,14 +3638,6 @@ enum TALER_ErrorCode /** - * The reserve public key was malformed. - * 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_GENERIC_RESERVE_PUB_MALFORMED = 27, - - - /** * The requested wire method is not supported by the exchange. * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409). * (A value of 0 indicates that the error is generated client-side). @@ -3470,14 +3694,6 @@ enum TALER_ErrorCode /** - * The body in the request could not be decompressed by the server. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers. - * 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_GENERIC_COMPRESSION_INVALID = 28, - - - /** * The merchant backend encountered a failure in computing the deposit total. * Returned with an HTTP status code of #MHD_HTTP_OK (200). * (A value of 0 indicates that the error is generated client-side). @@ -3536,14 +3752,6 @@ enum TALER_ErrorCode /** - * A segment in the path of the URL provided by the client is malformed. Check that you are using the correct encoding for the URL. - * 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_GENERIC_PATH_SEGMENT_MALFORMED = 29, - - - /** * The webhook ID elready exists. * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409). * (A value of 0 indicates that the error is generated client-side). @@ -3561,22 +3769,6 @@ enum TALER_ErrorCode /** - * The client does not support the protocol version advertised by the server. - * Returned with an HTTP status code of #MHD_HTTP_UNINITIALIZED (0). - * (A value of 0 indicates that the error is generated client-side). - */ - TALER_EC_GENERIC_CLIENT_UNSUPPORTED_PROTOCOL_VERSION = 3, - - - /** - * The currency involved in the operation is not acceptable for this server. Check your configuration and make sure the currency specified for a given service provider is one of the currencies supported by that provider. - * 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_GENERIC_CURRENCY_MISMATCH = 30, - - - /** * The auditor refused the connection due to a lack of authorization. * Returned with an HTTP status code of #MHD_HTTP_UNAUTHORIZED (401). * (A value of 0 indicates that the error is generated client-side). @@ -3593,14 +3785,6 @@ enum TALER_ErrorCode /** - * The URI is longer than the longest URI the HTTP server is willing to parse. If you believe this was a legitimate request, contact the server administrators and/or the software developers to increase the limit. - * Returned with an HTTP status code of #MHD_HTTP_URI_TOO_LONG (414). - * (A value of 0 indicates that the error is generated client-side). - */ - TALER_EC_GENERIC_URI_TOO_LONG = 31, - - - /** * The signature from the exchange on the deposit confirmation is invalid. * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403). * (A value of 0 indicates that the error is generated client-side). @@ -3633,70 +3817,6 @@ enum TALER_ErrorCode /** - * The body is too large to be permissible for the endpoint. If you believe this was a legitimate request, contact the server administrators and/or the software developers to increase the limit. - * Returned with an HTTP status code of #MHD_HTTP_CONTENT_TOO_LARGE (413). - * (A value of 0 indicates that the error is generated client-side). - */ - TALER_EC_GENERIC_UPLOAD_EXCEEDS_LIMIT = 32, - - - /** - * The service refused the request due to lack of proper authorization. Accessing this endpoint requires an access token from the account owner. - * 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_GENERIC_UNAUTHORIZED = 40, - - - /** - * The service refused the request as the given authorization token is unknown. You should request a valid access token from the account owner. - * 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_GENERIC_TOKEN_UNKNOWN = 41, - - - /** - * The service refused the request as the given authorization token expired. You should request a fresh authorization token from the account owner. - * 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_GENERIC_TOKEN_EXPIRED = 42, - - - /** - * The service refused the request as the given authorization token is invalid or malformed. You should check that you have the right credentials. - * 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_GENERIC_TOKEN_MALFORMED = 43, - - - /** - * The service refused the request due to lack of proper rights on the resource. You may need different credentials to be allowed to perform this operation. - * Returned with an HTTP status code of #MHD_HTTP_FORBIDDEN (403). - * (A value of 0 indicates that the error is generated client-side). - */ - TALER_EC_GENERIC_FORBIDDEN = 44, - - - /** - * The service failed initialize its connection to the database. The system administrator should check that the service has permissions to access the database and that the database is running. - * 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_DB_SETUP_FAILED = 50, - - - /** - * The service encountered an error event to just start the database transaction. The system administrator should check that the database is running. - * 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_DB_START_FAILED = 51, - - - /** * Wire transfer attempted with credit and debit party being the same bank account. * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400). * (A value of 0 indicates that the error is generated client-side). @@ -4145,62 +4265,6 @@ enum TALER_ErrorCode /** - * The service failed to store information in its database. The system administrator should check that the database is running and review the service logs. - * 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_DB_STORE_FAILED = 52, - - - /** - * The service failed to fetch information from its database. The system administrator should check that the database is running and review the service logs. - * 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_DB_FETCH_FAILED = 53, - - - /** - * The service encountered an unrecoverable error trying to commit a transaction to the database. The system administrator should check that the database is running and review the service logs. - * 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_DB_COMMIT_FAILED = 54, - - - /** - * The service encountered an error event to commit the database transaction, even after repeatedly retrying it there was always a conflicting transaction. This indicates a repeated serialization error; it should only happen if some client maliciously tries to create conflicting concurrent transactions. It could also be a sign of a missing index. Check if you are using the latest available version and/or file a report with the developers. - * 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_DB_SOFT_FAILURE = 55, - - - /** - * The service's database is inconsistent and violates service-internal invariants. Check if you are using the latest available version and/or file a report with the developers. - * 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_DB_INVARIANT_FAILURE = 56, - - - /** - * The HTTP server experienced an internal invariant failure (bug). Check if you are using the latest available version and/or file a report with the developers. - * 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_INTERNAL_INVARIANT_FAILURE = 60, - - - /** - * The service could not compute a cryptographic hash over some JSON value. Check if you are using the latest available version and/or file a report with the developers. - * 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_FAILED_COMPUTE_JSON_HASH = 61, - - - /** * The sync service failed find the account in its database. * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND (404). * (A value of 0 indicates that the error is generated client-side). @@ -4321,22 +4385,6 @@ enum TALER_ErrorCode /** - * The service could not compute an amount. Check if you are using the latest available version and/or file a report with the developers. - * 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_FAILED_COMPUTE_AMOUNT = 62, - - - /** - * The HTTP server had insufficient memory to parse the request. 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_PARSER_OUT_OF_MEMORY = 70, - - - /** * The wallet does not implement a version of the exchange protocol that is compatible with the protocol version of the exchange. * Returned with an HTTP status code of #MHD_HTTP_NOT_IMPLEMENTED (501). * (A value of 0 indicates that the error is generated client-side). @@ -4721,54 +4769,6 @@ enum TALER_ErrorCode /** - * The HTTP server failed to allocate memory. 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_ALLOCATION_FAILURE = 71, - - - /** - * The HTTP server failed to allocate memory for building JSON reply. 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_JSON_ALLOCATION_FAILURE = 72, - - - /** - * The HTTP server failed to allocate memory for making a CURL request. 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_CURL_ALLOCATION_FAILURE = 73, - - - /** - * The backend could not locate a required template to generate an HTML reply. The system administrator should check if the resource files are installed in the correct location and are readable to the service. - * Returned with an HTTP status code of #MHD_HTTP_NOT_ACCEPTABLE (406). - * (A value of 0 indicates that the error is generated client-side). - */ - TALER_EC_GENERIC_FAILED_TO_LOAD_TEMPLATE = 74, - - - /** - * The backend could not expand the template to generate an HTML reply. The system administrator should investigate the logs and check if the templates are well-formed. - * 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_FAILED_TO_EXPAND_TEMPLATE = 75, - - - /** - * The requested feature is not implemented by the server. The system administrator of the server may try to update the software or build it with other options to enable the feature. - * 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_GENERIC_FEATURE_NOT_IMPLEMENTED = 76, - - - /** * We encountered a timeout with our payment backend. * Returned with an HTTP status code of #MHD_HTTP_GATEWAY_TIMEOUT (504). * (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 @@ -20,6 +20,7 @@ Note: the LGPL does not apply to all components of GNU Taler, but it does apply to this file. */ +#include <gnunet/gnunet_util_lib.h> #include <taler/taler_error_codes.h> #include <stddef.h> #include <microhttpd.h> @@ -58,12 +59,14 @@ struct ErrorCodeAndHint static const struct ErrorCodeAndHint code_hint_pairs[] = { { + /* 0 */ .ec = TALER_EC_NONE, .hint = gettext_noop ("Special code to indicate success (no error)."), .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 1 */ .ec = TALER_EC_INVALID, .hint = gettext_noop ( "An error response did not include an error code in the format expected by the client. Most likely, the server does not speak the GNU Taler protocol. Check the URL and/or the network connection to the server."), @@ -71,6 +74,23 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2 */ + .ec = TALER_EC_GENERIC_CLIENT_INTERNAL_ERROR, + .hint = gettext_noop ( + "An internal failure happened on the client side. Details should be in the local logs. Check if you are using the latest available version or file a report with the developers."), + .http_code = MHD_HTTP_UNINITIALIZED + }, + + { + /* 3 */ + .ec = TALER_EC_GENERIC_CLIENT_UNSUPPORTED_PROTOCOL_VERSION, + .hint = gettext_noop ( + "The client does not support the protocol version advertised by the server."), + .http_code = MHD_HTTP_UNINITIALIZED + }, + + { + /* 10 */ .ec = TALER_EC_GENERIC_INVALID_RESPONSE, .hint = gettext_noop ( "The response we got from the server was not in the expected format. Most likely, the server does not speak the GNU Taler protocol. Check the URL and/or the network connection to the server."), @@ -78,6 +98,334 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 11 */ + .ec = TALER_EC_GENERIC_TIMEOUT, + .hint = gettext_noop ( + "The operation timed out. Trying again might help. Check the network connection."), + .http_code = MHD_HTTP_UNINITIALIZED + }, + + { + /* 12 */ + .ec = TALER_EC_GENERIC_VERSION_MALFORMED, + .hint = gettext_noop ( + "The protocol version given by the server does not follow the required format. Most likely, the server does not speak the GNU Taler protocol. Check the URL and/or the network connection to the server."), + .http_code = MHD_HTTP_UNINITIALIZED + }, + + { + /* 13 */ + .ec = TALER_EC_GENERIC_REPLY_MALFORMED, + .hint = gettext_noop ( + "The service responded with a reply that was in the right data format, but the content did not satisfy the protocol. Please file a bug report."), + .http_code = MHD_HTTP_UNINITIALIZED + }, + + { + /* 14 */ + .ec = TALER_EC_GENERIC_CONFIGURATION_INVALID, + .hint = gettext_noop ( + "There is an error in the client-side configuration, for example an option is set to an invalid value. Check the logs and fix the local configuration."), + .http_code = MHD_HTTP_UNINITIALIZED + }, + + { + /* 15 */ + .ec = TALER_EC_GENERIC_UNEXPECTED_REQUEST_ERROR, + .hint = gettext_noop ( + "The client made a request to a service, but received an error response it does not know how to handle. Please file a bug report."), + .http_code = MHD_HTTP_UNINITIALIZED + }, + + { + /* 16 */ + .ec = TALER_EC_GENERIC_TOKEN_PERMISSION_INSUFFICIENT, + .hint = gettext_noop ( + "The token used by the client to authorize the request does not grant the required permissions for the request. Check the requirements and obtain a suitable authorization token to proceed."), + .http_code = MHD_HTTP_FORBIDDEN + }, + + { + /* 20 */ + .ec = TALER_EC_GENERIC_METHOD_INVALID, + .hint = gettext_noop ( + "The HTTP method used is invalid for this endpoint. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers."), + .http_code = MHD_HTTP_METHOD_NOT_ALLOWED + }, + + { + /* 21 */ + .ec = TALER_EC_GENERIC_ENDPOINT_UNKNOWN, + .hint = gettext_noop ( + "There is no endpoint defined for the URL provided by the client. Check if you used the correct URL and/or file a report with the developers of the client software."), + .http_code = MHD_HTTP_NOT_FOUND + }, + + { + /* 22 */ + .ec = TALER_EC_GENERIC_JSON_INVALID, + .hint = gettext_noop ( + "The JSON in the client's request was malformed. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers."), + .http_code = MHD_HTTP_BAD_REQUEST + }, + + { + /* 23 */ + .ec = TALER_EC_GENERIC_HTTP_HEADERS_MALFORMED, + .hint = gettext_noop ( + "Some of the HTTP headers provided by the client were malformed and caused the server to not be able to handle the request. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers."), + .http_code = MHD_HTTP_BAD_REQUEST + }, + + { + /* 24 */ + .ec = TALER_EC_GENERIC_PAYTO_URI_MALFORMED, + .hint = gettext_noop ( + "The payto:// URI provided by the client is malformed. Check that you are using the correct syntax as of RFC 8905 and/or that you entered the bank account number correctly."), + .http_code = MHD_HTTP_BAD_REQUEST + }, + + { + /* 25 */ + .ec = TALER_EC_GENERIC_PARAMETER_MISSING, + .hint = gettext_noop ( + "A required parameter in the request was missing. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers."), + .http_code = MHD_HTTP_BAD_REQUEST + }, + + { + /* 26 */ + .ec = TALER_EC_GENERIC_PARAMETER_MALFORMED, + .hint = gettext_noop ( + "A parameter in the request was malformed. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers."), + .http_code = MHD_HTTP_BAD_REQUEST + }, + + { + /* 27 */ + .ec = TALER_EC_GENERIC_RESERVE_PUB_MALFORMED, + .hint = gettext_noop ("The reserve public key was malformed."), + .http_code = MHD_HTTP_BAD_REQUEST + }, + + { + /* 28 */ + .ec = TALER_EC_GENERIC_COMPRESSION_INVALID, + .hint = gettext_noop ( + "The body in the request could not be decompressed by the server. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers."), + .http_code = MHD_HTTP_BAD_REQUEST + }, + + { + /* 29 */ + .ec = TALER_EC_GENERIC_PATH_SEGMENT_MALFORMED, + .hint = gettext_noop ( + "A segment in the path of the URL provided by the client is malformed. Check that you are using the correct encoding for the URL."), + .http_code = MHD_HTTP_BAD_REQUEST + }, + + { + /* 30 */ + .ec = TALER_EC_GENERIC_CURRENCY_MISMATCH, + .hint = gettext_noop ( + "The currency involved in the operation is not acceptable for this server. Check your configuration and make sure the currency specified for a given service provider is one of the currencies supported by that provider."), + .http_code = MHD_HTTP_BAD_REQUEST + }, + + { + /* 31 */ + .ec = TALER_EC_GENERIC_URI_TOO_LONG, + .hint = gettext_noop ( + "The URI is longer than the longest URI the HTTP server is willing to parse. If you believe this was a legitimate request, contact the server administrators and/or the software developers to increase the limit."), + .http_code = MHD_HTTP_URI_TOO_LONG + }, + + { + /* 32 */ + .ec = TALER_EC_GENERIC_UPLOAD_EXCEEDS_LIMIT, + .hint = gettext_noop ( + "The body is too large to be permissible for the endpoint. If you believe this was a legitimate request, contact the server administrators and/or the software developers to increase the limit."), + .http_code = MHD_HTTP_CONTENT_TOO_LARGE + }, + + { + /* 40 */ + .ec = TALER_EC_GENERIC_UNAUTHORIZED, + .hint = gettext_noop ( + "The service refused the request due to lack of proper authorization. Accessing this endpoint requires an access token from the account owner."), + .http_code = MHD_HTTP_UNAUTHORIZED + }, + + { + /* 41 */ + .ec = TALER_EC_GENERIC_TOKEN_UNKNOWN, + .hint = gettext_noop ( + "The service refused the request as the given authorization token is unknown. You should request a valid access token from the account owner."), + .http_code = MHD_HTTP_UNAUTHORIZED + }, + + { + /* 42 */ + .ec = TALER_EC_GENERIC_TOKEN_EXPIRED, + .hint = gettext_noop ( + "The service refused the request as the given authorization token expired. You should request a fresh authorization token from the account owner."), + .http_code = MHD_HTTP_UNAUTHORIZED + }, + + { + /* 43 */ + .ec = TALER_EC_GENERIC_TOKEN_MALFORMED, + .hint = gettext_noop ( + "The service refused the request as the given authorization token is invalid or malformed. You should check that you have the right credentials."), + .http_code = MHD_HTTP_UNAUTHORIZED + }, + + { + /* 44 */ + .ec = TALER_EC_GENERIC_FORBIDDEN, + .hint = gettext_noop ( + "The service refused the request due to lack of proper rights on the resource. You may need different credentials to be allowed to perform this operation."), + .http_code = MHD_HTTP_FORBIDDEN + }, + + { + /* 50 */ + .ec = TALER_EC_GENERIC_DB_SETUP_FAILED, + .hint = gettext_noop ( + "The service failed initialize its connection to the database. The system administrator should check that the service has permissions to access the database and that the database is running."), + .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR + }, + + { + /* 51 */ + .ec = TALER_EC_GENERIC_DB_START_FAILED, + .hint = gettext_noop ( + "The service encountered an error event to just start the database transaction. The system administrator should check that the database is running."), + .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR + }, + + { + /* 52 */ + .ec = TALER_EC_GENERIC_DB_STORE_FAILED, + .hint = gettext_noop ( + "The service failed to store information in its database. The system administrator should check that the database is running and review the service logs."), + .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR + }, + + { + /* 53 */ + .ec = TALER_EC_GENERIC_DB_FETCH_FAILED, + .hint = gettext_noop ( + "The service failed to fetch information from its database. The system administrator should check that the database is running and review the service logs."), + .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR + }, + + { + /* 54 */ + .ec = TALER_EC_GENERIC_DB_COMMIT_FAILED, + .hint = gettext_noop ( + "The service encountered an unrecoverable error trying to commit a transaction to the database. The system administrator should check that the database is running and review the service logs."), + .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR + }, + + { + /* 55 */ + .ec = TALER_EC_GENERIC_DB_SOFT_FAILURE, + .hint = gettext_noop ( + "The service encountered an error event to commit the database transaction, even after repeatedly retrying it there was always a conflicting transaction. This indicates a repeated serialization error; it should only happen if some client maliciously tries to create conflicting concurrent transactions. It could also be a sign of a missing index. Check if you are using the latest available version and/or file a report with the developers."), + .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR + }, + + { + /* 56 */ + .ec = TALER_EC_GENERIC_DB_INVARIANT_FAILURE, + .hint = gettext_noop ( + "The service's database is inconsistent and violates service-internal invariants. Check if you are using the latest available version and/or file a report with the developers."), + .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR + }, + + { + /* 60 */ + .ec = TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE, + .hint = gettext_noop ( + "The HTTP server experienced an internal invariant failure (bug). Check if you are using the latest available version and/or file a report with the developers."), + .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR + }, + + { + /* 61 */ + .ec = TALER_EC_GENERIC_FAILED_COMPUTE_JSON_HASH, + .hint = gettext_noop ( + "The service could not compute a cryptographic hash over some JSON value. Check if you are using the latest available version and/or file a report with the developers."), + .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR + }, + + { + /* 62 */ + .ec = TALER_EC_GENERIC_FAILED_COMPUTE_AMOUNT, + .hint = gettext_noop ( + "The service could not compute an amount. Check if you are using the latest available version and/or file a report with the developers."), + .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR + }, + + { + /* 70 */ + .ec = TALER_EC_GENERIC_PARSER_OUT_OF_MEMORY, + .hint = gettext_noop ( + "The HTTP server had insufficient memory to parse the request. 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 + }, + + { + /* 71 */ + .ec = TALER_EC_GENERIC_ALLOCATION_FAILURE, + .hint = gettext_noop ( + "The HTTP server failed to allocate memory. 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 + }, + + { + /* 72 */ + .ec = TALER_EC_GENERIC_JSON_ALLOCATION_FAILURE, + .hint = gettext_noop ( + "The HTTP server failed to allocate memory for building JSON reply. 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 + }, + + { + /* 73 */ + .ec = TALER_EC_GENERIC_CURL_ALLOCATION_FAILURE, + .hint = gettext_noop ( + "The HTTP server failed to allocate memory for making a CURL request. 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 + }, + + { + /* 74 */ + .ec = TALER_EC_GENERIC_FAILED_TO_LOAD_TEMPLATE, + .hint = gettext_noop ( + "The backend could not locate a required template to generate an HTML reply. The system administrator should check if the resource files are installed in the correct location and are readable to the service."), + .http_code = MHD_HTTP_NOT_ACCEPTABLE + }, + + { + /* 75 */ + .ec = TALER_EC_GENERIC_FAILED_TO_EXPAND_TEMPLATE, + .hint = gettext_noop ( + "The backend could not expand the template to generate an HTML reply. The system administrator should investigate the logs and check if the templates are well-formed."), + .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR + }, + + { + /* 76 */ + .ec = TALER_EC_GENERIC_FEATURE_NOT_IMPLEMENTED, + .hint = gettext_noop ( + "The requested feature is not implemented by the server. The system administrator of the server may try to update the software or build it with other options to enable the feature."), + .http_code = MHD_HTTP_NOT_IMPLEMENTED + }, + + { + /* 1000 */ .ec = TALER_EC_EXCHANGE_GENERIC_BAD_CONFIGURATION, .hint = gettext_noop ( "Exchange is badly configured and thus cannot operate."), @@ -85,12 +433,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1001 */ .ec = TALER_EC_EXCHANGE_GENERIC_OPERATION_UNKNOWN, .hint = gettext_noop ("Operation specified unknown for this endpoint."), .http_code = MHD_HTTP_NOT_FOUND }, { + /* 1002 */ .ec = TALER_EC_EXCHANGE_GENERIC_WRONG_NUMBER_OF_SEGMENTS, .hint = gettext_noop ( "The number of segments included in the URI does not match the number of segments expected by the endpoint."), @@ -98,6 +448,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1003 */ .ec = TALER_EC_EXCHANGE_GENERIC_COIN_CONFLICTING_DENOMINATION_KEY, .hint = gettext_noop ( "The same coin was already used with a different denomination previously."), @@ -105,6 +456,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1004 */ .ec = TALER_EC_EXCHANGE_GENERIC_COINS_INVALID_COIN_PUB, .hint = gettext_noop ( "The public key of given to a \"/coins/\" endpoint of the exchange was malformed."), @@ -112,6 +464,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1005 */ .ec = TALER_EC_EXCHANGE_GENERIC_DENOMINATION_KEY_UNKNOWN, .hint = gettext_noop ( "The exchange is not aware of the denomination key the wallet requested for the operation."), @@ -119,6 +472,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1006 */ .ec = TALER_EC_EXCHANGE_DENOMINATION_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature of the denomination key over the coin is not valid."), @@ -126,6 +480,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1007 */ .ec = TALER_EC_EXCHANGE_GENERIC_KEYS_MISSING, .hint = gettext_noop ( "The exchange failed to perform the operation as it could not find the private keys. This is a problem with the exchange setup, not with the client's request."), @@ -133,6 +488,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1008 */ .ec = TALER_EC_EXCHANGE_GENERIC_DENOMINATION_VALIDITY_IN_FUTURE, .hint = gettext_noop ( "Validity period of the denomination lies in the future."), @@ -140,6 +496,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1009 */ .ec = TALER_EC_EXCHANGE_GENERIC_DENOMINATION_EXPIRED, .hint = gettext_noop ( "Denomination key of the coin is past its expiration time for the requested operation."), @@ -147,12 +504,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1010 */ .ec = TALER_EC_EXCHANGE_GENERIC_DENOMINATION_REVOKED, .hint = gettext_noop ("Denomination key of the coin has been revoked."), .http_code = MHD_HTTP_GONE }, { + /* 1011 */ .ec = TALER_EC_EXCHANGE_GENERIC_SECMOD_TIMEOUT, .hint = gettext_noop ( "An operation where the exchange interacted with a security module timed out."), @@ -160,6 +519,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1012 */ .ec = TALER_EC_EXCHANGE_GENERIC_INSUFFICIENT_FUNDS, .hint = gettext_noop ( "The respective coin did not have sufficient residual value for the operation. The \"history\" in this response provides the \"residual_value\" of the coin, which may be less than its \"original_value\"."), @@ -167,6 +527,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1013 */ .ec = TALER_EC_EXCHANGE_GENERIC_COIN_HISTORY_COMPUTATION_FAILED, .hint = gettext_noop ( "The exchange had an internal error reconstructing the transaction history of the coin that was being processed."), @@ -174,6 +535,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1014 */ .ec = TALER_EC_EXCHANGE_GENERIC_HISTORY_DB_ERROR_INSUFFICIENT_FUNDS, .hint = gettext_noop ( "The exchange failed to obtain the transaction history of the given coin from the database while generating an insufficient funds errors."), @@ -181,6 +543,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1015 */ .ec = TALER_EC_EXCHANGE_GENERIC_COIN_CONFLICTING_AGE_HASH, .hint = gettext_noop ( "The same coin was already used with a different age hash previously."), @@ -188,6 +551,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1016 */ .ec = TALER_EC_EXCHANGE_GENERIC_INVALID_DENOMINATION_CIPHER_FOR_OPERATION, .hint = gettext_noop ( "The requested operation is not valid for the cipher used by the selected denomination."), @@ -195,6 +559,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1017 */ .ec = TALER_EC_EXCHANGE_GENERIC_CIPHER_MISMATCH, .hint = gettext_noop ( "The provided arguments for the operation use inconsistent ciphers."), @@ -202,6 +567,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1018 */ .ec = TALER_EC_EXCHANGE_GENERIC_NEW_DENOMS_ARRAY_SIZE_EXCESSIVE, .hint = gettext_noop ( "The number of denominations specified in the request exceeds the limit of the exchange."), @@ -209,12 +575,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1019 */ .ec = TALER_EC_EXCHANGE_GENERIC_COIN_UNKNOWN, .hint = gettext_noop ("The coin is not known to the exchange (yet)."), .http_code = MHD_HTTP_NOT_FOUND }, { + /* 1020 */ .ec = TALER_EC_EXCHANGE_GENERIC_CLOCK_SKEW, .hint = gettext_noop ( "The time at the server is too far off from the time specified in the request. Most likely the client system time is wrong."), @@ -222,6 +590,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1021 */ .ec = TALER_EC_EXCHANGE_GENERIC_AMOUNT_EXCEEDS_DENOMINATION_VALUE, .hint = gettext_noop ( "The specified amount for the coin is higher than the value of the denomination of the coin."), @@ -229,6 +598,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1022 */ .ec = TALER_EC_EXCHANGE_GENERIC_GLOBAL_FEES_MISSING, .hint = gettext_noop ( "The exchange was not properly configured with global fees."), @@ -236,6 +606,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1023 */ .ec = TALER_EC_EXCHANGE_GENERIC_WIRE_FEES_MISSING, .hint = gettext_noop ( "The exchange was not properly configured with wire fees."), @@ -243,24 +614,28 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1024 */ .ec = TALER_EC_EXCHANGE_GENERIC_PURSE_PUB_MALFORMED, .hint = gettext_noop ("The purse public key was malformed."), .http_code = MHD_HTTP_BAD_REQUEST }, { + /* 1025 */ .ec = TALER_EC_EXCHANGE_GENERIC_PURSE_UNKNOWN, .hint = gettext_noop ("The purse is unknown."), .http_code = MHD_HTTP_NOT_FOUND }, { + /* 1026 */ .ec = TALER_EC_EXCHANGE_GENERIC_PURSE_EXPIRED, .hint = gettext_noop ("The purse has expired."), .http_code = MHD_HTTP_GONE }, { + /* 1027 */ .ec = TALER_EC_EXCHANGE_GENERIC_RESERVE_UNKNOWN, .hint = gettext_noop ( "The exchange has no information about the \"reserve_pub\" that was given."), @@ -268,6 +643,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1028 */ .ec = TALER_EC_EXCHANGE_GENERIC_KYC_REQUIRED, .hint = gettext_noop ( "The exchange is not allowed to proceed with the operation until the client has satisfied a KYC check."), @@ -275,6 +651,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1029 */ .ec = TALER_EC_EXCHANGE_PURSE_DEPOSIT_COIN_CONFLICTING_ATTEST_VS_AGE_COMMITMENT, .hint = gettext_noop ( @@ -283,6 +660,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1030 */ .ec = TALER_EC_EXCHANGE_PURSE_DEPOSIT_COIN_AGE_ATTESTATION_FAILURE, .hint = gettext_noop ( "The provided attestation for the minimum age couldn't be verified by the exchange."), @@ -290,12 +668,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1031 */ .ec = TALER_EC_EXCHANGE_GENERIC_PURSE_DELETED, .hint = gettext_noop ("The purse was deleted."), .http_code = MHD_HTTP_GONE }, { + /* 1032 */ .ec = TALER_EC_EXCHANGE_GENERIC_AML_OFFICER_PUB_MALFORMED, .hint = gettext_noop ( "The public key of the AML officer in the URL was malformed."), @@ -303,6 +683,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1033 */ .ec = TALER_EC_EXCHANGE_GENERIC_AML_OFFICER_GET_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature affirming the GET request of the AML officer is invalid."), @@ -310,6 +691,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1034 */ .ec = TALER_EC_EXCHANGE_GENERIC_AML_OFFICER_ACCESS_DENIED, .hint = gettext_noop ( "The specified AML officer does not have access at this time."), @@ -317,6 +699,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1035 */ .ec = TALER_EC_EXCHANGE_GENERIC_AML_PENDING, .hint = gettext_noop ( "The requested operation is denied pending the resolution of an anti-money laundering investigation by the exchange operator. This is a manual process, please wait and retry later."), @@ -324,6 +707,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1036 */ .ec = TALER_EC_EXCHANGE_GENERIC_AML_FROZEN, .hint = gettext_noop ( "The requested operation is denied as the account was frozen on suspicion of money laundering. Please contact the exchange operator."), @@ -331,6 +715,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1037 */ .ec = TALER_EC_EXCHANGE_GENERIC_KYC_CONVERTER_FAILED, .hint = gettext_noop ( "The exchange failed to start a KYC attribute conversion helper process. It is likely configured incorrectly."), @@ -338,6 +723,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1038 */ .ec = TALER_EC_EXCHANGE_GENERIC_KYC_FAILED, .hint = gettext_noop ( "The KYC operation failed. This could be because the KYC provider rejected the KYC data provided, or because the user aborted the KYC process."), @@ -345,6 +731,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1039 */ .ec = TALER_EC_EXCHANGE_GENERIC_KYC_FALLBACK_FAILED, .hint = gettext_noop ( "A fallback measure for a KYC operation failed. This is a bug. Users should contact the exchange operator."), @@ -352,6 +739,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1040 */ .ec = TALER_EC_EXCHANGE_GENERIC_KYC_FALLBACK_UNKNOWN, .hint = gettext_noop ( "The specified fallback measure for a KYC operation is unknown. This is a bug. Users should contact the exchange operator."), @@ -359,6 +747,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1041 */ .ec = TALER_EC_EXCHANGE_GENERIC_BANK_ACCOUNT_UNKNOWN, .hint = gettext_noop ( "The exchange is not aware of the bank account (payto URI or hash thereof) specified in the request and thus cannot perform the requested operation. The client should check that the select account is correct."), @@ -366,6 +755,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1042 */ .ec = TALER_EC_EXCHANGE_GENERIC_AML_PROGRAM_RECURSION_DETECTED, .hint = gettext_noop ( "The AML processing at the exchange did not terminate in an adequate timeframe. This is likely a configuration problem at the payment service provider. Users should contact the exchange operator."), @@ -373,6 +763,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1043 */ .ec = TALER_EC_EXCHANGE_GENERIC_KYC_SANCTION_LIST_CHECK_FAILED, .hint = gettext_noop ( "A check against sanction lists failed. This is indicative of an internal error in the sanction list processing logic. This needs to be investigated by the exchange operator."), @@ -380,6 +771,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1044 */ .ec = TALER_EC_EXCHANGE_GENERIC_TYPST_TEMPLATE_FAILURE, .hint = gettext_noop ( "The process to generate a PDF from a template failed. A likely cause is a syntactic error in the template. This needs to be investigated by the exchange operator."), @@ -387,6 +779,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1045 */ .ec = TALER_EC_EXCHANGE_GENERIC_PDFTK_FAILURE, .hint = gettext_noop ( "A process to combine multiple PDFs into one larger document failed. A likely cause is a resource exhaustion problem on the server. This needs to be investigated by the exchange operator."), @@ -394,6 +787,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1046 */ .ec = TALER_EC_EXCHANGE_GENERIC_TYPST_CRASH, .hint = gettext_noop ( "The process to generate a PDF from a template crashed. A likely cause is a bug in the Typst software. This needs to be investigated by the exchange operator."), @@ -401,6 +795,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1047 */ .ec = TALER_EC_EXCHANGE_GENERIC_PDFTK_CRASH, .hint = gettext_noop ( "The process to combine multiple PDFs into a larger document crashed. A likely cause is a bug in the pdftk software. This needs to be investigated by the exchange operator."), @@ -408,13 +803,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { - .ec = TALER_EC_GENERIC_TIMEOUT, - .hint = gettext_noop ( - "The operation timed out. Trying again might help. Check the network connection."), - .http_code = MHD_HTTP_UNINITIALIZED - }, - - { + /* 1100 */ .ec = TALER_EC_EXCHANGE_DEPOSITS_GET_NOT_FOUND, .hint = gettext_noop ( "The exchange did not find information about the specified transaction in the database."), @@ -422,6 +811,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1101 */ .ec = TALER_EC_EXCHANGE_DEPOSITS_GET_INVALID_H_WIRE, .hint = gettext_noop ( "The wire hash of given to a \"/deposits/\" handler was malformed."), @@ -429,6 +819,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1102 */ .ec = TALER_EC_EXCHANGE_DEPOSITS_GET_INVALID_MERCHANT_PUB, .hint = gettext_noop ( "The merchant key of given to a \"/deposits/\" handler was malformed."), @@ -436,6 +827,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1103 */ .ec = TALER_EC_EXCHANGE_DEPOSITS_GET_INVALID_H_CONTRACT_TERMS, .hint = gettext_noop ( "The hash of the contract terms given to a \"/deposits/\" handler was malformed."), @@ -443,6 +835,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1104 */ .ec = TALER_EC_EXCHANGE_DEPOSITS_GET_INVALID_COIN_PUB, .hint = gettext_noop ( "The coin public key of given to a \"/deposits/\" handler was malformed.") @@ -451,6 +844,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1105 */ .ec = TALER_EC_EXCHANGE_DEPOSITS_GET_INVALID_SIGNATURE_BY_EXCHANGE, .hint = gettext_noop ( "The signature returned by the exchange in a /deposits/ request was malformed."), @@ -458,18 +852,21 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1106 */ .ec = TALER_EC_EXCHANGE_DEPOSITS_GET_MERCHANT_SIGNATURE_INVALID, .hint = gettext_noop ("The signature of the merchant is invalid."), .http_code = MHD_HTTP_FORBIDDEN }, { + /* 1107 */ .ec = TALER_EC_EXCHANGE_DEPOSITS_POLICY_NOT_ACCEPTED, .hint = gettext_noop ("The provided policy data was not accepted"), .http_code = MHD_HTTP_BAD_REQUEST }, { + /* 1150 */ .ec = TALER_EC_EXCHANGE_WITHDRAW_INSUFFICIENT_FUNDS, .hint = gettext_noop ( "The given reserve does not have sufficient funds to admit the requested withdraw operation at this time. The response includes the current \"balance\" of the reserve as well as the transaction \"history\" that lead to this balance."), @@ -477,6 +874,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1151 */ .ec = TALER_EC_EXCHANGE_AGE_WITHDRAW_INSUFFICIENT_FUNDS, .hint = gettext_noop ( "The given reserve does not have sufficient funds to admit the requested age-withdraw operation at this time. The response includes the current \"balance\" of the reserve as well as the transaction \"history\" that lead to this balance."), @@ -484,6 +882,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1152 */ .ec = TALER_EC_EXCHANGE_WITHDRAW_AMOUNT_FEE_OVERFLOW, .hint = gettext_noop ( "The amount to withdraw together with the fee exceeds the numeric range for Taler amounts. This is not a client failure, as the coin value and fees come from the exchange's configuration."), @@ -491,6 +890,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1153 */ .ec = TALER_EC_EXCHANGE_WITHDRAW_SIGNATURE_FAILED, .hint = gettext_noop ( "The exchange failed to create the signature using the denomination key.") @@ -499,12 +899,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1154 */ .ec = TALER_EC_EXCHANGE_WITHDRAW_RESERVE_SIGNATURE_INVALID, .hint = gettext_noop ("The signature of the reserve is not valid."), .http_code = MHD_HTTP_FORBIDDEN }, { + /* 1155 */ .ec = TALER_EC_EXCHANGE_RESERVE_HISTORY_ERROR_INSUFFICIENT_FUNDS, .hint = gettext_noop ( "When computing the reserve history, we ended up with a negative overall balance, which should be impossible."), @@ -512,6 +914,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1156 */ .ec = TALER_EC_EXCHANGE_GET_RESERVE_HISTORY_ERROR_INSUFFICIENT_BALANCE, .hint = gettext_noop ( "The reserve did not have sufficient funds in it to pay for a full reserve history statement."), @@ -519,6 +922,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1158 */ .ec = TALER_EC_EXCHANGE_WITHDRAW_DENOMINATION_KEY_LOST, .hint = gettext_noop ( "Withdraw period of the coin to be withdrawn is in the past."), @@ -526,12 +930,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1159 */ .ec = TALER_EC_EXCHANGE_WITHDRAW_UNBLIND_FAILURE, .hint = gettext_noop ("The client failed to unblind the blind signature."), .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 1160 */ .ec = TALER_EC_EXCHANGE_WITHDRAW_NONCE_REUSE, .hint = gettext_noop ( "The client reused a withdraw nonce, which is not allowed."), @@ -539,6 +945,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1161 */ .ec = TALER_EC_EXCHANGE_WITHDRAW_COMMITMENT_UNKNOWN, .hint = gettext_noop ( "The client provided an unknown commitment for an age-withdraw request."), @@ -546,6 +953,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1162 */ .ec = TALER_EC_EXCHANGE_WITHDRAW_AMOUNT_OVERFLOW, .hint = gettext_noop ( "The total sum of amounts from the denominations did overflow."), @@ -553,6 +961,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1163 */ .ec = TALER_EC_EXCHANGE_AGE_WITHDRAW_AMOUNT_INCORRECT, .hint = gettext_noop ( "The total sum of value and fees from the denominations differs from the committed amount with fees."), @@ -560,6 +969,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1164 */ .ec = TALER_EC_EXCHANGE_WITHDRAW_REVEAL_INVALID_HASH, .hint = gettext_noop ( "The original commitment differs from the calculated hash"), @@ -567,6 +977,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1165 */ .ec = TALER_EC_EXCHANGE_WITHDRAW_MAXIMUM_AGE_TOO_LARGE, .hint = gettext_noop ( "The maximum age in the commitment is too large for the reserve"), @@ -574,6 +985,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1175 */ .ec = TALER_EC_EXCHANGE_WITHDRAW_IDEMPOTENT_PLANCHET, .hint = gettext_noop ( "The withdraw operation included the same planchet more than once. This is not allowed."), @@ -581,13 +993,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { - .ec = TALER_EC_GENERIC_VERSION_MALFORMED, - .hint = gettext_noop ( - "The protocol version given by the server does not follow the required format. Most likely, the server does not speak the GNU Taler protocol. Check the URL and/or the network connection to the server."), - .http_code = MHD_HTTP_UNINITIALIZED - }, - - { + /* 1205 */ .ec = TALER_EC_EXCHANGE_DEPOSIT_COIN_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature made by the coin over the deposit permission is not valid."), @@ -595,6 +1001,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1206 */ .ec = TALER_EC_EXCHANGE_DEPOSIT_CONFLICTING_CONTRACT, .hint = gettext_noop ( "The same coin was already deposited for the same merchant and contract with other details."), @@ -602,6 +1009,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1207 */ .ec = TALER_EC_EXCHANGE_DEPOSIT_NEGATIVE_VALUE_AFTER_FEE, .hint = gettext_noop ( "The stated value of the coin after the deposit fee is subtracted would be negative."), @@ -609,6 +1017,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1208 */ .ec = TALER_EC_EXCHANGE_DEPOSIT_REFUND_DEADLINE_AFTER_WIRE_DEADLINE, .hint = gettext_noop ( "The stated refund deadline is after the wire deadline."), @@ -616,6 +1025,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1209 */ .ec = TALER_EC_EXCHANGE_DEPOSIT_WIRE_DEADLINE_IS_NEVER, .hint = gettext_noop ( "The stated wire deadline is \"never\", which makes no sense."), @@ -623,6 +1033,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1210 */ .ec = TALER_EC_EXCHANGE_DEPOSIT_INVALID_WIRE_FORMAT_JSON, .hint = gettext_noop ( "The exchange failed to canonicalize and hash the given wire format. For example, the merchant failed to provide the \"salt\" or a valid payto:// URI in the wire details. Note that while the exchange will do some basic sanity checking on the wire details, it cannot warrant that the banking system will ultimately be able to route to the specified address, even if this check passed."), @@ -630,6 +1041,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1211 */ .ec = TALER_EC_EXCHANGE_DEPOSIT_INVALID_WIRE_FORMAT_CONTRACT_HASH_CONFLICT, .hint = gettext_noop ( "The hash of the given wire address does not match the wire hash specified in the proposal data."), @@ -637,6 +1049,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1221 */ .ec = TALER_EC_EXCHANGE_DEPOSIT_INVALID_SIGNATURE_BY_EXCHANGE, .hint = gettext_noop ( "The signature provided by the exchange is not valid."), @@ -644,6 +1057,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1222 */ .ec = TALER_EC_EXCHANGE_DEPOSIT_FEE_ABOVE_AMOUNT, .hint = gettext_noop ( "The deposited amount is smaller than the deposit fee, which would result in a negative contribution."), @@ -651,12 +1065,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1240 */ .ec = TALER_EC_EXCHANGE_EXTENSIONS_INVALID_FULFILLMENT, .hint = gettext_noop ("The proof of policy fulfillment was invalid."), .http_code = MHD_HTTP_BAD_REQUEST }, { + /* 1251 */ .ec = TALER_EC_EXCHANGE_COIN_HISTORY_BAD_SIGNATURE, .hint = gettext_noop ( "The coin history was requested with a bad signature."), @@ -664,6 +1080,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1252 */ .ec = TALER_EC_EXCHANGE_RESERVE_HISTORY_BAD_SIGNATURE, .hint = gettext_noop ( "The reserve history was requested with a bad signature."), @@ -671,13 +1088,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { - .ec = TALER_EC_GENERIC_REPLY_MALFORMED, - .hint = gettext_noop ( - "The service responded with a reply that was in the right data format, but the content did not satisfy the protocol. Please file a bug report."), - .http_code = MHD_HTTP_UNINITIALIZED - }, - - { + /* 1302 */ .ec = TALER_EC_EXCHANGE_MELT_FEES_EXCEED_CONTRIBUTION, .hint = gettext_noop ( "The exchange encountered melt fees exceeding the melted coin's contribution."), @@ -685,6 +1096,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1303 */ .ec = TALER_EC_EXCHANGE_MELT_COIN_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature made with the coin to be melted is invalid."), @@ -692,6 +1104,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1305 */ .ec = TALER_EC_EXCHANGE_MELT_COIN_EXPIRED_NO_ZOMBIE, .hint = gettext_noop ( "The denomination of the given coin has past its expiration date and it is also not a valid zombie (that is, was not refreshed with the fresh coin being subjected to recoup)."), @@ -699,6 +1112,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1306 */ .ec = TALER_EC_EXCHANGE_MELT_INVALID_SIGNATURE_BY_EXCHANGE, .hint = gettext_noop ( "The signature returned by the exchange in a melt request was malformed.") @@ -707,6 +1121,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1353 */ .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_COMMITMENT_VIOLATION, .hint = gettext_noop ( "The provided transfer keys do not match up with the original commitment. Information about the original commitment is included in the response."), @@ -714,6 +1129,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1354 */ .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_SIGNING_ERROR, .hint = gettext_noop ( "Failed to produce the blinded signatures over the coins to be returned.") @@ -722,6 +1138,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1355 */ .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_SESSION_UNKNOWN, .hint = gettext_noop ( "The exchange is unaware of the refresh session specified in the request."), @@ -729,6 +1146,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1356 */ .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_CNC_TRANSFER_ARRAY_SIZE_INVALID, .hint = gettext_noop ( "The size of the cut-and-choose dimension of the private transfer keys request does not match #TALER_CNC_KAPPA - 1."), @@ -736,6 +1154,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1358 */ .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_NEW_DENOMS_ARRAY_SIZE_MISMATCH, .hint = gettext_noop ( "The number of envelopes given does not match the number of denomination keys given."), @@ -743,6 +1162,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1359 */ .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_COST_CALCULATION_OVERFLOW, .hint = gettext_noop ( "The exchange encountered a numeric overflow totaling up the cost for the refresh operation."), @@ -750,6 +1170,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1360 */ .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_AMOUNT_INSUFFICIENT, .hint = gettext_noop ( "The exchange's cost calculation shows that the melt amount is below the costs of the transaction."), @@ -757,6 +1178,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1361 */ .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_LINK_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature made with the coin over the link data is invalid."), @@ -764,6 +1186,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1362 */ .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_INVALID_RCH, .hint = gettext_noop ( "The refresh session hash given to a /refreshes/ handler was malformed."), @@ -771,12 +1194,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1363 */ .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_OPERATION_INVALID, .hint = gettext_noop ("Operation specified invalid for this endpoint."), .http_code = MHD_HTTP_BAD_REQUEST }, { + /* 1364 */ .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_AGE_RESTRICTION_NOT_SUPPORTED, .hint = gettext_noop ( "The client provided age commitment data, but age restriction is not supported on this server."), @@ -784,6 +1209,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1365 */ .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_AGE_RESTRICTION_COMMITMENT_INVALID, .hint = gettext_noop ( "The client provided invalid age commitment data: missing, not an array, or array of invalid size."), @@ -791,13 +1217,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { - .ec = TALER_EC_GENERIC_CONFIGURATION_INVALID, - .hint = gettext_noop ( - "There is an error in the client-side configuration, for example an option is set to an invalid value. Check the logs and fix the local configuration."), - .http_code = MHD_HTTP_UNINITIALIZED - }, - - { + /* 1400 */ .ec = TALER_EC_EXCHANGE_LINK_COIN_UNKNOWN, .hint = gettext_noop ( "The coin specified in the link request is unknown to the exchange."), @@ -805,6 +1225,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1450 */ .ec = TALER_EC_EXCHANGE_TRANSFERS_GET_WTID_MALFORMED, .hint = gettext_noop ( "The public key of given to a /transfers/ handler was malformed."), @@ -812,6 +1233,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1451 */ .ec = TALER_EC_EXCHANGE_TRANSFERS_GET_WTID_NOT_FOUND, .hint = gettext_noop ( "The exchange did not find information about the specified wire transfer identifier in the database."), @@ -819,6 +1241,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1452 */ .ec = TALER_EC_EXCHANGE_TRANSFERS_GET_WIRE_FEE_NOT_FOUND, .hint = gettext_noop ( "The exchange did not find information about the wire transfer fees it charged."), @@ -826,6 +1249,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1453 */ .ec = TALER_EC_EXCHANGE_TRANSFERS_GET_WIRE_FEE_INCONSISTENT, .hint = gettext_noop ( "The exchange found a wire fee that was above the total transfer value (and thus could not have been charged)."), @@ -833,6 +1257,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1475 */ .ec = TALER_EC_EXCHANGE_PURSES_INVALID_WAIT_TARGET, .hint = gettext_noop ( "The wait target of the URL was not in the set of expected values."), @@ -840,6 +1265,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1476 */ .ec = TALER_EC_EXCHANGE_PURSES_GET_INVALID_SIGNATURE_BY_EXCHANGE, .hint = gettext_noop ( "The signature on the purse status returned by the exchange was invalid.") @@ -848,13 +1274,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { - .ec = TALER_EC_GENERIC_UNEXPECTED_REQUEST_ERROR, - .hint = gettext_noop ( - "The client made a request to a service, but received an error response it does not know how to handle. Please file a bug report."), - .http_code = MHD_HTTP_UNINITIALIZED - }, - - { + /* 1500 */ .ec = TALER_EC_EXCHANGE_REFUND_COIN_NOT_FOUND, .hint = gettext_noop ( "The exchange knows literally nothing about the coin we were asked to refund. But without a transaction history, we cannot issue a refund. This is kind-of OK, the owner should just refresh it directly without executing the refund."), @@ -862,6 +1282,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1501 */ .ec = TALER_EC_EXCHANGE_REFUND_CONFLICT_DEPOSIT_INSUFFICIENT, .hint = gettext_noop ( "We could not process the refund request as the coin's transaction history does not permit the requested refund because then refunds would exceed the deposit amount. The \"history\" in the response proves this."), @@ -869,6 +1290,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1502 */ .ec = TALER_EC_EXCHANGE_REFUND_DEPOSIT_NOT_FOUND, .hint = gettext_noop ( "The exchange knows about the coin we were asked to refund, but not about the specific /deposit operation. Hence, we cannot issue a refund (as we do not know if this merchant public key is authorized to do a refund)."), @@ -876,6 +1298,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1503 */ .ec = TALER_EC_EXCHANGE_REFUND_MERCHANT_ALREADY_PAID, .hint = gettext_noop ( "The exchange can no longer refund the customer/coin as the money was already transferred (paid out) to the merchant. (It should be past the refund deadline.)"), @@ -883,6 +1306,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1504 */ .ec = TALER_EC_EXCHANGE_REFUND_FEE_TOO_LOW, .hint = gettext_noop ( "The refund fee specified for the request is lower than the refund fee charged by the exchange for the given denomination key of the refunded coin."), @@ -890,6 +1314,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1505 */ .ec = TALER_EC_EXCHANGE_REFUND_FEE_ABOVE_AMOUNT, .hint = gettext_noop ( "The refunded amount is smaller than the refund fee, which would result in a negative refund."), @@ -897,12 +1322,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1506 */ .ec = TALER_EC_EXCHANGE_REFUND_MERCHANT_SIGNATURE_INVALID, .hint = gettext_noop ("The signature of the merchant is invalid."), .http_code = MHD_HTTP_FORBIDDEN }, { + /* 1507 */ .ec = TALER_EC_EXCHANGE_REFUND_MERCHANT_SIGNING_FAILED, .hint = gettext_noop ( "Merchant backend failed to create the refund confirmation signature."), @@ -910,6 +1337,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1508 */ .ec = TALER_EC_EXCHANGE_REFUND_INVALID_SIGNATURE_BY_EXCHANGE, .hint = gettext_noop ( "The signature returned by the exchange in a refund request was malformed."), @@ -917,6 +1345,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1509 */ .ec = TALER_EC_EXCHANGE_REFUND_INVALID_FAILURE_PROOF_BY_EXCHANGE, .hint = gettext_noop ( "The failure proof returned by the exchange is incorrect."), @@ -924,6 +1353,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1510 */ .ec = TALER_EC_EXCHANGE_REFUND_INCONSISTENT_AMOUNT, .hint = gettext_noop ( "Conflicting refund granted before with different amount but same refund transaction ID."), @@ -931,6 +1361,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1550 */ .ec = TALER_EC_EXCHANGE_RECOUP_SIGNATURE_INVALID, .hint = gettext_noop ( "The given coin signature is invalid for the request."), @@ -938,6 +1369,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1551 */ .ec = TALER_EC_EXCHANGE_RECOUP_WITHDRAW_NOT_FOUND, .hint = gettext_noop ( "The exchange could not find the corresponding withdraw operation. The request is denied."), @@ -945,6 +1377,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1552 */ .ec = TALER_EC_EXCHANGE_RECOUP_COIN_BALANCE_ZERO, .hint = gettext_noop ( "The coin's remaining balance is zero. The request is denied."), @@ -952,6 +1385,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1553 */ .ec = TALER_EC_EXCHANGE_RECOUP_BLINDING_FAILED, .hint = gettext_noop ( "The exchange failed to reproduce the coin's blinding."), @@ -959,6 +1393,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1554 */ .ec = TALER_EC_EXCHANGE_RECOUP_COIN_BALANCE_NEGATIVE, .hint = gettext_noop ( "The coin's remaining balance is zero. The request is denied."), @@ -966,12 +1401,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1555 */ .ec = TALER_EC_EXCHANGE_RECOUP_NOT_ELIGIBLE, .hint = gettext_noop ("The coin's denomination has not been revoked yet."), .http_code = MHD_HTTP_NOT_FOUND }, { + /* 1575 */ .ec = TALER_EC_EXCHANGE_RECOUP_REFRESH_SIGNATURE_INVALID, .hint = gettext_noop ( "The given coin signature is invalid for the request."), @@ -979,6 +1416,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1576 */ .ec = TALER_EC_EXCHANGE_RECOUP_REFRESH_MELT_NOT_FOUND, .hint = gettext_noop ( "The exchange could not find the corresponding melt operation. The request is denied."), @@ -986,6 +1424,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1578 */ .ec = TALER_EC_EXCHANGE_RECOUP_REFRESH_BLINDING_FAILED, .hint = gettext_noop ( "The exchange failed to reproduce the coin's blinding."), @@ -993,19 +1432,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1580 */ .ec = TALER_EC_EXCHANGE_RECOUP_REFRESH_NOT_ELIGIBLE, .hint = gettext_noop ("The coin's denomination has not been revoked yet."), .http_code = MHD_HTTP_NOT_FOUND }, { - .ec = TALER_EC_GENERIC_TOKEN_PERMISSION_INSUFFICIENT, - .hint = gettext_noop ( - "The token used by the client to authorize the request does not grant the required permissions for the request. Check the requirements and obtain a suitable authorization token to proceed."), - .http_code = MHD_HTTP_FORBIDDEN - }, - - { + /* 1600 */ .ec = TALER_EC_EXCHANGE_KEYS_TIMETRAVEL_FORBIDDEN, .hint = gettext_noop ( "This exchange does not allow clients to request /keys for times other than the current (exchange) time."), @@ -1013,6 +1447,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1650 */ .ec = TALER_EC_EXCHANGE_WIRE_SIGNATURE_INVALID, .hint = gettext_noop ("A signature in the server's response was malformed.") , @@ -1020,6 +1455,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1651 */ .ec = TALER_EC_EXCHANGE_WIRE_NO_ACCOUNTS_CONFIGURED, .hint = gettext_noop ( "No bank accounts are enabled for the exchange. The administrator should enable-account using the taler-exchange-offline tool."), @@ -1027,6 +1463,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1652 */ .ec = TALER_EC_EXCHANGE_WIRE_INVALID_PAYTO_CONFIGURED, .hint = gettext_noop ( "The payto:// URI stored in the exchange database for its bank account is malformed."), @@ -1034,6 +1471,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1653 */ .ec = TALER_EC_EXCHANGE_WIRE_FEES_NOT_CONFIGURED, .hint = gettext_noop ( "No wire fees are configured for an enabled wire method of the exchange. The administrator must set the wire-fee using the taler-exchange-offline tool."), @@ -1041,6 +1479,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1675 */ .ec = TALER_EC_EXCHANGE_RESERVES_PURSE_CREATE_CONFLICTING_META_DATA, .hint = gettext_noop ( "This purse was previously created with different meta data."), @@ -1048,6 +1487,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1676 */ .ec = TALER_EC_EXCHANGE_RESERVES_PURSE_MERGE_CONFLICTING_META_DATA, .hint = gettext_noop ( "This purse was previously merged with different meta data."), @@ -1055,6 +1495,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1677 */ .ec = TALER_EC_EXCHANGE_RESERVES_PURSE_CREATE_INSUFFICIENT_FUNDS, .hint = gettext_noop ( "The reserve has insufficient funds to create another purse."), @@ -1062,6 +1503,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1678 */ .ec = TALER_EC_EXCHANGE_RESERVES_PURSE_FEE_TOO_LOW, .hint = gettext_noop ( "The purse fee specified for the request is lower than the purse fee charged by the exchange at this time."), @@ -1069,6 +1511,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1679 */ .ec = TALER_EC_EXCHANGE_PURSE_DELETE_ALREADY_DECIDED, .hint = gettext_noop ( "The payment request cannot be deleted anymore, as it either already completed or timed out."), @@ -1076,6 +1519,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1680 */ .ec = TALER_EC_EXCHANGE_PURSE_DELETE_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature affirming the purse deletion is invalid."), @@ -1083,6 +1527,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1681 */ .ec = TALER_EC_EXCHANGE_RESERVES_AGE_RESTRICTION_REQUIRED, .hint = gettext_noop ( "Withdrawal from the reserve requires age restriction to be set."), @@ -1090,6 +1535,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1700 */ .ec = TALER_EC_EXCHANGE_DENOMINATION_HELPER_UNAVAILABLE, .hint = gettext_noop ( "The exchange failed to talk to the process responsible for its private denomination keys or the helpers had no denominations (properly) configured."), @@ -1097,6 +1543,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1701 */ .ec = TALER_EC_EXCHANGE_DENOMINATION_HELPER_BUG, .hint = gettext_noop ( "The response from the denomination key helper process was malformed."), @@ -1104,6 +1551,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1702 */ .ec = TALER_EC_EXCHANGE_DENOMINATION_HELPER_TOO_EARLY, .hint = gettext_noop ( "The helper refuses to sign with the key, because it is too early: the validity period has not yet started."), @@ -1111,6 +1559,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1725 */ .ec = TALER_EC_EXCHANGE_PURSE_DEPOSIT_EXCHANGE_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature of the exchange on the reply was invalid."), @@ -1118,6 +1567,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1750 */ .ec = TALER_EC_EXCHANGE_SIGNKEY_HELPER_UNAVAILABLE, .hint = gettext_noop ( "The exchange failed to talk to the process responsible for its private signing keys."), @@ -1125,6 +1575,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1751 */ .ec = TALER_EC_EXCHANGE_SIGNKEY_HELPER_BUG, .hint = gettext_noop ( "The response from the online signing key helper process was malformed."), @@ -1132,6 +1583,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1752 */ .ec = TALER_EC_EXCHANGE_SIGNKEY_HELPER_TOO_EARLY, .hint = gettext_noop ( "The helper refuses to sign with the key, because it is too early: the validity period has not yet started."), @@ -1139,6 +1591,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1753 */ .ec = TALER_EC_EXCHANGE_SIGNKEY_HELPER_OFFLINE_MISSING, .hint = gettext_noop ( "The signatures from the master exchange public key are missing, thus the exchange cannot currently sign its API responses. The exchange operator must use taler-exchange-offline to sign the current key material."), @@ -1146,6 +1599,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1775 */ .ec = TALER_EC_EXCHANGE_RESERVES_PURSE_EXPIRATION_BEFORE_NOW, .hint = gettext_noop ( "The purse expiration time is in the past at the time of its creation."), @@ -1153,6 +1607,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1776 */ .ec = TALER_EC_EXCHANGE_RESERVES_PURSE_EXPIRATION_IS_NEVER, .hint = gettext_noop ( "The purse expiration time is set to never, which is not allowed."), @@ -1160,6 +1615,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1777 */ .ec = TALER_EC_EXCHANGE_RESERVES_PURSE_MERGE_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature affirming the merge of the purse is invalid."), @@ -1167,6 +1623,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1778 */ .ec = TALER_EC_EXCHANGE_RESERVES_RESERVE_MERGE_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature by the reserve affirming the merge is invalid."), @@ -1174,6 +1631,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1785 */ .ec = TALER_EC_EXCHANGE_RESERVES_OPEN_BAD_SIGNATURE, .hint = gettext_noop ( "The signature by the reserve affirming the open operation is invalid."), @@ -1181,6 +1639,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1786 */ .ec = TALER_EC_EXCHANGE_RESERVES_CLOSE_BAD_SIGNATURE, .hint = gettext_noop ( "The signature by the reserve affirming the close operation is invalid."), @@ -1188,6 +1647,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1787 */ .ec = TALER_EC_EXCHANGE_RESERVES_ATTEST_BAD_SIGNATURE, .hint = gettext_noop ( "The signature by the reserve affirming the attestion request is invalid."), @@ -1195,6 +1655,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1788 */ .ec = TALER_EC_EXCHANGE_RESERVES_CLOSE_NO_TARGET_ACCOUNT, .hint = gettext_noop ( "The exchange does not know an origin account to which the remaining reserve balance could be wired to, and the wallet failed to provide one."), @@ -1202,6 +1663,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1789 */ .ec = TALER_EC_EXCHANGE_RESERVES_OPEN_INSUFFICIENT_FUNDS, .hint = gettext_noop ( "The reserve balance is insufficient to pay for the open operation."), @@ -1209,6 +1671,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1800 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_AUDITOR_NOT_FOUND, .hint = gettext_noop ( "The auditor that was supposed to be disabled is unknown to this exchange."), @@ -1216,6 +1679,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1801 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_AUDITOR_MORE_RECENT_PRESENT, .hint = gettext_noop ( "The exchange has a more recently signed conflicting instruction and is thus refusing the current change (replay detected)."), @@ -1223,6 +1687,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1802 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_AUDITOR_ADD_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature to add or enable the auditor does not validate."), @@ -1230,6 +1695,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1803 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_AUDITOR_DEL_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature to disable the auditor does not validate."), @@ -1237,6 +1703,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1804 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_DENOMINATION_REVOKE_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature to revoke the denomination does not validate."), @@ -1244,6 +1711,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1805 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_SIGNKEY_REVOKE_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature to revoke the online signing key does not validate."), @@ -1251,6 +1719,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1806 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_WIRE_MORE_RECENT_PRESENT, .hint = gettext_noop ( "The exchange has a more recently signed conflicting instruction and is thus refusing the current change (replay detected)."), @@ -1258,6 +1727,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1807 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_KEYS_SIGNKEY_UNKNOWN, .hint = gettext_noop ( "The signingkey specified is unknown to the exchange."), @@ -1265,6 +1735,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1808 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_WIRE_DETAILS_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature to publish wire account does not validate."), @@ -1272,6 +1743,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1809 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_WIRE_ADD_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature to add the wire account does not validate."), @@ -1279,6 +1751,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1810 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_WIRE_DEL_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature to disable the wire account does not validate."), @@ -1286,6 +1759,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1811 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_WIRE_NOT_FOUND, .hint = gettext_noop ( "The wire account to be disabled is unknown to the exchange."), @@ -1293,6 +1767,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1812 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_WIRE_FEE_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature to affirm wire fees does not validate."), @@ -1300,6 +1775,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1813 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_WIRE_FEE_MISMATCH, .hint = gettext_noop ( "The signature conflicts with a previous signature affirming different fees."), @@ -1307,6 +1783,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1814 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_KEYS_DENOMKEY_ADD_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature affirming the denomination key is invalid."), @@ -1314,6 +1791,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1815 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_KEYS_SIGNKEY_ADD_SIGNATURE_INVALID, .hint = gettext_noop ("The signature affirming the signing key is invalid.") , @@ -1321,6 +1799,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1816 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_GLOBAL_FEE_MISMATCH, .hint = gettext_noop ( "The signature conflicts with a previous signature affirming different fees."), @@ -1328,6 +1807,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1817 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_GLOBAL_FEE_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature affirming the fee structure is invalid."), @@ -1335,6 +1815,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1818 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_DRAIN_PROFITS_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature affirming the profit drain is invalid."), @@ -1342,6 +1823,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1825 */ .ec = TALER_EC_EXCHANGE_AML_DECISION_ADD_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature affirming the AML decision is invalid."), @@ -1349,6 +1831,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1826 */ .ec = TALER_EC_EXCHANGE_AML_DECISION_INVALID_OFFICER, .hint = gettext_noop ( "The AML officer specified is not allowed to make AML decisions right now."), @@ -1356,6 +1839,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1827 */ .ec = TALER_EC_EXCHANGE_AML_DECISION_MORE_RECENT_PRESENT, .hint = gettext_noop ( "There is a more recent AML decision on file. The decision was rejected as timestamps of AML decisions must be monotonically increasing."), @@ -1363,6 +1847,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1828 */ .ec = TALER_EC_EXCHANGE_AML_DECISION_UNKNOWN_CHECK, .hint = gettext_noop ( "There AML decision would impose an AML check of a type that is not provided by any KYC provider known to the exchange."), @@ -1370,6 +1855,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1830 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_UPDATE_AML_OFFICER_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature affirming the change in the AML officer status is invalid."), @@ -1377,6 +1863,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1831 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_AML_OFFICERS_MORE_RECENT_PRESENT, .hint = gettext_noop ( "A more recent decision about the AML officer status is known to the exchange."), @@ -1384,6 +1871,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1832 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_CONFLICTING_DENOMINATION_META_DATA, .hint = gettext_noop ( "The exchange already has this denomination key configured, but with different meta data. This should not be possible, contact the developers for support."), @@ -1391,6 +1879,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1833 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_CONFLICTING_SIGNKEY_META_DATA, .hint = gettext_noop ( "The exchange already has this signing key configured, but with different meta data. This should not be possible, contact the developers for support."), @@ -1398,6 +1887,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1850 */ .ec = TALER_EC_EXCHANGE_PURSE_CREATE_CONFLICTING_META_DATA, .hint = gettext_noop ( "The purse was previously created with different meta data."), @@ -1405,6 +1895,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1851 */ .ec = TALER_EC_EXCHANGE_PURSE_CREATE_CONFLICTING_CONTRACT_STORED, .hint = gettext_noop ( "The purse was previously created with a different contract."), @@ -1412,6 +1903,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1852 */ .ec = TALER_EC_EXCHANGE_PURSE_CREATE_COIN_SIGNATURE_INVALID, .hint = gettext_noop ( "A coin signature for a deposit into the purse is invalid."), @@ -1419,18 +1911,21 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1853 */ .ec = TALER_EC_EXCHANGE_PURSE_CREATE_EXPIRATION_BEFORE_NOW, .hint = gettext_noop ("The purse expiration time is in the past."), .http_code = MHD_HTTP_BAD_REQUEST }, { + /* 1854 */ .ec = TALER_EC_EXCHANGE_PURSE_CREATE_EXPIRATION_IS_NEVER, .hint = gettext_noop ("The purse expiration time is \"never\"."), .http_code = MHD_HTTP_BAD_REQUEST }, { + /* 1855 */ .ec = TALER_EC_EXCHANGE_PURSE_CREATE_SIGNATURE_INVALID, .hint = gettext_noop ( "The purse signature over the purse meta data is invalid."), @@ -1438,6 +1933,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1856 */ .ec = TALER_EC_EXCHANGE_PURSE_ECONTRACT_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature over the encrypted contract is invalid."), @@ -1445,6 +1941,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1857 */ .ec = TALER_EC_EXCHANGE_PURSE_CREATE_EXCHANGE_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature from the exchange over the confirmation is invalid."), @@ -1452,6 +1949,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1858 */ .ec = TALER_EC_EXCHANGE_PURSE_DEPOSIT_CONFLICTING_META_DATA, .hint = gettext_noop ( "The coin was previously deposited with different meta data."), @@ -1459,6 +1957,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1859 */ .ec = TALER_EC_EXCHANGE_PURSE_ECONTRACT_CONFLICTING_META_DATA, .hint = gettext_noop ( "The encrypted contract was previously uploaded with different meta data."), @@ -1466,24 +1965,28 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1860 */ .ec = TALER_EC_EXCHANGE_CREATE_PURSE_NEGATIVE_VALUE_AFTER_FEE, .hint = gettext_noop ("The deposited amount is less than the purse fee."), .http_code = MHD_HTTP_BAD_REQUEST }, { + /* 1876 */ .ec = TALER_EC_EXCHANGE_PURSE_MERGE_INVALID_MERGE_SIGNATURE, .hint = gettext_noop ("The signature using the merge key is invalid."), .http_code = MHD_HTTP_FORBIDDEN }, { + /* 1877 */ .ec = TALER_EC_EXCHANGE_PURSE_MERGE_INVALID_RESERVE_SIGNATURE, .hint = gettext_noop ("The signature using the reserve key is invalid."), .http_code = MHD_HTTP_FORBIDDEN }, { + /* 1878 */ .ec = TALER_EC_EXCHANGE_PURSE_NOT_FULL, .hint = gettext_noop ( "The targeted purse is not yet full and thus cannot be merged. Retrying the request later may succeed."), @@ -1491,6 +1994,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1879 */ .ec = TALER_EC_EXCHANGE_PURSE_MERGE_EXCHANGE_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature from the exchange over the confirmation is invalid."), @@ -1498,6 +2002,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1880 */ .ec = TALER_EC_EXCHANGE_MERGE_PURSE_PARTNER_UNKNOWN, .hint = gettext_noop ( "The exchange of the target account is not a partner of this exchange."), @@ -1505,6 +2010,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1890 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_ADD_PARTNER_SIGNATURE_INVALID, .hint = gettext_noop ("The signature affirming the new partner is invalid.") , @@ -1512,6 +2018,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1891 */ .ec = TALER_EC_EXCHANGE_MANAGEMENT_ADD_PARTNER_DATA_CONFLICT, .hint = gettext_noop ( "Conflicting data for the partner already exists with the exchange."), @@ -1519,6 +2026,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1900 */ .ec = TALER_EC_EXCHANGE_AUDITORS_AUDITOR_SIGNATURE_INVALID, .hint = gettext_noop ( "The auditor signature over the denomination meta data is invalid."), @@ -1526,6 +2034,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1901 */ .ec = TALER_EC_EXCHANGE_AUDITORS_AUDITOR_UNKNOWN, .hint = gettext_noop ( "The auditor that was specified is unknown to this exchange."), @@ -1533,6 +2042,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1902 */ .ec = TALER_EC_EXCHANGE_AUDITORS_AUDITOR_INACTIVE, .hint = gettext_noop ( "The auditor that was specified is no longer used by this exchange."), @@ -1540,6 +2050,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1918 */ .ec = TALER_EC_EXCHANGE_KYC_GENERIC_AML_PROGRAM_TIMEOUT, .hint = gettext_noop ( "The exchange tried to run an AML program, but that program did not terminate on time. Contact the exchange operator to address the AML program bug or performance issue. If it is not a performance issue, the timeout might have to be increased (requires changes to the source code)."), @@ -1547,6 +2058,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1919 */ .ec = TALER_EC_EXCHANGE_KYC_INFO_AUTHORIZATION_FAILED, .hint = gettext_noop ( "The KYC info access token is not recognized. Hence the request was denied."), @@ -1554,6 +2066,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1920 */ .ec = TALER_EC_EXCHANGE_KYC_RECURSIVE_RULE_DETECTED, .hint = gettext_noop ( "The exchange got stuck in a long series of (likely recursive) KYC rules without user-inputs that did not result in a timely conclusion. This is a configuration failure. Please contact the administrator."), @@ -1561,6 +2074,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1921 */ .ec = TALER_EC_EXCHANGE_KYC_AML_FORM_INCOMPLETE, .hint = gettext_noop ( "The submitted KYC data lacks an attribute that is required by the KYC form. Please submit the complete form."), @@ -1568,6 +2082,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1922 */ .ec = TALER_EC_EXCHANGE_KYC_GENERIC_AML_PROGRAM_GONE, .hint = gettext_noop ( "The request requires an AML program which is no longer configured at the exchange. Contact the exchange operator to address the configuration issue."), @@ -1575,6 +2090,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1923 */ .ec = TALER_EC_EXCHANGE_KYC_NOT_A_FORM, .hint = gettext_noop ( "The given check is not of type 'form' and thus using this handler for form submission is incorrect."), @@ -1582,6 +2098,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1924 */ .ec = TALER_EC_EXCHANGE_KYC_GENERIC_CHECK_GONE, .hint = gettext_noop ( "The request requires a check which is no longer configured at the exchange. Contact the exchange operator to address the configuration issue."), @@ -1589,6 +2106,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1925 */ .ec = TALER_EC_EXCHANGE_KYC_WALLET_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature affirming the wallet's KYC request was invalid."), @@ -1596,6 +2114,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1926 */ .ec = TALER_EC_EXCHANGE_KYC_PROOF_BACKEND_INVALID_RESPONSE, .hint = gettext_noop ( "The exchange received an unexpected malformed response from its KYC backend."), @@ -1603,18 +2122,21 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1927 */ .ec = TALER_EC_EXCHANGE_KYC_PROOF_BACKEND_ERROR, .hint = gettext_noop ("The backend signaled an unexpected failure."), .http_code = MHD_HTTP_BAD_GATEWAY }, { + /* 1928 */ .ec = TALER_EC_EXCHANGE_KYC_PROOF_BACKEND_AUTHORIZATION_FAILED, .hint = gettext_noop ("The backend signaled an authorization failure."), .http_code = MHD_HTTP_FORBIDDEN }, { + /* 1929 */ .ec = TALER_EC_EXCHANGE_KYC_PROOF_REQUEST_UNKNOWN, .hint = gettext_noop ( "The exchange is unaware of having made an the authorization request."), @@ -1622,6 +2144,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1930 */ .ec = TALER_EC_EXCHANGE_KYC_CHECK_AUTHORIZATION_FAILED, .hint = gettext_noop ( "The KYC authorization signature was invalid. Hence the request was denied."), @@ -1629,6 +2152,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1931 */ .ec = TALER_EC_EXCHANGE_KYC_GENERIC_LOGIC_UNKNOWN, .hint = gettext_noop ( "The request used a logic specifier that is not known to the exchange."), @@ -1636,6 +2160,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1932 */ .ec = TALER_EC_EXCHANGE_KYC_GENERIC_LOGIC_GONE, .hint = gettext_noop ( "The request requires a logic which is no longer configured at the exchange."), @@ -1643,6 +2168,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1933 */ .ec = TALER_EC_EXCHANGE_KYC_GENERIC_LOGIC_BUG, .hint = gettext_noop ( "The logic plugin had a bug in its interaction with the KYC provider."), @@ -1650,6 +2176,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1934 */ .ec = TALER_EC_EXCHANGE_KYC_GENERIC_PROVIDER_ACCESS_REFUSED, .hint = gettext_noop ( "The exchange could not process the request with its KYC provider because the provider refused access to the service. This indicates some configuration issue at the Taler exchange operator."), @@ -1657,6 +2184,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1935 */ .ec = TALER_EC_EXCHANGE_KYC_GENERIC_PROVIDER_TIMEOUT, .hint = gettext_noop ( "There was a timeout in the interaction between the exchange and the KYC provider. The most likely cause is some networking problem. Trying again later might succeed."), @@ -1664,6 +2192,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1936 */ .ec = TALER_EC_EXCHANGE_KYC_GENERIC_PROVIDER_UNEXPECTED_REPLY, .hint = gettext_noop ( "The KYC provider responded with a status that was completely unexpected by the KYC logic of the exchange."), @@ -1671,6 +2200,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1937 */ .ec = TALER_EC_EXCHANGE_KYC_GENERIC_PROVIDER_RATE_LIMIT_EXCEEDED, .hint = gettext_noop ( "The rate limit of the exchange at the KYC provider has been exceeded. Trying much later might work."), @@ -1678,6 +2208,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1938 */ .ec = TALER_EC_EXCHANGE_KYC_WEBHOOK_UNAUTHORIZED, .hint = gettext_noop ( "The request to the webhook lacked proper authorization or authentication data."), @@ -1685,6 +2216,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1939 */ .ec = TALER_EC_EXCHANGE_KYC_CHECK_REQUEST_UNKNOWN, .hint = gettext_noop ( "The exchange is unaware of the requested payto URI with respect to the KYC status."), @@ -1692,6 +2224,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1940 */ .ec = TALER_EC_EXCHANGE_KYC_CHECK_AUTHORIZATION_KEY_UNKNOWN, .hint = gettext_noop ( "The exchange has no account public key to check the KYC authorization signature against. Hence the request was denied. The user should do a wire transfer to the exchange with the KYC authorization key in the subject."), @@ -1699,6 +2232,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1941 */ .ec = TALER_EC_EXCHANGE_KYC_FORM_ALREADY_UPLOADED, .hint = gettext_noop ( "The form has been previously uploaded, and may only be filed once. The user should be redirected to their main KYC page and see if any other steps need to be taken."), @@ -1706,6 +2240,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1942 */ .ec = TALER_EC_EXCHANGE_KYC_MEASURES_MALFORMED, .hint = gettext_noop ( "The internal state of the exchange specifying KYC measures is malformed. Please contact technical support."), @@ -1713,6 +2248,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1943 */ .ec = TALER_EC_EXCHANGE_KYC_MEASURE_INDEX_INVALID, .hint = gettext_noop ( "The specified index does not refer to a valid KYC measure. Please check the URL."), @@ -1720,6 +2256,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1944 */ .ec = TALER_EC_EXCHANGE_KYC_INVALID_LOGIC_TO_CHECK, .hint = gettext_noop ( "The operation is not supported by the selected KYC logic. This is either caused by a configuration change or some invalid use of the API. Please contact technical support."), @@ -1727,6 +2264,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1945 */ .ec = TALER_EC_EXCHANGE_KYC_AML_PROGRAM_FAILURE, .hint = gettext_noop ( "The AML program failed. This is either caused by a configuration change or a bug. Please contact technical support."), @@ -1734,6 +2272,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1946 */ .ec = TALER_EC_EXCHANGE_KYC_AML_PROGRAM_MALFORMED_RESULT, .hint = gettext_noop ( "The AML program returned a malformed result. This is a bug. Please contact technical support."), @@ -1741,6 +2280,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1947 */ .ec = TALER_EC_EXCHANGE_KYC_GENERIC_PROVIDER_INCOMPLETE_REPLY, .hint = gettext_noop ( "The response from the KYC provider lacked required attributes. Please contact technical support."), @@ -1748,6 +2288,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1948 */ .ec = TALER_EC_EXCHANGE_KYC_GENERIC_PROVIDER_INCOMPLETE_CONTEXT, .hint = gettext_noop ( "The context of the KYC check lacked required fields. This is a bug. Please contact technical support."), @@ -1755,6 +2296,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1949 */ .ec = TALER_EC_EXCHANGE_KYC_GENERIC_AML_LOGIC_BUG, .hint = gettext_noop ( "The logic plugin had a bug in its AML processing. This is a bug. Please contact technical support."), @@ -1762,6 +2304,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1950 */ .ec = TALER_EC_EXCHANGE_CONTRACTS_UNKNOWN, .hint = gettext_noop ( "The exchange does not know a contract under the given contract public key."), @@ -1769,6 +2312,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1951 */ .ec = TALER_EC_EXCHANGE_CONTRACTS_INVALID_CONTRACT_PUB, .hint = gettext_noop ( "The URL does not encode a valid exchange public key in its path."), @@ -1776,12 +2320,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1952 */ .ec = TALER_EC_EXCHANGE_CONTRACTS_DECRYPTION_FAILED, .hint = gettext_noop ("The returned encrypted contract did not decrypt."), .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 1953 */ .ec = TALER_EC_EXCHANGE_CONTRACTS_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature on the encrypted contract did not validate."), @@ -1789,12 +2335,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1954 */ .ec = TALER_EC_EXCHANGE_CONTRACTS_DECODING_FAILED, .hint = gettext_noop ("The decrypted contract was malformed."), .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 1975 */ .ec = TALER_EC_EXCHANGE_PURSE_DEPOSIT_COIN_SIGNATURE_INVALID, .hint = gettext_noop ( "A coin signature for a deposit into the purse is invalid."), @@ -1802,39 +2350,29 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 1976 */ .ec = TALER_EC_EXCHANGE_PURSE_DEPOSIT_DECIDED_ALREADY, .hint = gettext_noop ("It is too late to deposit coins into the purse."), .http_code = MHD_HTTP_GONE }, { + /* 1977 */ .ec = TALER_EC_EXCHANGE_KYC_INFO_BUSY, .hint = gettext_noop ( "The exchange is currently processing the KYC status and is not able to return a response yet."), - .http_code = MHD_HTTP_ACCEPTED - }, - - { - .ec = TALER_EC_EXCHANGE_TOTP_KEY_INVALID, - .hint = gettext_noop ("TOTP key is not valid."), - .http_code = MHD_HTTP_UNINITIALIZED - }, - - { - .ec = TALER_EC_GENERIC_CLIENT_INTERNAL_ERROR, - .hint = gettext_noop ( - "An internal failure happened on the client side. Details should be in the local logs. Check if you are using the latest available version or file a report with the developers."), - .http_code = MHD_HTTP_UNINITIALIZED + .http_code = MHD_HTTP_ACCEPTED }, { - .ec = TALER_EC_GENERIC_METHOD_INVALID, - .hint = gettext_noop ( - "The HTTP method used is invalid for this endpoint. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers."), - .http_code = MHD_HTTP_METHOD_NOT_ALLOWED + /* 1980 */ + .ec = TALER_EC_EXCHANGE_TOTP_KEY_INVALID, + .hint = gettext_noop ("TOTP key is not valid."), + .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 2000 */ .ec = TALER_EC_MERCHANT_GENERIC_INSTANCE_UNKNOWN, .hint = gettext_noop ( "The backend could not find the merchant instance specified in the request."), @@ -1842,6 +2380,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2001 */ .ec = TALER_EC_MERCHANT_GENERIC_HOLE_IN_WIRE_FEE_STRUCTURE, .hint = gettext_noop ( "The start and end-times in the wire fee structure leave a hole. This is not allowed."), @@ -1849,6 +2388,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2002 */ .ec = TALER_EC_MERCHANT_GENERIC_EXCHANGE_WIRE_REQUEST_FAILED, .hint = gettext_noop ( "The merchant was unable to obtain a valid answer to /wire from the exchange."), @@ -1856,12 +2396,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2003 */ .ec = TALER_EC_MERCHANT_GENERIC_CATEGORY_UNKNOWN, .hint = gettext_noop ("The product category is not known to the backend."), .http_code = MHD_HTTP_NOT_FOUND }, { + /* 2004 */ .ec = TALER_EC_MERCHANT_GENERIC_UNIT_UNKNOWN, .hint = gettext_noop ( "The unit referenced in the request is not known to the backend."), @@ -1869,12 +2411,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2005 */ .ec = TALER_EC_MERCHANT_GENERIC_ORDER_UNKNOWN, .hint = gettext_noop ("The proposal is not known to the backend."), .http_code = MHD_HTTP_NOT_FOUND }, { + /* 2006 */ .ec = TALER_EC_MERCHANT_GENERIC_PRODUCT_UNKNOWN, .hint = gettext_noop ( "The order provided to the backend could not be completed, because a product to be completed via inventory data is not actually in our inventory."), @@ -1882,6 +2426,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2007 */ .ec = TALER_EC_MERCHANT_GENERIC_REWARD_ID_UNKNOWN, .hint = gettext_noop ( "The reward ID is unknown. This could happen if the reward has expired.") @@ -1890,6 +2435,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2008 */ .ec = TALER_EC_MERCHANT_GENERIC_DB_CONTRACT_CONTENT_INVALID, .hint = gettext_noop ( "The contract obtained from the merchant backend was malformed."), @@ -1897,6 +2443,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2009 */ .ec = TALER_EC_MERCHANT_GENERIC_CONTRACT_HASH_DOES_NOT_MATCH_ORDER, .hint = gettext_noop ( "The order we found does not match the provided contract hash."), @@ -1904,6 +2451,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2010 */ .ec = TALER_EC_MERCHANT_GENERIC_EXCHANGE_KEYS_FAILURE, .hint = gettext_noop ( "The exchange failed to provide a valid response to the merchant's /keys request."), @@ -1911,6 +2459,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2011 */ .ec = TALER_EC_MERCHANT_GENERIC_EXCHANGE_TIMEOUT, .hint = gettext_noop ( "The exchange failed to respond to the merchant on time."), @@ -1918,18 +2467,21 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2012 */ .ec = TALER_EC_MERCHANT_GENERIC_EXCHANGE_CONNECT_FAILURE, .hint = gettext_noop ("The merchant failed to talk to the exchange."), .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR }, { + /* 2013 */ .ec = TALER_EC_MERCHANT_GENERIC_EXCHANGE_REPLY_MALFORMED, .hint = gettext_noop ("The exchange returned a maformed response."), .http_code = MHD_HTTP_BAD_GATEWAY }, { + /* 2014 */ .ec = TALER_EC_MERCHANT_GENERIC_EXCHANGE_UNEXPECTED_STATUS, .hint = gettext_noop ( "The exchange returned an unexpected response status."), @@ -1937,6 +2489,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2015 */ .ec = TALER_EC_MERCHANT_GENERIC_UNAUTHORIZED, .hint = gettext_noop ( "The merchant refused the request due to lack of authorization."), @@ -1944,6 +2497,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2016 */ .ec = TALER_EC_MERCHANT_GENERIC_INSTANCE_DELETED, .hint = gettext_noop ( "The merchant instance specified in the request was deleted."), @@ -1951,6 +2505,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2017 */ .ec = TALER_EC_MERCHANT_GENERIC_TRANSFER_UNKNOWN, .hint = gettext_noop ( "The backend could not find the inbound wire transfer specified in the request."), @@ -1958,6 +2513,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2018 */ .ec = TALER_EC_MERCHANT_GENERIC_TEMPLATE_UNKNOWN, .hint = gettext_noop ( "The backend could not find the template(id) because it is not exist."), @@ -1965,6 +2521,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2019 */ .ec = TALER_EC_MERCHANT_GENERIC_WEBHOOK_UNKNOWN, .hint = gettext_noop ( "The backend could not find the webhook(id) because it is not exist."), @@ -1972,6 +2529,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2020 */ .ec = TALER_EC_MERCHANT_GENERIC_PENDING_WEBHOOK_UNKNOWN, .hint = gettext_noop ( "The backend could not find the webhook(serial) because it is not exist.") @@ -1980,6 +2538,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2021 */ .ec = TALER_EC_MERCHANT_GENERIC_OTP_DEVICE_UNKNOWN, .hint = gettext_noop ( "The backend could not find the OTP device(id) because it is not exist."), @@ -1987,18 +2546,21 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2022 */ .ec = TALER_EC_MERCHANT_GENERIC_ACCOUNT_UNKNOWN, .hint = gettext_noop ("The account is not known to the backend."), .http_code = MHD_HTTP_NOT_FOUND }, { + /* 2023 */ .ec = TALER_EC_MERCHANT_GENERIC_H_WIRE_MALFORMED, .hint = gettext_noop ("The wire hash was malformed."), .http_code = MHD_HTTP_BAD_REQUEST }, { + /* 2024 */ .ec = TALER_EC_MERCHANT_GENERIC_CURRENCY_MISMATCH, .hint = gettext_noop ( "The currency specified in the operation does not work with the current state of the given resource."), @@ -2006,6 +2568,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2025 */ .ec = TALER_EC_MERCHANT_GENERIC_EXCHANGE_UNTRUSTED, .hint = gettext_noop ( "The exchange specified in the operation is not trusted by this exchange. The client should limit its operation to exchanges enabled by the merchant, or ask the merchant to enable additional exchanges in the configuration."), @@ -2013,12 +2576,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2026 */ .ec = TALER_EC_MERCHANT_GENERIC_TOKEN_FAMILY_UNKNOWN, .hint = gettext_noop ("The token family is not known to the backend."), .http_code = MHD_HTTP_NOT_FOUND }, { + /* 2027 */ .ec = TALER_EC_MERCHANT_GENERIC_TOKEN_KEY_UNKNOWN, .hint = gettext_noop ( "The token family key is not known to the backend. Check the local system time on the client, maybe an expired (or not yet valid) token was used."), @@ -2026,6 +2591,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2028 */ .ec = TALER_EC_MERCHANT_GENERIC_DONAU_NOT_CONFIGURED, .hint = gettext_noop ( "The merchant backend is not configured to support the DONAU protocol."), @@ -2033,6 +2599,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2029 */ .ec = TALER_EC_MERCHANT_EXCHANGE_SIGN_PUB_UNKNOWN, .hint = gettext_noop ( "The public signing key given in the exchange response is not in the current keys response. It is possible that the operation will succeed later after the merchant has downloaded an updated keys response."), @@ -2040,6 +2607,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2030 */ .ec = TALER_EC_MERCHANT_GENERIC_FEATURE_NOT_AVAILABLE, .hint = gettext_noop ( "The merchant backend does not support the requested feature."), @@ -2047,6 +2615,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2031 */ .ec = TALER_EC_MERCHANT_GENERIC_MFA_MISSING, .hint = gettext_noop ( "This operation requires multi-factor authorization and the respective instance does not have a sufficient number of factors that could be validated configured. You need to ask the system administrator to perform this operation."), @@ -2054,6 +2623,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2032 */ .ec = TALER_EC_MERCHANT_GENERIC_DONAU_INVALID_RESPONSE, .hint = gettext_noop ( "A donation authority (Donau) provided an invalid response. This should be analyzed by the administrator. Trying again later may help."), @@ -2061,6 +2631,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2033 */ .ec = TALER_EC_MERCHANT_GENERIC_UNIT_BUILTIN, .hint = gettext_noop ( "The unit referenced in the request is builtin and cannot be modified or deleted."), @@ -2068,13 +2639,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { - .ec = TALER_EC_GENERIC_ENDPOINT_UNKNOWN, - .hint = gettext_noop ( - "There is no endpoint defined for the URL provided by the client. Check if you used the correct URL and/or file a report with the developers of the client software."), - .http_code = MHD_HTTP_NOT_FOUND - }, - - { + /* 2100 */ .ec = TALER_EC_MERCHANT_GET_ORDERS_EXCHANGE_TRACKING_FAILURE, .hint = gettext_noop ( "The exchange failed to provide a valid answer to the tracking request, thus those details are not in the response."), @@ -2082,6 +2647,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2103 */ .ec = TALER_EC_MERCHANT_GET_ORDERS_ID_EXCHANGE_REQUEST_FAILURE, .hint = gettext_noop ( "The merchant backend failed to construct the request for tracking to the exchange, thus tracking details are not in the response."), @@ -2089,6 +2655,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2104 */ .ec = TALER_EC_MERCHANT_GET_ORDERS_ID_EXCHANGE_LOOKUP_START_FAILURE, .hint = gettext_noop ( "The merchant backend failed trying to contact the exchange for tracking details, thus those details are not in the response."), @@ -2096,6 +2663,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2105 */ .ec = TALER_EC_MERCHANT_GET_ORDERS_ID_INVALID_TOKEN, .hint = gettext_noop ( "The claim token used to authenticate the client is invalid for this order."), @@ -2103,6 +2671,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2106 */ .ec = TALER_EC_MERCHANT_GET_ORDERS_ID_INVALID_CONTRACT_HASH, .hint = gettext_noop ( "The contract terms hash used to authenticate the client is invalid for this order."), @@ -2110,12 +2679,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2107 */ .ec = TALER_EC_MERCHANT_GET_ORDERS_ID_INVALID_CONTRACT_VERSION, .hint = gettext_noop ("The contract terms version is not invalid."), .http_code = MHD_HTTP_FORBIDDEN }, { + /* 2125 */ .ec = TALER_EC_MERCHANT_TAN_CHALLENGE_FAILED, .hint = gettext_noop ( "The provided TAN code is invalid for this challenge."), @@ -2123,6 +2694,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2126 */ .ec = TALER_EC_MERCHANT_TAN_CHALLENGE_UNKNOWN, .hint = gettext_noop ( "The backend is not aware of the specified MFA challenge."), @@ -2130,6 +2702,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2127 */ .ec = TALER_EC_MERCHANT_TAN_TOO_MANY_ATTEMPTS, .hint = gettext_noop ( "There have been too many attempts to solve the challenge. A new TAN must be requested."), @@ -2137,6 +2710,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2128 */ .ec = TALER_EC_MERCHANT_TAN_MFA_HELPER_EXEC_FAILED, .hint = gettext_noop ( "The backend failed to launch a helper process required for the multi-factor authentication step. The backend operator should check the logs and fix the Taler merchant backend configuration."), @@ -2144,6 +2718,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2129 */ .ec = TALER_EC_MERCHANT_TAN_CHALLENGE_SOLVED, .hint = gettext_noop ( "The challenge was already solved. Thus, we refuse to send it again."), @@ -2151,6 +2726,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2130 */ .ec = TALER_EC_MERCHANT_TAN_TOO_EARLY, .hint = gettext_noop ( "It is too early to request another transmission of the challenge. The client should wait and see if they received the previous challenge."), @@ -2158,6 +2734,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2131 */ .ec = TALER_EC_MERCHANT_MFA_FORBIDDEN, .hint = gettext_noop ( "There have been too many attempts to solve MFA. The client may attempt again in the future."), @@ -2165,6 +2742,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2150 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_INSUFFICIENT_FUNDS, .hint = gettext_noop ( "The exchange responded saying that funds were insufficient (for example, due to double-spending)."), @@ -2172,6 +2750,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2151 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_KEY_NOT_FOUND, .hint = gettext_noop ( "The denomination key used for payment is not listed among the denomination keys of the exchange."), @@ -2179,6 +2758,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2152 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_KEY_AUDITOR_FAILURE, .hint = gettext_noop ( "The denomination key used for payment is not audited by an auditor approved by the merchant."), @@ -2186,6 +2766,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2153 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_AMOUNT_OVERFLOW, .hint = gettext_noop ( "There was an integer overflow totaling up the amounts or deposit fees in the payment."), @@ -2193,6 +2774,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2154 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_FEES_EXCEED_PAYMENT, .hint = gettext_noop ( "The deposit fees exceed the total value of the payment."), @@ -2200,6 +2782,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2155 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_INSUFFICIENT_DUE_TO_FEES, .hint = gettext_noop ( "After considering deposit and wire fees, the payment is insufficient to satisfy the required amount for the contract. The client should revisit the logic used to calculate fees it must cover."), @@ -2207,6 +2790,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2156 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_PAYMENT_INSUFFICIENT, .hint = gettext_noop ( "Even if we do not consider deposit and wire fees, the payment is insufficient to satisfy the required amount for the contract."), @@ -2214,6 +2798,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2157 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_COIN_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature over the contract of one of the coins was invalid."), @@ -2221,6 +2806,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2158 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_LOOKUP_FAILED, .hint = gettext_noop ( "When we tried to find information about the exchange to issue the deposit, we failed. This usually only happens if the merchant backend is somehow unable to get its own HTTP client logic to work."), @@ -2228,6 +2814,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2159 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_REFUND_DEADLINE_PAST_WIRE_TRANSFER_DEADLINE, .hint = gettext_noop ( @@ -2236,6 +2823,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2160 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_ALREADY_PAID, .hint = gettext_noop ( "The order was already paid (maybe by another wallet)."), @@ -2243,12 +2831,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2161 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_OFFER_EXPIRED, .hint = gettext_noop ("The payment is too late, the offer has expired."), .http_code = MHD_HTTP_GONE }, { + /* 2162 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_MERCHANT_FIELD_MISSING, .hint = gettext_noop ( "The \"merchant\" field is missing in the proposal data. This is an internal error as the proposal is from the merchant's own database at this point."), @@ -2256,6 +2846,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2163 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_WIRE_HASH_UNKNOWN, .hint = gettext_noop ( "Failed to locate merchant's account information matching the wire hash given in the proposal."), @@ -2263,12 +2854,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2165 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_DEPOSIT_EXPIRED, .hint = gettext_noop ("The deposit time for the denomination has expired."), .http_code = MHD_HTTP_GONE }, { + /* 2166 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_WIRE_FEE_ADDITION_FAILED , .hint = gettext_noop ( @@ -2277,6 +2870,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2167 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_REFUNDED, .hint = gettext_noop ( "The contract was not fully paid because of refunds. Note that clients MAY treat this as paid if, for example, contracts must be executed despite of refunds."), @@ -2284,6 +2878,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2168 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_REFUNDS_EXCEED_PAYMENTS, .hint = gettext_noop ( "According to our database, we have refunded more than we were paid (which should not be possible)."), @@ -2291,6 +2886,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2169 */ .ec = TALER_EC_DEAD_QQQ_PAY_MERCHANT_POST_ORDERS_ID_ABORT_REFUND_REFUSED_PAYMENT_COMPLETE, .hint = gettext_noop ("Legacy stuff. Remove me with protocol v1."), @@ -2298,12 +2894,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2170 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_FAILED, .hint = gettext_noop ("The payment failed at the exchange."), .http_code = MHD_HTTP_BAD_GATEWAY }, { + /* 2171 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_AGE_COMMITMENT_MISSING, .hint = gettext_noop ( "The payment required a minimum age but one of the coins (of a denomination with support for age restriction) did not provide any age_commitment."), @@ -2311,6 +2909,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2172 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_AGE_COMMITMENT_SIZE_MISMATCH, .hint = gettext_noop ( "The payment required a minimum age but one of the coins provided an age_commitment that contained a wrong number of public keys compared to the number of age groups defined in the denomination of the coin."), @@ -2318,6 +2917,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2173 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_AGE_VERIFICATION_FAILED, .hint = gettext_noop ( "The payment required a minimum age but one of the coins provided a minimum_age_sig that couldn't be verified with the given age_commitment for that particular minimum age."), @@ -2325,6 +2925,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2174 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_AGE_COMMITMENT_HASH_MISSING, .hint = gettext_noop ( "The payment required no minimum age but one of the coins (of a denomination with support for age restriction) did not provide the required h_age_commitment."), @@ -2332,6 +2933,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2175 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_WIRE_METHOD_UNSUPPORTED, .hint = gettext_noop ( "The exchange does not support the selected bank account of the merchant. Likely the merchant had stale data on the bank accounts of the exchange and thus selected an inappropriate exchange when making the offer."), @@ -2339,6 +2941,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2176 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_CHOICE_INDEX_MISSING, .hint = gettext_noop ( "The payment requires the wallet to select a choice from the choices array and pass it in the 'choice_index' field of the request."), @@ -2346,12 +2949,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2177 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_CHOICE_INDEX_OUT_OF_BOUNDS, .hint = gettext_noop ("The 'choice_index' field is invalid."), .http_code = MHD_HTTP_BAD_REQUEST }, { + /* 2178 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_INPUT_TOKENS_MISMATCH, .hint = gettext_noop ( "The provided 'tokens' array does not match with the required input tokens of the order."), @@ -2359,6 +2964,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2179 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_TOKEN_ISSUE_SIG_INVALID, .hint = gettext_noop ( "Invalid token issue signature (blindly signed by merchant) for provided token."), @@ -2366,6 +2972,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2180 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_TOKEN_USE_SIG_INVALID, .hint = gettext_noop ( "Invalid token use signature (EdDSA, signed by wallet) for provided token."), @@ -2373,6 +2980,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2181 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_TOKEN_COUNT_MISMATCH, .hint = gettext_noop ( "The provided number of tokens does not match the required number."), @@ -2380,6 +2988,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2182 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_TOKEN_ENVELOPE_COUNT_MISMATCH, .hint = gettext_noop ( "The provided number of token envelopes does not match the specified number."), @@ -2387,6 +2996,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2183 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_TOKEN_INVALID, .hint = gettext_noop ( "Invalid token because it was already used, is expired or not yet valid.") @@ -2395,6 +3005,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2184 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_TRANSACTION_LIMIT_VIOLATION, .hint = gettext_noop ( @@ -2403,6 +3014,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2185 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_DONATION_AMOUNT_MISMATCH, .hint = gettext_noop ( "The donation amount provided in the BKPS does not match the amount of the order choice."), @@ -2410,13 +3022,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { - .ec = TALER_EC_GENERIC_JSON_INVALID, - .hint = gettext_noop ( - "The JSON in the client's request was malformed. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers."), - .http_code = MHD_HTTP_BAD_REQUEST - }, - - { + /* 2200 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAID_CONTRACT_HASH_MISMATCH, .hint = gettext_noop ( "The contract hash does not match the given order ID."), @@ -2424,6 +3030,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2201 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAID_COIN_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature of the merchant is not valid for the given contract hash.") @@ -2432,6 +3039,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2225 */ .ec = TALER_EC_MERCHANT_POST_TOKEN_FAMILY_CONFLICT, .hint = gettext_noop ( "A token family with this ID but conflicting data exists."), @@ -2439,6 +3047,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2226 */ .ec = TALER_EC_MERCHANT_PATCH_TOKEN_FAMILY_NOT_FOUND, .hint = gettext_noop ( "The backend is unaware of a token family with the given ID."), @@ -2446,6 +3055,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2251 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_EXCHANGE_REFUND_FAILED, .hint = gettext_noop ( "The merchant failed to send the exchange the refund request."), @@ -2453,6 +3063,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2252 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_EXCHANGE_LOOKUP_FAILED, .hint = gettext_noop ( "The merchant failed to find the exchange to process the lookup."), @@ -2460,12 +3071,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2253 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_CONTRACT_NOT_FOUND, .hint = gettext_noop ("The merchant could not find the contract."), .http_code = MHD_HTTP_NOT_FOUND }, { + /* 2254 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_REFUND_REFUSED_PAYMENT_COMPLETE , .hint = gettext_noop ( @@ -2474,6 +3087,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2255 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_CONTRACT_HASH_MISSMATCH, .hint = gettext_noop ( "The hash provided by the wallet does not match the order."), @@ -2481,12 +3095,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2256 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_COINS_ARRAY_EMPTY, .hint = gettext_noop ("The array of coins cannot be empty."), .http_code = MHD_HTTP_BAD_REQUEST }, { + /* 2258 */ .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_AWAITING_KEYS, .hint = gettext_noop ( "We are waiting for the exchange to provide us with key material before checking the wire transfer."), @@ -2494,6 +3110,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2259 */ .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_AWAITING_LIST, .hint = gettext_noop ( "We are waiting for the exchange to provide us with the list of aggregated transactions."), @@ -2501,6 +3118,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2260 */ .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_FATAL_NO_EXCHANGE, .hint = gettext_noop ( "The endpoint indicated in the wire transfer does not belong to a GNU Taler exchange."), @@ -2508,6 +3126,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2261 */ .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_FATAL_NOT_FOUND, .hint = gettext_noop ( "The exchange indicated in the wire transfer claims to know nothing about the wire transfer."), @@ -2515,6 +3134,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2262 */ .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_RATE_LIMITED, .hint = gettext_noop ( "The interaction with the exchange is delayed due to rate limiting."), @@ -2522,6 +3142,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2263 */ .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_TRANSIENT_FAILURE, .hint = gettext_noop ( "We experienced a transient failure in our interaction with the exchange."), @@ -2529,6 +3150,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2264 */ .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_HARD_FAILURE, .hint = gettext_noop ( "The response from the exchange was unacceptable and should be reviewed with an auditor."), @@ -2536,13 +3158,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { - .ec = TALER_EC_GENERIC_HTTP_HEADERS_MALFORMED, - .hint = gettext_noop ( - "Some of the HTTP headers provided by the client were malformed and caused the server to not be able to handle the request. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers."), - .http_code = MHD_HTTP_BAD_REQUEST - }, - - { + /* 2300 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_CLAIM_NOT_FOUND, .hint = gettext_noop ( "We could not claim the order because the backend is unaware of it."), @@ -2550,6 +3166,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2301 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_CLAIM_ALREADY_CLAIMED, .hint = gettext_noop ( "We could not claim the order because someone else claimed it first."), @@ -2557,25 +3174,21 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2302 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_CLAIM_CLIENT_INTERNAL_FAILURE, .hint = gettext_noop ("The client-side experienced an internal failure."), .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 2350 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_REFUND_SIGNATURE_FAILED, .hint = gettext_noop ("The backend failed to sign the refund request."), .http_code = MHD_HTTP_UNINITIALIZED }, { - .ec = TALER_EC_GENERIC_PAYTO_URI_MALFORMED, - .hint = gettext_noop ( - "The payto:// URI provided by the client is malformed. Check that you are using the correct syntax as of RFC 8905 and/or that you entered the bank account number correctly."), - .http_code = MHD_HTTP_BAD_REQUEST - }, - - { + /* 2400 */ .ec = TALER_EC_MERCHANT_REWARD_PICKUP_UNBLIND_FAILURE, .hint = gettext_noop ( "The client failed to unblind the signature returned by the merchant."), @@ -2583,6 +3196,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2403 */ .ec = TALER_EC_MERCHANT_REWARD_PICKUP_EXCHANGE_ERROR, .hint = gettext_noop ( "The exchange returned a failure code for the withdraw operation."), @@ -2590,6 +3204,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2404 */ .ec = TALER_EC_MERCHANT_REWARD_PICKUP_SUMMATION_FAILED, .hint = gettext_noop ( "The merchant failed to add up the amounts to compute the pick up value.") @@ -2598,12 +3213,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2405 */ .ec = TALER_EC_MERCHANT_REWARD_PICKUP_HAS_EXPIRED, .hint = gettext_noop ("The reward expired."), .http_code = MHD_HTTP_GONE }, { + /* 2406 */ .ec = TALER_EC_MERCHANT_REWARD_PICKUP_AMOUNT_EXCEEDS_REWARD_REMAINING, .hint = gettext_noop ( "The requested withdraw amount exceeds the amount remaining to be picked up."), @@ -2611,6 +3228,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2407 */ .ec = TALER_EC_MERCHANT_REWARD_PICKUP_DENOMINATION_UNKNOWN, .hint = gettext_noop ( "The merchant did not find the specified denomination key in the exchange's key set."), @@ -2618,13 +3236,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { - .ec = TALER_EC_GENERIC_PARAMETER_MISSING, - .hint = gettext_noop ( - "A required parameter in the request was missing. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers."), - .http_code = MHD_HTTP_BAD_REQUEST - }, - - { + /* 2500 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_INSTANCE_CONFIGURATION_LACKS_WIRE, .hint = gettext_noop ( @@ -2633,6 +3245,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2501 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_NO_LOCALTIME, .hint = gettext_noop ( "The proposal had no timestamp and the merchant backend failed to obtain the current local time."), @@ -2640,6 +3253,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2502 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_PROPOSAL_PARSE_ERROR, .hint = gettext_noop ( "The order provided to the backend could not be parsed; likely some required fields were missing or ill-formed."), @@ -2647,6 +3261,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2503 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ALREADY_EXISTS, .hint = gettext_noop ( "A conflicting order (sharing the same order identifier) already exists at this merchant backend instance."), @@ -2654,6 +3269,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2504 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_REFUND_AFTER_WIRE_DEADLINE, .hint = gettext_noop ( "The order creation request is invalid because the given wire deadline is before the refund deadline."), @@ -2661,6 +3277,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2505 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_DELIVERY_DATE_IN_PAST, .hint = gettext_noop ( "The order creation request is invalid because the delivery date given is in the past."), @@ -2668,6 +3285,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2506 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_WIRE_DEADLINE_IS_NEVER, .hint = gettext_noop ( "The order creation request is invalid because a wire deadline of \"never\" is not allowed."), @@ -2675,6 +3293,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2507 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_PAY_DEADLINE_IN_PAST, .hint = gettext_noop ( "The order creation request is invalid because the given payment deadline is in the past."), @@ -2682,6 +3301,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2508 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_REFUND_DEADLINE_IN_PAST, .hint = gettext_noop ( "The order creation request is invalid because the given refund deadline is in the past."), @@ -2689,6 +3309,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2509 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_NO_EXCHANGES_FOR_WIRE_METHOD, .hint = gettext_noop ( "The backend does not trust any exchange that would allow funds to be wired to any bank account of this instance using the wire method specified with the order. (Note that right now, we do not support the use of exchange bank accounts with mandatory currency conversion.) One likely cause for this is that the taler-merchant-exchangekeyupdate process is not running."), @@ -2696,6 +3317,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2510 */ .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_ORDERS_ID_FORGET_PATH_SYNTAX_INCORRECT , .hint = gettext_noop ("One of the paths to forget is malformed."), @@ -2703,6 +3325,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2511 */ .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_ORDERS_ID_FORGET_PATH_NOT_FORGETTABLE, .hint = gettext_noop ( "One of the paths to forget was not marked as forgettable."), @@ -2710,6 +3333,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2512 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_REFUND_EXCHANGE_TRANSACTION_LIMIT_VIOLATION, .hint = gettext_noop ( @@ -2718,6 +3342,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2513 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_AMOUNT_EXCEEDS_LEGAL_LIMITS, .hint = gettext_noop ( "The total order amount exceeds hard legal transaction limits from the available exchanges, thus a customer could never legally make this payment. You may try to increase your limits by passing legitimization checks with exchange operators. You could also inquire with your legislator why the limits are prohibitively low for your business."), @@ -2725,6 +3350,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2514 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_NO_EXCHANGE_FOR_CURRENCY, .hint = gettext_noop ( "A currency specified to be paid in the contract is not supported by any exchange that this instance can currently use. Possible solutions include (1) specifying a different currency, (2) adding additional suitable exchange operators to the merchant backend configuration, or (3) satisfying compliance rules of an configured exchange to begin using the service of that provider."), @@ -2732,6 +3358,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2520 */ .ec = TALER_EC_MERCHANT_PRIVATE_DELETE_ORDERS_AWAITING_PAYMENT, .hint = gettext_noop ( "The order provided to the backend could not be deleted, our offer is still valid and awaiting payment. Deletion may work later after the offer has expired if it remains unpaid."), @@ -2739,6 +3366,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2521 */ .ec = TALER_EC_MERCHANT_PRIVATE_DELETE_ORDERS_ALREADY_PAID, .hint = gettext_noop ( "The order provided to the backend could not be deleted as the order was already paid."), @@ -2746,6 +3374,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2530 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_INCONSISTENT_AMOUNT, .hint = gettext_noop ( "The amount to be refunded is inconsistent: either is lower than the previous amount being awarded, or it exceeds the original price paid by the customer."), @@ -2753,6 +3382,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2531 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_ORDER_UNPAID, .hint = gettext_noop ( "Only paid orders can be refunded, and the frontend specified an unpaid order to issue a refund for."), @@ -2760,6 +3390,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2532 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_NOT_ALLOWED_BY_CONTRACT, .hint = gettext_noop ( @@ -2768,6 +3399,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2533 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_TOKEN_FAMILY_SLUG_UNKNOWN, .hint = gettext_noop ( "The token family slug provided in this order could not be found in the merchant database."), @@ -2775,6 +3407,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2534 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_TOKEN_FAMILY_NOT_VALID, .hint = gettext_noop ( "A token family referenced in this order is either expired or not valid yet."), @@ -2782,12 +3415,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2550 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_EXCHANGE_UNKNOWN, .hint = gettext_noop ("The exchange says it does not know this transfer."), .http_code = MHD_HTTP_BAD_GATEWAY }, { + /* 2551 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_REQUEST_ERROR, .hint = gettext_noop ( "We internally failed to execute the /track/transfer request."), @@ -2795,6 +3430,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2552 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_TRANSFERS, .hint = gettext_noop ( "The amount transferred differs between what was submitted and what the exchange claimed."), @@ -2802,6 +3438,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2553 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_REPORTS, .hint = gettext_noop ( "The exchange gave conflicting information about a coin which has been wire transferred."), @@ -2809,6 +3446,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2554 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_BAD_WIRE_FEE, .hint = gettext_noop ( "The exchange charged a different wire fee than what it originally advertised, and it is higher."), @@ -2816,6 +3454,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2555 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_ACCOUNT_NOT_FOUND, .hint = gettext_noop ( "We did not find the account that the transfer was made to."), @@ -2823,6 +3462,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2556 */ .ec = TALER_EC_MERCHANT_PRIVATE_DELETE_TRANSFERS_ALREADY_CONFIRMED, .hint = gettext_noop ( "The backend could not delete the transfer as the echange already replied to our inquiry about it and we have integrated the result."), @@ -2830,6 +3470,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2557 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_SUBMISSION, .hint = gettext_noop ( "The backend could not persist the wire transfer due to the state of the backend. This usually means that the bank account specified is not known to the backend for this instance."), @@ -2837,6 +3478,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2558 */ .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_TARGET_ACCOUNT_UNKNOWN, .hint = gettext_noop ( "The target bank account given by the exchange is not (or no longer) known at the merchant instance."), @@ -2844,6 +3486,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2563 */ .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_CONFLICTING_TRANSFERS, .hint = gettext_noop ( "The amount transferred differs between what was submitted and what the exchange claimed."), @@ -2851,13 +3494,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { - .ec = TALER_EC_GENERIC_PARAMETER_MALFORMED, - .hint = gettext_noop ( - "A parameter in the request was malformed. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers."), - .http_code = MHD_HTTP_BAD_REQUEST - }, - - { + /* 2600 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_INSTANCES_ALREADY_EXISTS, .hint = gettext_noop ( "The merchant backend cannot create an instance under the given identifier as one already exists. Use PATCH to modify the existing entry."), @@ -2865,6 +3502,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2601 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_INSTANCES_BAD_AUTH, .hint = gettext_noop ( "The merchant backend cannot create an instance because the authentication configuration field is malformed."), @@ -2872,6 +3510,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2602 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_INSTANCE_AUTH_BAD_AUTH, .hint = gettext_noop ( "The merchant backend cannot update an instance's authentication settings because the provided authentication settings are malformed."), @@ -2879,6 +3518,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2603 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_INSTANCES_PURGE_REQUIRED, .hint = gettext_noop ( "The merchant backend cannot create an instance under the given identifier, the previous one was deleted but must be purged first."), @@ -2886,6 +3526,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2625 */ .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_INSTANCES_PURGE_REQUIRED, .hint = gettext_noop ( "The merchant backend cannot update an instance under the given identifier, the previous one was deleted but must be purged first."), @@ -2893,6 +3534,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2626 */ .ec = TALER_EC_MERCHANT_PRIVATE_ACCOUNT_DELETE_UNKNOWN_ACCOUNT, .hint = gettext_noop ( "The bank account referenced in the requested operation was not found."), @@ -2900,6 +3542,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2627 */ .ec = TALER_EC_MERCHANT_PRIVATE_ACCOUNT_EXISTS, .hint = gettext_noop ( "The bank account specified in the request already exists at the merchant."), @@ -2907,18 +3550,21 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2650 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_PRODUCTS_CONFLICT_PRODUCT_EXISTS, .hint = gettext_noop ("The product ID exists."), .http_code = MHD_HTTP_CONFLICT }, { + /* 2651 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_CATEGORIES_CONFLICT_CATEGORY_EXISTS, .hint = gettext_noop ("A category with the same name exists already."), .http_code = MHD_HTTP_CONFLICT }, { + /* 2660 */ .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_LOST_REDUCED, .hint = gettext_noop ( "The update would have reduced the total amount of product lost, which is not allowed."), @@ -2926,6 +3572,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2661 */ .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_LOST_EXCEEDS_STOCKS, .hint = gettext_noop ( "The update would have mean that more stocks were lost than what remains from total inventory after sales, which is not allowed."), @@ -2933,6 +3580,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2662 */ .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_STOCKED_REDUCED, .hint = gettext_noop ( "The update would have reduced the total amount of product in stock, which is not allowed."), @@ -2940,6 +3588,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2663 */ .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_SOLD_REDUCED, .hint = gettext_noop ( "The update would have reduced the total amount of product sold, which is not allowed."), @@ -2947,6 +3596,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2670 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_PRODUCTS_LOCK_INSUFFICIENT_STOCKS, .hint = gettext_noop ( "The lock request is for more products than we have left (unlocked) in stock."), @@ -2954,6 +3604,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2680 */ .ec = TALER_EC_MERCHANT_PRIVATE_DELETE_PRODUCTS_CONFLICTING_LOCK, .hint = gettext_noop ( "The deletion request is for a product that is locked."), @@ -2961,12 +3612,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { - .ec = TALER_EC_GENERIC_RESERVE_PUB_MALFORMED, - .hint = gettext_noop ("The reserve public key was malformed."), - .http_code = MHD_HTTP_BAD_REQUEST - }, - - { + /* 2700 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_RESERVES_UNSUPPORTED_WIRE_METHOD, .hint = gettext_noop ( "The requested wire method is not supported by the exchange."), @@ -2974,12 +3620,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2701 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_RESERVES_REWARDS_NOT_ALLOWED, .hint = gettext_noop ("The requested exchange does not allow rewards."), .http_code = MHD_HTTP_CONFLICT }, { + /* 2710 */ .ec = TALER_EC_MERCHANT_PRIVATE_DELETE_RESERVES_NO_SUCH_RESERVE, .hint = gettext_noop ( "The reserve could not be deleted because it is unknown."), @@ -2987,6 +3635,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2750 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_RESERVE_EXPIRED, .hint = gettext_noop ( "The reserve that was used to fund the rewards has expired."), @@ -2994,6 +3643,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2751 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_RESERVE_UNKNOWN, .hint = gettext_noop ( "The reserve that was used to fund the rewards was not found in the DB."), @@ -3001,6 +3651,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2752 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_INSUFFICIENT_FUNDS, .hint = gettext_noop ( "The backend knows the instance that was supposed to support the reward, and it was configured for rewardping. However, the funds remaining are insufficient to cover the reward, and the merchant should top up the reserve."), @@ -3008,6 +3659,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2753 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_RESERVE_NOT_FOUND, .hint = gettext_noop ( "The backend failed to find a reserve needed to authorize the reward."), @@ -3015,13 +3667,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { - .ec = TALER_EC_GENERIC_COMPRESSION_INVALID, - .hint = gettext_noop ( - "The body in the request could not be decompressed by the server. This is likely a bug in the client implementation. Check if you are using the latest available version and/or file a report with the developers."), - .http_code = MHD_HTTP_BAD_REQUEST - }, - - { + /* 2800 */ .ec = TALER_EC_MERCHANT_PRIVATE_GET_ORDERS_ID_AMOUNT_ARITHMETIC_FAILURE, .hint = gettext_noop ( "The merchant backend encountered a failure in computing the deposit total."), @@ -3029,18 +3675,21 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2850 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_TEMPLATES_CONFLICT_TEMPLATE_EXISTS, .hint = gettext_noop ("The template ID already exists."), .http_code = MHD_HTTP_CONFLICT }, { + /* 2851 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_OTP_DEVICES_CONFLICT_OTP_DEVICE_EXISTS, .hint = gettext_noop ("The OTP device ID already exists."), .http_code = MHD_HTTP_CONFLICT }, { + /* 2860 */ .ec = TALER_EC_MERCHANT_POST_USING_TEMPLATES_AMOUNT_CONFLICT_TEMPLATES_CONTRACT_AMOUNT, .hint = gettext_noop ( @@ -3049,6 +3698,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2861 */ .ec = TALER_EC_MERCHANT_POST_USING_TEMPLATES_SUMMARY_CONFLICT_TEMPLATES_CONTRACT_SUBJECT, .hint = gettext_noop ( @@ -3057,6 +3707,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2862 */ .ec = TALER_EC_MERCHANT_POST_USING_TEMPLATES_NO_AMOUNT, .hint = gettext_noop ( "Amount not given in the using template and in the template contract. There is a conflict."), @@ -3064,6 +3715,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2863 */ .ec = TALER_EC_MERCHANT_POST_USING_TEMPLATES_NO_SUMMARY, .hint = gettext_noop ( "Subject not given in the using template and in the template contract. There is a conflict."), @@ -3071,19 +3723,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { - .ec = TALER_EC_GENERIC_PATH_SEGMENT_MALFORMED, - .hint = gettext_noop ( - "A segment in the path of the URL provided by the client is malformed. Check that you are using the correct encoding for the URL."), - .http_code = MHD_HTTP_BAD_REQUEST - }, - - { + /* 2900 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_WEBHOOKS_CONFLICT_WEBHOOK_EXISTS, .hint = gettext_noop ("The webhook ID elready exists."), .http_code = MHD_HTTP_CONFLICT }, { + /* 2910 */ .ec = TALER_EC_MERCHANT_PRIVATE_POST_PENDING_WEBHOOKS_CONFLICT_PENDING_WEBHOOK_EXISTS, .hint = gettext_noop ("The webhook serial elready exists."), @@ -3091,20 +3738,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { - .ec = TALER_EC_GENERIC_CLIENT_UNSUPPORTED_PROTOCOL_VERSION, - .hint = gettext_noop ( - "The client does not support the protocol version advertised by the server."), - .http_code = MHD_HTTP_UNINITIALIZED - }, - - { - .ec = TALER_EC_GENERIC_CURRENCY_MISMATCH, - .hint = gettext_noop ( - "The currency involved in the operation is not acceptable for this server. Check your configuration and make sure the currency specified for a given service provider is one of the currencies supported by that provider."), - .http_code = MHD_HTTP_BAD_REQUEST - }, - - { + /* 3001 */ .ec = TALER_EC_AUDITOR_GENERIC_UNAUTHORIZED, .hint = gettext_noop ( "The auditor refused the connection due to a lack of authorization."), @@ -3112,19 +3746,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 3002 */ .ec = TALER_EC_AUDITOR_GENERIC_METHOD_NOT_ALLOWED, .hint = gettext_noop ("This method is not allowed here."), .http_code = MHD_HTTP_METHOD_NOT_ALLOWED }, { - .ec = TALER_EC_GENERIC_URI_TOO_LONG, - .hint = gettext_noop ( - "The URI is longer than the longest URI the HTTP server is willing to parse. If you believe this was a legitimate request, contact the server administrators and/or the software developers to increase the limit."), - .http_code = MHD_HTTP_URI_TOO_LONG - }, - - { + /* 3100 */ .ec = TALER_EC_AUDITOR_DEPOSIT_CONFIRMATION_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature from the exchange on the deposit confirmation is invalid.") @@ -3133,6 +3762,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 3101 */ .ec = TALER_EC_AUDITOR_EXCHANGE_SIGNING_KEY_REVOKED, .hint = gettext_noop ( "The exchange key used for the signature on the deposit confirmation was revoked."), @@ -3140,74 +3770,21 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 3102 */ .ec = TALER_EC_AUDITOR_RESOURCE_NOT_FOUND, .hint = gettext_noop ("The requested resource could not be found."), .http_code = MHD_HTTP_NOT_FOUND }, { + /* 3103 */ .ec = TALER_EC_AUDITOR_URI_MISSING_PATH_COMPONENT, .hint = gettext_noop ("The URI is missing a path component."), .http_code = MHD_HTTP_BAD_REQUEST }, { - .ec = TALER_EC_GENERIC_UPLOAD_EXCEEDS_LIMIT, - .hint = gettext_noop ( - "The body is too large to be permissible for the endpoint. If you believe this was a legitimate request, contact the server administrators and/or the software developers to increase the limit."), - .http_code = MHD_HTTP_CONTENT_TOO_LARGE - }, - - { - .ec = TALER_EC_GENERIC_UNAUTHORIZED, - .hint = gettext_noop ( - "The service refused the request due to lack of proper authorization. Accessing this endpoint requires an access token from the account owner."), - .http_code = MHD_HTTP_UNAUTHORIZED - }, - - { - .ec = TALER_EC_GENERIC_TOKEN_UNKNOWN, - .hint = gettext_noop ( - "The service refused the request as the given authorization token is unknown. You should request a valid access token from the account owner."), - .http_code = MHD_HTTP_UNAUTHORIZED - }, - - { - .ec = TALER_EC_GENERIC_TOKEN_EXPIRED, - .hint = gettext_noop ( - "The service refused the request as the given authorization token expired. You should request a fresh authorization token from the account owner."), - .http_code = MHD_HTTP_UNAUTHORIZED - }, - - { - .ec = TALER_EC_GENERIC_TOKEN_MALFORMED, - .hint = gettext_noop ( - "The service refused the request as the given authorization token is invalid or malformed. You should check that you have the right credentials."), - .http_code = MHD_HTTP_UNAUTHORIZED - }, - - { - .ec = TALER_EC_GENERIC_FORBIDDEN, - .hint = gettext_noop ( - "The service refused the request due to lack of proper rights on the resource. You may need different credentials to be allowed to perform this operation."), - .http_code = MHD_HTTP_FORBIDDEN - }, - - { - .ec = TALER_EC_GENERIC_DB_SETUP_FAILED, - .hint = gettext_noop ( - "The service failed initialize its connection to the database. The system administrator should check that the service has permissions to access the database and that the database is running."), - .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR - }, - - { - .ec = TALER_EC_GENERIC_DB_START_FAILED, - .hint = gettext_noop ( - "The service encountered an error event to just start the database transaction. The system administrator should check that the database is running."), - .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR - }, - - { + /* 5101 */ .ec = TALER_EC_BANK_SAME_ACCOUNT, .hint = gettext_noop ( "Wire transfer attempted with credit and debit party being the same bank account."), @@ -3215,6 +3792,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5102 */ .ec = TALER_EC_BANK_UNALLOWED_DEBIT, .hint = gettext_noop ( "Wire transfer impossible, due to financial limitation of the party that attempted the payment."), @@ -3222,6 +3800,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5103 */ .ec = TALER_EC_BANK_NEGATIVE_NUMBER_AMOUNT, .hint = gettext_noop ( "Negative numbers are not allowed (as value and/or fraction) to instantiate an amount object."), @@ -3229,6 +3808,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5104 */ .ec = TALER_EC_BANK_NUMBER_TOO_BIG, .hint = gettext_noop ( "A too big number was used (as value and/or fraction) to instantiate an amount object."), @@ -3236,6 +3816,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5106 */ .ec = TALER_EC_BANK_UNKNOWN_ACCOUNT, .hint = gettext_noop ( "The bank account referenced in the requested operation was not found."), @@ -3243,6 +3824,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5107 */ .ec = TALER_EC_BANK_TRANSACTION_NOT_FOUND, .hint = gettext_noop ( "The transaction referenced in the requested operation (typically a reject operation), was not found."), @@ -3250,12 +3832,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5108 */ .ec = TALER_EC_BANK_BAD_FORMAT_AMOUNT, .hint = gettext_noop ("Bank received a malformed amount string."), .http_code = MHD_HTTP_BAD_REQUEST }, { + /* 5109 */ .ec = TALER_EC_BANK_REJECT_NO_RIGHTS, .hint = gettext_noop ( "The client does not own the account credited by the transaction which is to be rejected, so it has no rights do reject it."), @@ -3263,6 +3847,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5110 */ .ec = TALER_EC_BANK_UNMANAGED_EXCEPTION, .hint = gettext_noop ( "This error code is returned when no known exception types captured the exception."), @@ -3270,6 +3855,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5111 */ .ec = TALER_EC_BANK_SOFT_EXCEPTION, .hint = gettext_noop ( "This error code is used for all those exceptions that do not really need a specific error code to return to the client. Used for example when a client is trying to register with a unavailable username."), @@ -3277,6 +3863,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5112 */ .ec = TALER_EC_BANK_TRANSFER_REQUEST_UID_REUSED, .hint = gettext_noop ( "The request UID for a request to transfer funds has already been used, but with different details for the transfer."), @@ -3284,6 +3871,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5113 */ .ec = TALER_EC_BANK_WITHDRAWAL_OPERATION_RESERVE_SELECTION_CONFLICT, .hint = gettext_noop ( "The withdrawal operation already has a reserve selected. The current request conflicts with the existing selection."), @@ -3291,6 +3879,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5114 */ .ec = TALER_EC_BANK_DUPLICATE_RESERVE_PUB_SUBJECT, .hint = gettext_noop ( "The wire transfer subject duplicates an existing reserve public key. But wire transfer subjects must be unique."), @@ -3298,6 +3887,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5115 */ .ec = TALER_EC_BANK_ANCIENT_TRANSACTION_GONE, .hint = gettext_noop ( "The client requested a transaction that is so far in the past, that it has been forgotten by the bank."), @@ -3305,6 +3895,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5116 */ .ec = TALER_EC_BANK_ABORT_CONFIRM_CONFLICT, .hint = gettext_noop ( "The client attempted to abort a transaction that was already confirmed.") @@ -3313,6 +3904,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5117 */ .ec = TALER_EC_BANK_CONFIRM_ABORT_CONFLICT, .hint = gettext_noop ( "The client attempted to confirm a transaction that was already aborted.") @@ -3321,6 +3913,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5118 */ .ec = TALER_EC_BANK_REGISTER_CONFLICT, .hint = gettext_noop ( "The client attempted to register an account with the same name."), @@ -3328,6 +3921,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5119 */ .ec = TALER_EC_BANK_POST_WITHDRAWAL_OPERATION_REQUIRED, .hint = gettext_noop ( "The client attempted to confirm a withdrawal operation before the wallet posted the required details."), @@ -3335,6 +3929,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5120 */ .ec = TALER_EC_BANK_RESERVED_USERNAME_CONFLICT, .hint = gettext_noop ( "The client tried to register a new account under a reserved username (like 'admin' for example)."), @@ -3342,6 +3937,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5121 */ .ec = TALER_EC_BANK_REGISTER_USERNAME_REUSE, .hint = gettext_noop ( "The client tried to register a new account with an username already in use."), @@ -3349,6 +3945,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5122 */ .ec = TALER_EC_BANK_REGISTER_PAYTO_URI_REUSE, .hint = gettext_noop ( "The client tried to register a new account with a payto:// URI already in use."), @@ -3356,6 +3953,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5123 */ .ec = TALER_EC_BANK_ACCOUNT_BALANCE_NOT_ZERO, .hint = gettext_noop ( "The client tried to delete an account with a non null balance."), @@ -3363,6 +3961,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5124 */ .ec = TALER_EC_BANK_UNKNOWN_CREDITOR, .hint = gettext_noop ( "The client tried to create a transaction or an operation that credit an unknown account."), @@ -3370,6 +3969,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5125 */ .ec = TALER_EC_BANK_UNKNOWN_DEBTOR, .hint = gettext_noop ( "The client tried to create a transaction or an operation that debit an unknown account."), @@ -3377,6 +3977,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5126 */ .ec = TALER_EC_BANK_ACCOUNT_IS_EXCHANGE, .hint = gettext_noop ( "The client tried to perform an action prohibited for exchange accounts.") @@ -3385,6 +3986,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5127 */ .ec = TALER_EC_BANK_ACCOUNT_IS_NOT_EXCHANGE, .hint = gettext_noop ( "The client tried to perform an action reserved for exchange accounts."), @@ -3392,12 +3994,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5128 */ .ec = TALER_EC_BANK_BAD_CONVERSION, .hint = gettext_noop ("Received currency conversion is wrong."), .http_code = MHD_HTTP_CONFLICT }, { + /* 5129 */ .ec = TALER_EC_BANK_MISSING_TAN_INFO, .hint = gettext_noop ( "The account referenced in this operation is missing tan info for the chosen channel."), @@ -3405,6 +4009,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5130 */ .ec = TALER_EC_BANK_CONFIRM_INCOMPLETE, .hint = gettext_noop ( "The client attempted to confirm a transaction with incomplete info."), @@ -3412,6 +4017,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5131 */ .ec = TALER_EC_BANK_TAN_RATE_LIMITED, .hint = gettext_noop ( "The request rate is too high. The server is refusing requests to guard against brute-force attacks."), @@ -3419,12 +4025,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5132 */ .ec = TALER_EC_BANK_TAN_CHANNEL_NOT_SUPPORTED, .hint = gettext_noop ("This TAN channel is not supported."), .http_code = MHD_HTTP_NOT_IMPLEMENTED }, { + /* 5133 */ .ec = TALER_EC_BANK_TAN_CHANNEL_SCRIPT_FAILED, .hint = gettext_noop ( "Failed to send TAN using the helper script. Either script is not found, or script timeout, or script terminated with a non-successful result."), @@ -3432,6 +4040,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5134 */ .ec = TALER_EC_BANK_TAN_CHALLENGE_FAILED, .hint = gettext_noop ("The client's response to the challenge was invalid.") , @@ -3439,6 +4048,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5135 */ .ec = TALER_EC_BANK_NON_ADMIN_PATCH_LEGAL_NAME, .hint = gettext_noop ( "A non-admin user has tried to change their legal name."), @@ -3446,6 +4056,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5136 */ .ec = TALER_EC_BANK_NON_ADMIN_PATCH_DEBT_LIMIT, .hint = gettext_noop ( "A non-admin user has tried to change their debt limit."), @@ -3453,6 +4064,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5137 */ .ec = TALER_EC_BANK_NON_ADMIN_PATCH_MISSING_OLD_PASSWORD, .hint = gettext_noop ( "A non-admin user has tried to change their password whihout providing the current one."), @@ -3460,6 +4072,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5138 */ .ec = TALER_EC_BANK_PATCH_BAD_OLD_PASSWORD, .hint = gettext_noop ( "Provided old password does not match current password."), @@ -3467,12 +4080,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5139 */ .ec = TALER_EC_BANK_PATCH_ADMIN_EXCHANGE, .hint = gettext_noop ("An admin user has tried to become an exchange."), .http_code = MHD_HTTP_CONFLICT }, { + /* 5140 */ .ec = TALER_EC_BANK_NON_ADMIN_PATCH_CASHOUT, .hint = gettext_noop ( "A non-admin user has tried to change their cashout account."), @@ -3480,6 +4095,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5141 */ .ec = TALER_EC_BANK_NON_ADMIN_PATCH_CONTACT, .hint = gettext_noop ( "A non-admin user has tried to change their contact info."), @@ -3487,6 +4103,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5142 */ .ec = TALER_EC_BANK_ADMIN_CREDITOR, .hint = gettext_noop ( "The client tried to create a transaction that credit the admin account.") @@ -3495,18 +4112,21 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5143 */ .ec = TALER_EC_BANK_CHALLENGE_NOT_FOUND, .hint = gettext_noop ("The referenced challenge was not found."), .http_code = MHD_HTTP_NOT_FOUND }, { + /* 5144 */ .ec = TALER_EC_BANK_TAN_CHALLENGE_EXPIRED, .hint = gettext_noop ("The referenced challenge has expired."), .http_code = MHD_HTTP_CONFLICT }, { + /* 5145 */ .ec = TALER_EC_BANK_NON_ADMIN_SET_TAN_CHANNEL, .hint = gettext_noop ( "A non-admin user has tried to create an account with 2fa."), @@ -3514,6 +4134,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5146 */ .ec = TALER_EC_BANK_NON_ADMIN_SET_MIN_CASHOUT, .hint = gettext_noop ( "A non-admin user has tried to set their minimum cashout amount."), @@ -3521,6 +4142,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5147 */ .ec = TALER_EC_BANK_CONVERSION_AMOUNT_TO_SMALL, .hint = gettext_noop ( "Amount of currency conversion it less than the minimum allowed."), @@ -3528,6 +4150,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5148 */ .ec = TALER_EC_BANK_AMOUNT_DIFFERS, .hint = gettext_noop ("Specified amount will not work for this withdrawal.") , @@ -3535,24 +4158,28 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5149 */ .ec = TALER_EC_BANK_AMOUNT_REQUIRED, .hint = gettext_noop ("The backend requires an amount to be specified."), .http_code = MHD_HTTP_CONFLICT }, { + /* 5150 */ .ec = TALER_EC_BANK_PASSWORD_TOO_SHORT, .hint = gettext_noop ("Provided password is too short."), .http_code = MHD_HTTP_CONFLICT }, { + /* 5151 */ .ec = TALER_EC_BANK_PASSWORD_TOO_LONG, .hint = gettext_noop ("Provided password is too long."), .http_code = MHD_HTTP_CONFLICT }, { + /* 5152 */ .ec = TALER_EC_BANK_ACCOUNT_LOCKED, .hint = gettext_noop ( "Bank account is locked and cannot authenticate using his password."), @@ -3560,6 +4187,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5153 */ .ec = TALER_EC_BANK_UPDATE_ABORT_CONFLICT, .hint = gettext_noop ( "The client attempted to update a transaction' details that was already aborted."), @@ -3567,6 +4195,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5154 */ .ec = TALER_EC_BANK_TRANSFER_WTID_REUSED, .hint = gettext_noop ( "The wtid for a request to transfer funds has already been used, but with a different request unpaid."), @@ -3574,6 +4203,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5155 */ .ec = TALER_EC_BANK_NON_ADMIN_SET_CONVERSION_RATE_CLASS, .hint = gettext_noop ( "A non-admin user has tried to set their conversion rate class"), @@ -3581,67 +4211,21 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 5156 */ .ec = TALER_EC_BANK_CONVERSION_RATE_CLASS_UNKNOWN, .hint = gettext_noop ("The referenced conversion rate class was not found"), .http_code = MHD_HTTP_CONFLICT }, { + /* 5157 */ .ec = TALER_EC_BANK_NAME_REUSE, .hint = gettext_noop ("The client tried to use an already taken name."), .http_code = MHD_HTTP_CONFLICT }, { - .ec = TALER_EC_GENERIC_DB_STORE_FAILED, - .hint = gettext_noop ( - "The service failed to store information in its database. The system administrator should check that the database is running and review the service logs."), - .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR - }, - - { - .ec = TALER_EC_GENERIC_DB_FETCH_FAILED, - .hint = gettext_noop ( - "The service failed to fetch information from its database. The system administrator should check that the database is running and review the service logs."), - .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR - }, - - { - .ec = TALER_EC_GENERIC_DB_COMMIT_FAILED, - .hint = gettext_noop ( - "The service encountered an unrecoverable error trying to commit a transaction to the database. The system administrator should check that the database is running and review the service logs."), - .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR - }, - - { - .ec = TALER_EC_GENERIC_DB_SOFT_FAILURE, - .hint = gettext_noop ( - "The service encountered an error event to commit the database transaction, even after repeatedly retrying it there was always a conflicting transaction. This indicates a repeated serialization error; it should only happen if some client maliciously tries to create conflicting concurrent transactions. It could also be a sign of a missing index. Check if you are using the latest available version and/or file a report with the developers."), - .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR - }, - - { - .ec = TALER_EC_GENERIC_DB_INVARIANT_FAILURE, - .hint = gettext_noop ( - "The service's database is inconsistent and violates service-internal invariants. Check if you are using the latest available version and/or file a report with the developers."), - .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR - }, - - { - .ec = TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE, - .hint = gettext_noop ( - "The HTTP server experienced an internal invariant failure (bug). Check if you are using the latest available version and/or file a report with the developers."), - .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR - }, - - { - .ec = TALER_EC_GENERIC_FAILED_COMPUTE_JSON_HASH, - .hint = gettext_noop ( - "The service could not compute a cryptographic hash over some JSON value. Check if you are using the latest available version and/or file a report with the developers."), - .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR - }, - - { + /* 6100 */ .ec = TALER_EC_SYNC_ACCOUNT_UNKNOWN, .hint = gettext_noop ( "The sync service failed find the account in its database."), @@ -3649,6 +4233,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 6101 */ .ec = TALER_EC_SYNC_BAD_IF_NONE_MATCH, .hint = gettext_noop ( "The SHA-512 hash provided in the If-None-Match header is malformed."), @@ -3656,6 +4241,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 6102 */ .ec = TALER_EC_SYNC_BAD_IF_MATCH, .hint = gettext_noop ( "The SHA-512 hash provided in the If-Match header is malformed or missing."), @@ -3663,6 +4249,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 6103 */ .ec = TALER_EC_SYNC_BAD_SYNC_SIGNATURE, .hint = gettext_noop ( "The signature provided in the \"Sync-Signature\" header is malformed or missing."), @@ -3670,6 +4257,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 6104 */ .ec = TALER_EC_SYNC_INVALID_SIGNATURE, .hint = gettext_noop ( "The signature provided in the \"Sync-Signature\" header does not match the account, old or new Etags."), @@ -3677,6 +4265,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 6105 */ .ec = TALER_EC_SYNC_MALFORMED_CONTENT_LENGTH, .hint = gettext_noop ( "The \"Content-length\" field for the upload is not a number."), @@ -3684,6 +4273,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 6106 */ .ec = TALER_EC_SYNC_EXCESSIVE_CONTENT_LENGTH, .hint = gettext_noop ( "The \"Content-length\" field for the upload is too big based on the server's terms of service."), @@ -3691,6 +4281,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 6107 */ .ec = TALER_EC_SYNC_OUT_OF_MEMORY_ON_CONTENT_LENGTH, .hint = gettext_noop ( "The server is out of memory to handle the upload. Trying again later may succeed."), @@ -3698,12 +4289,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 6108 */ .ec = TALER_EC_SYNC_INVALID_UPLOAD, .hint = gettext_noop ("The uploaded data does not match the Etag."), .http_code = MHD_HTTP_BAD_REQUEST }, { + /* 6109 */ .ec = TALER_EC_SYNC_PAYMENT_GENERIC_TIMEOUT, .hint = gettext_noop ( "HTTP server experienced a timeout while awaiting promised payment."), @@ -3711,6 +4304,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 6110 */ .ec = TALER_EC_SYNC_PAYMENT_CREATE_BACKEND_ERROR, .hint = gettext_noop ( "Sync could not setup the payment request with its own backend."), @@ -3718,6 +4312,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 6111 */ .ec = TALER_EC_SYNC_PREVIOUS_BACKUP_UNKNOWN, .hint = gettext_noop ( "The sync service failed find the backup to be updated in its database."), @@ -3725,6 +4320,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 6112 */ .ec = TALER_EC_SYNC_MISSING_CONTENT_LENGTH, .hint = gettext_noop ( "The \"Content-length\" field for the upload is missing."), @@ -3732,6 +4328,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 6113 */ .ec = TALER_EC_SYNC_GENERIC_BACKEND_ERROR, .hint = gettext_noop ( "Sync had problems communicating with its payment backend."), @@ -3739,6 +4336,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 6114 */ .ec = TALER_EC_SYNC_GENERIC_BACKEND_TIMEOUT, .hint = gettext_noop ( "Sync experienced a timeout communicating with its payment backend."), @@ -3746,20 +4344,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { - .ec = TALER_EC_GENERIC_FAILED_COMPUTE_AMOUNT, - .hint = gettext_noop ( - "The service could not compute an amount. Check if you are using the latest available version and/or file a report with the developers."), - .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR - }, - - { - .ec = TALER_EC_GENERIC_PARSER_OUT_OF_MEMORY, - .hint = gettext_noop ( - "The HTTP server had insufficient memory to parse the request. 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 - }, - - { + /* 7000 */ .ec = TALER_EC_WALLET_EXCHANGE_PROTOCOL_VERSION_INCOMPATIBLE, .hint = gettext_noop ( "The wallet does not implement a version of the exchange protocol that is compatible with the protocol version of the exchange."), @@ -3767,6 +4352,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7001 */ .ec = TALER_EC_WALLET_UNEXPECTED_EXCEPTION, .hint = gettext_noop ( "The wallet encountered an unexpected exception. This is likely a bug in the wallet implementation."), @@ -3774,6 +4360,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7002 */ .ec = TALER_EC_WALLET_RECEIVED_MALFORMED_RESPONSE, .hint = gettext_noop ( "The wallet received a response from a server, but the response can't be parsed."), @@ -3781,6 +4368,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7003 */ .ec = TALER_EC_WALLET_NETWORK_ERROR, .hint = gettext_noop ( "The wallet tried to make a network request, but it received no response."), @@ -3788,6 +4376,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7004 */ .ec = TALER_EC_WALLET_HTTP_REQUEST_THROTTLED, .hint = gettext_noop ( "The wallet tried to make a network request, but it was throttled."), @@ -3795,6 +4384,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7005 */ .ec = TALER_EC_WALLET_UNEXPECTED_REQUEST_ERROR, .hint = gettext_noop ( "The wallet made a request to a service, but received an error response it does not know how to handle."), @@ -3802,6 +4392,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7006 */ .ec = TALER_EC_WALLET_EXCHANGE_DENOMINATIONS_INSUFFICIENT, .hint = gettext_noop ( "The denominations offered by the exchange are insufficient. Likely the exchange is badly configured or not maintained."), @@ -3809,6 +4400,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7007 */ .ec = TALER_EC_WALLET_CORE_API_OPERATION_UNKNOWN, .hint = gettext_noop ( "The wallet does not support the operation requested by a client."), @@ -3816,12 +4408,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7008 */ .ec = TALER_EC_WALLET_INVALID_TALER_PAY_URI, .hint = gettext_noop ("The given taler://pay URI is invalid."), .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 7009 */ .ec = TALER_EC_WALLET_EXCHANGE_COIN_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature on a coin by the exchange's denomination key is invalid after unblinding it."), @@ -3829,12 +4423,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7011 */ .ec = TALER_EC_WALLET_CORE_NOT_AVAILABLE, .hint = gettext_noop ("The wallet core service is not available."), .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 7012 */ .ec = TALER_EC_WALLET_WITHDRAWAL_OPERATION_ABORTED_BY_BANK, .hint = gettext_noop ( "The bank has aborted a withdrawal operation, and thus a withdrawal can't complete."), @@ -3842,12 +4438,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7013 */ .ec = TALER_EC_WALLET_HTTP_REQUEST_GENERIC_TIMEOUT, .hint = gettext_noop ("An HTTP request made by the wallet timed out."), .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 7014 */ .ec = TALER_EC_WALLET_ORDER_ALREADY_CLAIMED, .hint = gettext_noop ( "The order has already been claimed by another wallet."), @@ -3855,6 +4453,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7015 */ .ec = TALER_EC_WALLET_WITHDRAWAL_GROUP_INCOMPLETE, .hint = gettext_noop ( "A group of withdrawal operations (typically for the same reserve at the same exchange) has errors and will be tried again later."), @@ -3862,6 +4461,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7016 */ .ec = TALER_EC_WALLET_REWARD_COIN_SIGNATURE_INVALID, .hint = gettext_noop ( "The signature on a coin by the exchange's denomination key (obtained through the merchant via a reward) is invalid after unblinding it."), @@ -3869,6 +4469,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7017 */ .ec = TALER_EC_WALLET_BANK_INTEGRATION_PROTOCOL_VERSION_INCOMPATIBLE, .hint = gettext_noop ( "The wallet does not implement a version of the bank integration API that is compatible with the version offered by the bank."), @@ -3876,6 +4477,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7018 */ .ec = TALER_EC_WALLET_CONTRACT_TERMS_BASE_URL_MISMATCH, .hint = gettext_noop ( "The wallet processed a taler://pay URI, but the merchant base URL in the downloaded contract terms does not match the merchant base URL derived from the URI."), @@ -3883,6 +4485,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7019 */ .ec = TALER_EC_WALLET_CONTRACT_TERMS_SIGNATURE_INVALID, .hint = gettext_noop ( "The merchant's signature on the contract terms is invalid."), @@ -3890,6 +4493,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7020 */ .ec = TALER_EC_WALLET_CONTRACT_TERMS_MALFORMED, .hint = gettext_noop ( "The contract terms given by the merchant are malformed."), @@ -3897,6 +4501,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7021 */ .ec = TALER_EC_WALLET_PENDING_OPERATION_FAILED, .hint = gettext_noop ( "A pending operation failed, and thus the request can't be completed."), @@ -3904,6 +4509,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7022 */ .ec = TALER_EC_WALLET_PAY_MERCHANT_SERVER_ERROR, .hint = gettext_noop ( "A payment was attempted, but the merchant had an internal server error (5xx)."), @@ -3911,18 +4517,21 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7023 */ .ec = TALER_EC_WALLET_CRYPTO_WORKER_ERROR, .hint = gettext_noop ("The crypto worker failed."), .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 7024 */ .ec = TALER_EC_WALLET_CRYPTO_WORKER_BAD_REQUEST, .hint = gettext_noop ("The crypto worker received a bad request."), .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 7025 */ .ec = TALER_EC_WALLET_WITHDRAWAL_KYC_REQUIRED, .hint = gettext_noop ( "A KYC step is required before withdrawal can proceed."), @@ -3930,6 +4539,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7026 */ .ec = TALER_EC_WALLET_DEPOSIT_GROUP_INSUFFICIENT_BALANCE, .hint = gettext_noop ( "The wallet does not have sufficient balance to create a deposit group."), @@ -3937,6 +4547,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7027 */ .ec = TALER_EC_WALLET_PEER_PUSH_PAYMENT_INSUFFICIENT_BALANCE, .hint = gettext_noop ( "The wallet does not have sufficient balance to create a peer push payment."), @@ -3944,6 +4555,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7028 */ .ec = TALER_EC_WALLET_PEER_PULL_PAYMENT_INSUFFICIENT_BALANCE, .hint = gettext_noop ( "The wallet does not have sufficient balance to pay for an invoice."), @@ -3951,6 +4563,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7029 */ .ec = TALER_EC_WALLET_REFRESH_GROUP_INCOMPLETE, .hint = gettext_noop ( "A group of refresh operations has errors and will be tried again later.") @@ -3959,6 +4572,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7030 */ .ec = TALER_EC_WALLET_EXCHANGE_BASE_URL_MISMATCH, .hint = gettext_noop ( "The exchange's self-reported base URL does not match the one that the wallet is using."), @@ -3966,12 +4580,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7031 */ .ec = TALER_EC_WALLET_ORDER_ALREADY_PAID, .hint = gettext_noop ("The order has already been paid by another wallet."), .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 7032 */ .ec = TALER_EC_WALLET_EXCHANGE_UNAVAILABLE, .hint = gettext_noop ( "An exchange that is required for some request is currently not available."), @@ -3979,6 +4595,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7033 */ .ec = TALER_EC_WALLET_EXCHANGE_ENTRY_USED, .hint = gettext_noop ( "An exchange entry is still used by the exchange, thus it can't be deleted without purging."), @@ -3986,6 +4603,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7034 */ .ec = TALER_EC_WALLET_DB_UNAVAILABLE, .hint = gettext_noop ( "The wallet database is unavailable and the wallet thus is not operational."), @@ -3993,12 +4611,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7035 */ .ec = TALER_EC_WALLET_TALER_URI_MALFORMED, .hint = gettext_noop ("A taler:// URI is malformed and can't be parsed."), .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 7036 */ .ec = TALER_EC_WALLET_CORE_REQUEST_CANCELLED, .hint = gettext_noop ( "A wallet-core request was cancelled and thus can't provide a response."), @@ -4006,6 +4626,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7037 */ .ec = TALER_EC_WALLET_EXCHANGE_TOS_NOT_ACCEPTED, .hint = gettext_noop ( "A wallet-core request failed because the user needs to first accept the exchange's terms of service."), @@ -4013,6 +4634,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7038 */ .ec = TALER_EC_WALLET_EXCHANGE_ENTRY_UPDATE_CONFLICT, .hint = gettext_noop ( "An exchange entry could not be updated, as the exchange's new details conflict with the new details."), @@ -4020,6 +4642,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7039 */ .ec = TALER_EC_WALLET_EXCHANGE_ENTRY_OUTDATED, .hint = gettext_noop ( "The wallet's information about the exchange is outdated."), @@ -4027,6 +4650,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7040 */ .ec = TALER_EC_WALLET_PAY_MERCHANT_KYC_MISSING, .hint = gettext_noop ( "The merchant needs to do KYC first, the payment could not be completed.") @@ -4035,6 +4659,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7041 */ .ec = TALER_EC_WALLET_PEER_PULL_DEBIT_PURSE_GONE, .hint = gettext_noop ( "A peer-pull-debit transaction was aborted because the exchange reported the purse as gone."), @@ -4042,6 +4667,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7042 */ .ec = TALER_EC_WALLET_TRANSACTION_ABORTED_BY_USER, .hint = gettext_noop ( "A transaction was aborted on explicit request by the user."), @@ -4049,6 +4675,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7043 */ .ec = TALER_EC_WALLET_TRANSACTION_ABANDONED_BY_USER, .hint = gettext_noop ( "A transaction was abandoned on explicit request by the user."), @@ -4056,6 +4683,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7044 */ .ec = TALER_EC_WALLET_PAY_MERCHANT_ORDER_GONE, .hint = gettext_noop ( "A payment was attempted, but the merchant claims the order is gone (likely expired)."), @@ -4063,6 +4691,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7045 */ .ec = TALER_EC_WALLET_EXCHANGE_ENTRY_NOT_FOUND, .hint = gettext_noop ( "The wallet does not have an entry for the requested exchange."), @@ -4070,6 +4699,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7046 */ .ec = TALER_EC_WALLET_REQUEST_TRANSACTION_STATE_UNSUPPORTED, .hint = gettext_noop ( "The wallet is not able to process the request due to the transaction's state."), @@ -4077,6 +4707,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7047 */ .ec = TALER_EC_WALLET_TRANSACTION_PROTOCOL_VIOLATION, .hint = gettext_noop ( "A transaction could not be processed due to an unrecoverable protocol violation."), @@ -4084,6 +4715,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 7048 */ .ec = TALER_EC_WALLET_CORE_API_BAD_REQUEST, .hint = gettext_noop ("A parameter in the request is malformed or missing.") , @@ -4091,54 +4723,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { - .ec = TALER_EC_GENERIC_ALLOCATION_FAILURE, - .hint = gettext_noop ( - "The HTTP server failed to allocate memory. 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 - }, - - { - .ec = TALER_EC_GENERIC_JSON_ALLOCATION_FAILURE, - .hint = gettext_noop ( - "The HTTP server failed to allocate memory for building JSON reply. 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 - }, - - { - .ec = TALER_EC_GENERIC_CURL_ALLOCATION_FAILURE, - .hint = gettext_noop ( - "The HTTP server failed to allocate memory for making a CURL request. 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 - }, - - { - .ec = TALER_EC_GENERIC_FAILED_TO_LOAD_TEMPLATE, - .hint = gettext_noop ( - "The backend could not locate a required template to generate an HTML reply. The system administrator should check if the resource files are installed in the correct location and are readable to the service."), - .http_code = MHD_HTTP_NOT_ACCEPTABLE - }, - - { - .ec = TALER_EC_GENERIC_FAILED_TO_EXPAND_TEMPLATE, - .hint = gettext_noop ( - "The backend could not expand the template to generate an HTML reply. The system administrator should investigate the logs and check if the templates are well-formed."), - .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR - }, - - { - .ec = TALER_EC_GENERIC_FEATURE_NOT_IMPLEMENTED, - .hint = gettext_noop ( - "The requested feature is not implemented by the server. The system administrator of the server may try to update the software or build it with other options to enable the feature."), - .http_code = MHD_HTTP_NOT_IMPLEMENTED - }, - - { + /* 8000 */ .ec = TALER_EC_ANASTASIS_GENERIC_BACKEND_TIMEOUT, .hint = gettext_noop ("We encountered a timeout with our payment backend."), .http_code = MHD_HTTP_GATEWAY_TIMEOUT }, { + /* 8001 */ .ec = TALER_EC_ANASTASIS_GENERIC_INVALID_PAYMENT_REQUEST, .hint = gettext_noop ( "The backend requested payment, but the request is malformed."), @@ -4146,6 +4738,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8002 */ .ec = TALER_EC_ANASTASIS_GENERIC_BACKEND_ERROR, .hint = gettext_noop ( "The backend got an unexpected reply from the payment processor."), @@ -4153,6 +4746,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8003 */ .ec = TALER_EC_ANASTASIS_GENERIC_MISSING_CONTENT_LENGTH, .hint = gettext_noop ( "The \"Content-length\" field for the upload is missing."), @@ -4160,6 +4754,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8004 */ .ec = TALER_EC_ANASTASIS_GENERIC_MALFORMED_CONTENT_LENGTH, .hint = gettext_noop ( "The \"Content-length\" field for the upload is malformed."), @@ -4167,6 +4762,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8005 */ .ec = TALER_EC_ANASTASIS_GENERIC_ORDER_CREATE_BACKEND_ERROR, .hint = gettext_noop ( "The backend failed to setup an order with the payment processor."), @@ -4174,6 +4770,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8006 */ .ec = TALER_EC_ANASTASIS_GENERIC_PAYMENT_CHECK_UNAUTHORIZED, .hint = gettext_noop ( "The backend was not authorized to check for payment with the payment processor."), @@ -4181,6 +4778,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8007 */ .ec = TALER_EC_ANASTASIS_GENERIC_PAYMENT_CHECK_START_FAILED, .hint = gettext_noop ( "The backend could not check payment status with the payment processor."), @@ -4188,12 +4786,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8008 */ .ec = TALER_EC_ANASTASIS_GENERIC_PROVIDER_UNREACHABLE, .hint = gettext_noop ("The Anastasis provider could not be reached."), .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 8009 */ .ec = TALER_EC_ANASTASIS_PAYMENT_GENERIC_TIMEOUT, .hint = gettext_noop ( "HTTP server experienced a timeout while awaiting promised payment."), @@ -4201,12 +4801,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8108 */ .ec = TALER_EC_ANASTASIS_TRUTH_UNKNOWN, .hint = gettext_noop ("The key share is unknown to the provider."), .http_code = MHD_HTTP_NOT_FOUND }, { + /* 8109 */ .ec = TALER_EC_ANASTASIS_TRUTH_AUTHORIZATION_METHOD_NO_LONGER_SUPPORTED, .hint = gettext_noop ( "The authorization method used for the key share is no longer supported by the provider."), @@ -4214,12 +4816,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8110 */ .ec = TALER_EC_ANASTASIS_TRUTH_CHALLENGE_RESPONSE_REQUIRED, .hint = gettext_noop ("The client needs to respond to the challenge."), .http_code = MHD_HTTP_FORBIDDEN }, { + /* 8111 */ .ec = TALER_EC_ANASTASIS_TRUTH_CHALLENGE_FAILED, .hint = gettext_noop ("The client's response to the challenge was invalid.") , @@ -4227,6 +4831,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8112 */ .ec = TALER_EC_ANASTASIS_TRUTH_CHALLENGE_UNKNOWN, .hint = gettext_noop ( "The backend is not aware of having issued the provided challenge code. Either this is the wrong code, or it has expired."), @@ -4234,6 +4839,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8114 */ .ec = TALER_EC_ANASTASIS_TRUTH_AUTHORIZATION_START_FAILED, .hint = gettext_noop ( "The backend failed to initiate the authorization process."), @@ -4241,6 +4847,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8115 */ .ec = TALER_EC_ANASTASIS_TRUTH_KEY_SHARE_GONE, .hint = gettext_noop ( "The authorization succeeded, but the key share is no longer available."), @@ -4248,6 +4855,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8116 */ .ec = TALER_EC_ANASTASIS_TRUTH_ORDER_DISAPPEARED, .hint = gettext_noop ( "The backend forgot the order we asked the client to pay for"), @@ -4255,6 +4863,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8117 */ .ec = TALER_EC_ANASTASIS_TRUTH_BACKEND_EXCHANGE_BAD, .hint = gettext_noop ( "The backend itself reported a bad exchange interaction."), @@ -4262,6 +4871,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8118 */ .ec = TALER_EC_ANASTASIS_TRUTH_UNEXPECTED_PAYMENT_STATUS, .hint = gettext_noop ( "The backend reported a payment status we did not expect."), @@ -4269,12 +4879,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8119 */ .ec = TALER_EC_ANASTASIS_TRUTH_PAYMENT_CREATE_BACKEND_ERROR, .hint = gettext_noop ("The backend failed to setup the order for payment."), .http_code = MHD_HTTP_BAD_GATEWAY }, { + /* 8120 */ .ec = TALER_EC_ANASTASIS_TRUTH_DECRYPTION_FAILED, .hint = gettext_noop ( "The decryption of the key share failed with the provided key."), @@ -4282,6 +4894,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8121 */ .ec = TALER_EC_ANASTASIS_TRUTH_RATE_LIMITED, .hint = gettext_noop ( "The request rate is too high. The server is refusing requests to guard against brute-force attacks."), @@ -4289,6 +4902,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8123 */ .ec = TALER_EC_ANASTASIS_TRUTH_CHALLENGE_WRONG_METHOD, .hint = gettext_noop ( "A request to issue a challenge is not valid for this authentication method."), @@ -4296,6 +4910,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8150 */ .ec = TALER_EC_ANASTASIS_TRUTH_UPLOAD_UUID_EXISTS, .hint = gettext_noop ( "The backend failed to store the key share because the UUID is already in use."), @@ -4303,6 +4918,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8151 */ .ec = TALER_EC_ANASTASIS_TRUTH_UPLOAD_METHOD_NOT_SUPPORTED, .hint = gettext_noop ( "The backend failed to store the key share because the authorization method is not supported."), @@ -4310,6 +4926,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8200 */ .ec = TALER_EC_ANASTASIS_SMS_PHONE_INVALID, .hint = gettext_noop ( "The provided phone number is not an acceptable number."), @@ -4317,12 +4934,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8201 */ .ec = TALER_EC_ANASTASIS_SMS_HELPER_EXEC_FAILED, .hint = gettext_noop ("Failed to run the SMS transmission helper process."), .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR }, { + /* 8202 */ .ec = TALER_EC_ANASTASIS_SMS_HELPER_COMMAND_FAILED, .hint = gettext_noop ( "Provider failed to send SMS. Helper terminated with a non-successful result."), @@ -4330,6 +4949,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8210 */ .ec = TALER_EC_ANASTASIS_EMAIL_INVALID, .hint = gettext_noop ( "The provided email address is not an acceptable address."), @@ -4337,6 +4957,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8211 */ .ec = TALER_EC_ANASTASIS_EMAIL_HELPER_EXEC_FAILED, .hint = gettext_noop ( "Failed to run the E-mail transmission helper process."), @@ -4344,6 +4965,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8212 */ .ec = TALER_EC_ANASTASIS_EMAIL_HELPER_COMMAND_FAILED, .hint = gettext_noop ( "Provider failed to send E-mail. Helper terminated with a non-successful result."), @@ -4351,6 +4973,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8220 */ .ec = TALER_EC_ANASTASIS_POST_INVALID, .hint = gettext_noop ( "The provided postal address is not an acceptable address."), @@ -4358,6 +4981,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8221 */ .ec = TALER_EC_ANASTASIS_POST_HELPER_EXEC_FAILED, .hint = gettext_noop ("Failed to run the mail transmission helper process.") , @@ -4365,6 +4989,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8222 */ .ec = TALER_EC_ANASTASIS_POST_HELPER_COMMAND_FAILED, .hint = gettext_noop ( "Provider failed to send mail. Helper terminated with a non-successful result."), @@ -4372,6 +4997,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8230 */ .ec = TALER_EC_ANASTASIS_IBAN_INVALID, .hint = gettext_noop ( "The provided IBAN address is not an acceptable IBAN."), @@ -4379,6 +5005,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8231 */ .ec = TALER_EC_ANASTASIS_IBAN_MISSING_TRANSFER, .hint = gettext_noop ( "The provider has not yet received the IBAN wire transfer authorizing the disclosure of the key share."), @@ -4386,6 +5013,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8240 */ .ec = TALER_EC_ANASTASIS_TOTP_KEY_MISSING, .hint = gettext_noop ( "The backend did not find a TOTP key in the data provided."), @@ -4393,6 +5021,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8241 */ .ec = TALER_EC_ANASTASIS_TOTP_KEY_INVALID, .hint = gettext_noop ( "The key provided does not satisfy the format restrictions for an Anastasis TOTP key."), @@ -4400,12 +5029,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8301 */ .ec = TALER_EC_ANASTASIS_POLICY_BAD_IF_NONE_MATCH, .hint = gettext_noop ("The given if-none-match header is malformed."), .http_code = MHD_HTTP_BAD_REQUEST }, { + /* 8304 */ .ec = TALER_EC_ANASTASIS_POLICY_OUT_OF_MEMORY_ON_CONTENT_LENGTH, .hint = gettext_noop ( "The server is out of memory to handle the upload. Trying again later may succeed."), @@ -4413,6 +5044,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8305 */ .ec = TALER_EC_ANASTASIS_POLICY_BAD_SIGNATURE, .hint = gettext_noop ( "The signature provided in the \"Anastasis-Policy-Signature\" header is malformed or missing."), @@ -4420,24 +5052,28 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8306 */ .ec = TALER_EC_ANASTASIS_POLICY_BAD_IF_MATCH, .hint = gettext_noop ("The given if-match header is malformed."), .http_code = MHD_HTTP_BAD_REQUEST }, { + /* 8307 */ .ec = TALER_EC_ANASTASIS_POLICY_INVALID_UPLOAD, .hint = gettext_noop ("The uploaded data does not match the Etag."), .http_code = MHD_HTTP_BAD_REQUEST }, { + /* 8350 */ .ec = TALER_EC_ANASTASIS_POLICY_NOT_FOUND, .hint = gettext_noop ("The provider is unaware of the requested policy."), .http_code = MHD_HTTP_NOT_FOUND }, { + /* 8400 */ .ec = TALER_EC_ANASTASIS_REDUCER_ACTION_INVALID, .hint = gettext_noop ( "The given action is invalid for the current state of the reducer."), @@ -4445,18 +5081,21 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8401 */ .ec = TALER_EC_ANASTASIS_REDUCER_STATE_INVALID, .hint = gettext_noop ("The given state of the reducer is invalid."), .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 8402 */ .ec = TALER_EC_ANASTASIS_REDUCER_INPUT_INVALID, .hint = gettext_noop ("The given input to the reducer is invalid."), .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 8403 */ .ec = TALER_EC_ANASTASIS_REDUCER_AUTHENTICATION_METHOD_NOT_SUPPORTED, .hint = gettext_noop ( "The selected authentication method does not work for the Anastasis provider."), @@ -4464,6 +5103,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8404 */ .ec = TALER_EC_ANASTASIS_REDUCER_INPUT_INVALID_FOR_STATE, .hint = gettext_noop ( "The given input and action do not work for the current state."), @@ -4471,6 +5111,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8405 */ .ec = TALER_EC_ANASTASIS_REDUCER_BACKEND_FAILURE, .hint = gettext_noop ( "We experienced an unexpected failure interacting with the backend."), @@ -4478,6 +5119,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8406 */ .ec = TALER_EC_ANASTASIS_REDUCER_RESOURCE_MALFORMED, .hint = gettext_noop ( "The contents of a resource file did not match our expectations."), @@ -4485,18 +5127,21 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8407 */ .ec = TALER_EC_ANASTASIS_REDUCER_RESOURCE_MISSING, .hint = gettext_noop ("A required resource file is missing."), .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 8408 */ .ec = TALER_EC_ANASTASIS_REDUCER_INPUT_REGEX_FAILED, .hint = gettext_noop ("An input did not match the regular expression."), .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 8409 */ .ec = TALER_EC_ANASTASIS_REDUCER_INPUT_VALIDATION_FAILED, .hint = gettext_noop ("An input did not match the custom validation logic.") , @@ -4504,6 +5149,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8410 */ .ec = TALER_EC_ANASTASIS_REDUCER_POLICY_LOOKUP_FAILED, .hint = gettext_noop ( "Our attempts to download the recovery document failed with all providers. Most likely the personal information you entered differs from the information you provided during the backup process and you should go back to the previous step. Alternatively, if you used a backup provider that is unknown to this application, you should add that provider manually."), @@ -4511,12 +5157,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8411 */ .ec = TALER_EC_ANASTASIS_REDUCER_BACKUP_PROVIDER_FAILED, .hint = gettext_noop ("Anastasis provider reported a fatal failure."), .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 8412 */ .ec = TALER_EC_ANASTASIS_REDUCER_PROVIDER_CONFIG_FAILED, .hint = gettext_noop ( "Anastasis provider failed to respond to the configuration request."), @@ -4524,6 +5172,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8413 */ .ec = TALER_EC_ANASTASIS_REDUCER_POLICY_MALFORMED, .hint = gettext_noop ( "The policy we downloaded is malformed. Must have been a client error while creating the backup."), @@ -4531,6 +5180,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8414 */ .ec = TALER_EC_ANASTASIS_REDUCER_NETWORK_FAILED, .hint = gettext_noop ( "We failed to obtain the policy, likely due to a network issue."), @@ -4538,6 +5188,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8415 */ .ec = TALER_EC_ANASTASIS_REDUCER_SECRET_MALFORMED, .hint = gettext_noop ( "The recovered secret did not match the required syntax."), @@ -4545,6 +5196,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8416 */ .ec = TALER_EC_ANASTASIS_REDUCER_CHALLENGE_DATA_TOO_BIG, .hint = gettext_noop ( "The challenge data provided is too large for the available providers."), @@ -4552,6 +5204,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8417 */ .ec = TALER_EC_ANASTASIS_REDUCER_SECRET_TOO_BIG, .hint = gettext_noop ( "The provided core secret is too large for some of the providers."), @@ -4559,12 +5212,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8418 */ .ec = TALER_EC_ANASTASIS_REDUCER_PROVIDER_INVALID_CONFIG, .hint = gettext_noop ("The provider returned in invalid configuration."), .http_code = MHD_HTTP_UNINITIALIZED }, { + /* 8419 */ .ec = TALER_EC_ANASTASIS_REDUCER_INTERNAL_ERROR, .hint = gettext_noop ( "The reducer encountered an internal error, likely a bug that needs to be reported."), @@ -4572,6 +5227,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8420 */ .ec = TALER_EC_ANASTASIS_REDUCER_PROVIDERS_ALREADY_SYNCED, .hint = gettext_noop ( "The reducer already synchronized with all providers."), @@ -4579,6 +5235,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8607 */ .ec = TALER_EC_DONAU_GENERIC_KEYS_MISSING, .hint = gettext_noop ( "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."), @@ -4586,18 +5243,21 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8608 */ .ec = TALER_EC_DONAU_CHARITY_SIGNATURE_INVALID, .hint = gettext_noop ("The signature of the charity key is not valid."), .http_code = MHD_HTTP_FORBIDDEN }, { + /* 8609 */ .ec = TALER_EC_DONAU_CHARITY_NOT_FOUND, .hint = gettext_noop ("The charity is unknown."), .http_code = MHD_HTTP_NOT_FOUND }, { + /* 8610 */ .ec = TALER_EC_DONAU_EXCEEDING_DONATION_LIMIT, .hint = gettext_noop ( "The donation amount specified in the request exceeds the limit of the charity."), @@ -4605,6 +5265,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8611 */ .ec = TALER_EC_DONAU_GENERIC_DONATION_UNIT_UNKNOWN, .hint = gettext_noop ( "The Donau is not aware of the donation unit requested for the operation."), @@ -4612,6 +5273,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8612 */ .ec = TALER_EC_DONAU_DONATION_UNIT_HELPER_UNAVAILABLE, .hint = gettext_noop ( "The Donau failed to talk to the process responsible for its private donation unit keys or the helpers had no donation units (properly) configured."), @@ -4619,6 +5281,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8613 */ .ec = TALER_EC_DONAU_SIGNKEY_HELPER_UNAVAILABLE, .hint = gettext_noop ( "The Donau failed to talk to the process responsible for its private signing keys."), @@ -4626,6 +5289,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8614 */ .ec = TALER_EC_DONAU_SIGNKEY_HELPER_BUG, .hint = gettext_noop ( "The response from the online signing key helper process was malformed."), @@ -4633,6 +5297,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8615 */ .ec = TALER_EC_DONAU_GENERIC_WRONG_NUMBER_OF_SEGMENTS, .hint = gettext_noop ( "The number of segments included in the URI does not match the number of segments expected by the endpoint."), @@ -4640,6 +5305,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8616 */ .ec = TALER_EC_DONAU_DONATION_RECEIPT_SIGNATURE_INVALID, .hint = gettext_noop ("The signature of the donation receipt is not valid.") , @@ -4647,6 +5313,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8617 */ .ec = TALER_EC_DONAU_DONOR_IDENTIFIER_NONCE_REUSE, .hint = gettext_noop ( "The client reused a unique donor identifier nonce, which is not allowed."), @@ -4654,6 +5321,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 8618 */ .ec = TALER_EC_DONAU_CHARITY_PUB_EXISTS, .hint = gettext_noop ( "A charity with the same public key is already registered."), @@ -4661,6 +5329,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 9000 */ .ec = TALER_EC_LIBEUFIN_NEXUS_GENERIC_ERROR, .hint = gettext_noop ( "A generic error happened in the LibEuFin nexus. See the enclose details JSON for more information."), @@ -4668,6 +5337,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 9001 */ .ec = TALER_EC_LIBEUFIN_NEXUS_UNCAUGHT_EXCEPTION, .hint = gettext_noop ( "An uncaught exception happened in the LibEuFin nexus service."), @@ -4675,6 +5345,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 9500 */ .ec = TALER_EC_LIBEUFIN_SANDBOX_GENERIC_ERROR, .hint = gettext_noop ( "A generic error happened in the LibEuFin sandbox. See the enclose details JSON for more information."), @@ -4682,6 +5353,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 9501 */ .ec = TALER_EC_LIBEUFIN_SANDBOX_UNCAUGHT_EXCEPTION, .hint = gettext_noop ( "An uncaught exception happened in the LibEuFin sandbox service."), @@ -4689,6 +5361,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 9600 */ .ec = TALER_EC_TALDIR_METHOD_NOT_SUPPORTED, .hint = gettext_noop ( "This validation method is not supported by the service."), @@ -4696,6 +5369,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 9601 */ .ec = TALER_EC_TALDIR_REGISTER_RATE_LIMITED, .hint = gettext_noop ( "Number of allowed attempts for initiating a challenge exceeded."), @@ -4703,12 +5377,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 9750 */ .ec = TALER_EC_CHALLENGER_GENERIC_CLIENT_UNKNOWN, .hint = gettext_noop ("The client is unknown or unauthorized."), .http_code = MHD_HTTP_NOT_FOUND }, { + /* 9751 */ .ec = TALER_EC_CHALLENGER_GENERIC_CLIENT_FORBIDDEN_BAD_REDIRECT_URI, .hint = gettext_noop ( "The client is not authorized to use the given redirect URI."), @@ -4716,6 +5392,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 9752 */ .ec = TALER_EC_CHALLENGER_HELPER_EXEC_FAILED, .hint = gettext_noop ( "The service failed to execute its helper process to send the challenge.") @@ -4724,6 +5401,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 9753 */ .ec = TALER_EC_CHALLENGER_GRANT_UNKNOWN, .hint = gettext_noop ( "The grant is unknown to the service (it could also have expired)."), @@ -4731,12 +5409,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 9754 */ .ec = TALER_EC_CHALLENGER_CLIENT_FORBIDDEN_BAD_CODE, .hint = gettext_noop ("The code given is not even well-formed."), .http_code = MHD_HTTP_FORBIDDEN }, { + /* 9755 */ .ec = TALER_EC_CHALLENGER_GENERIC_VALIDATION_UNKNOWN, .hint = gettext_noop ( "The service is not aware of the referenced validation process."), @@ -4744,12 +5424,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 9756 */ .ec = TALER_EC_CHALLENGER_CLIENT_FORBIDDEN_INVALID_CODE, .hint = gettext_noop ("The code given is not valid."), .http_code = MHD_HTTP_FORBIDDEN }, { + /* 9757 */ .ec = TALER_EC_CHALLENGER_TOO_MANY_ATTEMPTS, .hint = gettext_noop ( "Too many attempts have been made, validation is temporarily disabled for this address."), @@ -4757,12 +5439,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 9758 */ .ec = TALER_EC_CHALLENGER_INVALID_PIN, .hint = gettext_noop ("The PIN code provided is incorrect."), .http_code = MHD_HTTP_FORBIDDEN }, { + /* 9759 */ .ec = TALER_EC_CHALLENGER_MISSING_ADDRESS, .hint = gettext_noop ( "The token cannot be valid as no address was ever provided by the client."), @@ -4770,6 +5454,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 9760 */ .ec = TALER_EC_CHALLENGER_CLIENT_FORBIDDEN_READ_ONLY, .hint = gettext_noop ( "The client is not allowed to change the address being validated."), @@ -4777,6 +5462,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 9999 */ .ec = TALER_EC_END, .hint = gettext_noop ("End of error code range."), .http_code = MHD_HTTP_UNINITIALIZED @@ -4855,3 +5541,15 @@ TALER_ErrorCode_get_http_status_safe (enum TALER_ErrorCode ec) return MHD_HTTP_INTERNAL_SERVER_ERROR; return hc; } + + +void __attribute__ ((constructor)) +TALER_ErrorCode_check_invariants (void); + +void __attribute__ ((constructor)) +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