taler-rust

GNU Taler code in Rust. Largely core banking integrations.
Log | Files | Refs | Submodules | README | LICENSE

error_code.rs (254629B)


      1 /*
      2   This file is part of GNU Taler
      3   Copyright (C) 2024-2026 Taler Systems SA
      4 
      5   GNU Taler is free software: you can redistribute it and/or modify it
      6   under the terms of the GNU Lesser General Public License as published
      7   by the Free Software Foundation, either version 3 of the License,
      8   or (at your option) any later version.
      9 
     10   GNU Taler is distributed in the hope that it will be useful, but
     11   WITHOUT ANY WARRANTY; without even the implied warranty of
     12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     13   Lesser General Public License for more details.
     14 
     15   You should have received a copy of the GNU Lesser General Public License
     16   along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 
     18   SPDX-License-Identifier: LGPL3.0-or-later
     19 
     20   Note: the LGPL does not apply to all components of GNU Taler,
     21   but it does apply to this file.
     22 */
     23 
     24 /// Error codes used by GNU Taler
     25 #[derive(Debug, Copy, Clone, PartialEq, Eq)]
     26 #[allow(non_camel_case_types, dead_code)]
     27 #[repr(u16)]
     28 pub enum ErrorCode {
     29     /// Special code to indicate success (no error).
     30     NONE = 0,
     31     /// 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.
     32     INVALID = 1,
     33     /// 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.
     34     GENERIC_CLIENT_INTERNAL_ERROR = 2,
     35     /// The client does not support the protocol version advertised by the server.
     36     GENERIC_CLIENT_UNSUPPORTED_PROTOCOL_VERSION = 3,
     37     /// 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.
     38     GENERIC_INVALID_RESPONSE = 10,
     39     /// The operation timed out. Trying again might help. Check the network connection.
     40     GENERIC_TIMEOUT = 11,
     41     /// 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.
     42     GENERIC_VERSION_MALFORMED = 12,
     43     /// 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.
     44     GENERIC_REPLY_MALFORMED = 13,
     45     /// 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.
     46     GENERIC_CONFIGURATION_INVALID = 14,
     47     /// 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.
     48     GENERIC_UNEXPECTED_REQUEST_ERROR = 15,
     49     /// 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.
     50     GENERIC_TOKEN_PERMISSION_INSUFFICIENT = 16,
     51     /// 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.
     52     GENERIC_METHOD_INVALID = 20,
     53     /// 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.
     54     GENERIC_ENDPOINT_UNKNOWN = 21,
     55     /// 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.
     56     GENERIC_JSON_INVALID = 22,
     57     /// 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.
     58     GENERIC_HTTP_HEADERS_MALFORMED = 23,
     59     /// 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.
     60     GENERIC_PAYTO_URI_MALFORMED = 24,
     61     /// 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.
     62     GENERIC_PARAMETER_MISSING = 25,
     63     /// 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.
     64     GENERIC_PARAMETER_MALFORMED = 26,
     65     /// The reserve public key was malformed.
     66     GENERIC_RESERVE_PUB_MALFORMED = 27,
     67     /// 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.
     68     GENERIC_COMPRESSION_INVALID = 28,
     69     /// 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.
     70     GENERIC_PATH_SEGMENT_MALFORMED = 29,
     71     /// 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.
     72     GENERIC_CURRENCY_MISMATCH = 30,
     73     /// 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.
     74     GENERIC_URI_TOO_LONG = 31,
     75     /// 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.
     76     GENERIC_UPLOAD_EXCEEDS_LIMIT = 32,
     77     /// A parameter in the request was given that must not be present. 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.
     78     GENERIC_PARAMETER_EXTRA = 33,
     79     /// The service refused the request due to lack of proper authorization. Accessing this endpoint requires an access token from the account owner.
     80     GENERIC_UNAUTHORIZED = 40,
     81     /// The service refused the request as the given authorization token is unknown. You should request a valid access token from the account owner.
     82     GENERIC_TOKEN_UNKNOWN = 41,
     83     /// The service refused the request as the given authorization token expired. You should request a fresh authorization token from the account owner.
     84     GENERIC_TOKEN_EXPIRED = 42,
     85     /// The service refused the request as the given authorization token is invalid or malformed. You should check that you have the right credentials.
     86     GENERIC_TOKEN_MALFORMED = 43,
     87     /// 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.
     88     GENERIC_FORBIDDEN = 44,
     89     /// 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.
     90     GENERIC_DB_SETUP_FAILED = 50,
     91     /// The service encountered an error event to just start the database transaction. The system administrator should check that the database is running.
     92     GENERIC_DB_START_FAILED = 51,
     93     /// The service failed to store information in its database. The system administrator should check that the database is running and review the service logs.
     94     GENERIC_DB_STORE_FAILED = 52,
     95     /// The service failed to fetch information from its database. The system administrator should check that the database is running and review the service logs.
     96     GENERIC_DB_FETCH_FAILED = 53,
     97     /// 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.
     98     GENERIC_DB_COMMIT_FAILED = 54,
     99     /// 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.
    100     GENERIC_DB_SOFT_FAILURE = 55,
    101     /// 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.
    102     GENERIC_DB_INVARIANT_FAILURE = 56,
    103     /// 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.
    104     GENERIC_INTERNAL_INVARIANT_FAILURE = 60,
    105     /// 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.
    106     GENERIC_FAILED_COMPUTE_JSON_HASH = 61,
    107     /// The service could not compute an amount. Check if you are using the latest available version and/or file a report with the developers.
    108     GENERIC_FAILED_COMPUTE_AMOUNT = 62,
    109     /// 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.
    110     GENERIC_PARSER_OUT_OF_MEMORY = 70,
    111     /// 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.
    112     GENERIC_ALLOCATION_FAILURE = 71,
    113     /// 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.
    114     GENERIC_JSON_ALLOCATION_FAILURE = 72,
    115     /// 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.
    116     GENERIC_CURL_ALLOCATION_FAILURE = 73,
    117     /// 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.
    118     GENERIC_FAILED_TO_LOAD_TEMPLATE = 74,
    119     /// 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.
    120     GENERIC_FAILED_TO_EXPAND_TEMPLATE = 75,
    121     /// 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.
    122     GENERIC_FEATURE_NOT_IMPLEMENTED = 76,
    123     /// The operating system failed to allocate required resources. Restarting services periodically can help, especially if Postgres is using excessive amounts of memory. Check with the system administrator to investigate.
    124     GENERIC_OS_RESOURCE_ALLOCATION_FAILURE = 77,
    125     /// Exchange is badly configured and thus cannot operate.
    126     EXCHANGE_GENERIC_BAD_CONFIGURATION = 1000,
    127     /// Operation specified unknown for this endpoint.
    128     EXCHANGE_GENERIC_OPERATION_UNKNOWN = 1001,
    129     /// The number of segments included in the URI does not match the number of segments expected by the endpoint.
    130     EXCHANGE_GENERIC_WRONG_NUMBER_OF_SEGMENTS = 1002,
    131     /// The same coin was already used with a different denomination previously.
    132     EXCHANGE_GENERIC_COIN_CONFLICTING_DENOMINATION_KEY = 1003,
    133     /// The public key of given to a "/coins/" endpoint of the exchange was malformed.
    134     EXCHANGE_GENERIC_COINS_INVALID_COIN_PUB = 1004,
    135     /// The exchange is not aware of the denomination key the wallet requested for the operation.
    136     EXCHANGE_GENERIC_DENOMINATION_KEY_UNKNOWN = 1005,
    137     /// The signature of the denomination key over the coin is not valid.
    138     EXCHANGE_DENOMINATION_SIGNATURE_INVALID = 1006,
    139     /// 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.
    140     EXCHANGE_GENERIC_KEYS_MISSING = 1007,
    141     /// Validity period of the denomination lies in the future.
    142     EXCHANGE_GENERIC_DENOMINATION_VALIDITY_IN_FUTURE = 1008,
    143     /// Denomination key of the coin is past its expiration time for the requested operation.
    144     EXCHANGE_GENERIC_DENOMINATION_EXPIRED = 1009,
    145     /// Denomination key of the coin has been revoked.
    146     EXCHANGE_GENERIC_DENOMINATION_REVOKED = 1010,
    147     /// An operation where the exchange interacted with a security module timed out.
    148     EXCHANGE_GENERIC_SECMOD_TIMEOUT = 1011,
    149     /// 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".
    150     EXCHANGE_GENERIC_INSUFFICIENT_FUNDS = 1012,
    151     /// The exchange had an internal error reconstructing the transaction history of the coin that was being processed.
    152     EXCHANGE_GENERIC_COIN_HISTORY_COMPUTATION_FAILED = 1013,
    153     /// The exchange failed to obtain the transaction history of the given coin from the database while generating an insufficient funds errors.
    154     EXCHANGE_GENERIC_HISTORY_DB_ERROR_INSUFFICIENT_FUNDS = 1014,
    155     /// The same coin was already used with a different age hash previously.
    156     EXCHANGE_GENERIC_COIN_CONFLICTING_AGE_HASH = 1015,
    157     /// The requested operation is not valid for the cipher used by the selected denomination.
    158     EXCHANGE_GENERIC_INVALID_DENOMINATION_CIPHER_FOR_OPERATION = 1016,
    159     /// The provided arguments for the operation use inconsistent ciphers.
    160     EXCHANGE_GENERIC_CIPHER_MISMATCH = 1017,
    161     /// The number of denominations specified in the request exceeds the limit of the exchange.
    162     EXCHANGE_GENERIC_NEW_DENOMS_ARRAY_SIZE_EXCESSIVE = 1018,
    163     /// The coin is not known to the exchange (yet).
    164     EXCHANGE_GENERIC_COIN_UNKNOWN = 1019,
    165     /// The time at the server is too far off from the time specified in the request. Most likely the client system time is wrong.
    166     EXCHANGE_GENERIC_CLOCK_SKEW = 1020,
    167     /// The specified amount for the coin is higher than the value of the denomination of the coin.
    168     EXCHANGE_GENERIC_AMOUNT_EXCEEDS_DENOMINATION_VALUE = 1021,
    169     /// The exchange was not properly configured with global fees.
    170     EXCHANGE_GENERIC_GLOBAL_FEES_MISSING = 1022,
    171     /// The exchange was not properly configured with wire fees.
    172     EXCHANGE_GENERIC_WIRE_FEES_MISSING = 1023,
    173     /// The purse public key was malformed.
    174     EXCHANGE_GENERIC_PURSE_PUB_MALFORMED = 1024,
    175     /// The purse is unknown.
    176     EXCHANGE_GENERIC_PURSE_UNKNOWN = 1025,
    177     /// The purse has expired.
    178     EXCHANGE_GENERIC_PURSE_EXPIRED = 1026,
    179     /// The exchange has no information about the "reserve_pub" that was given.
    180     EXCHANGE_GENERIC_RESERVE_UNKNOWN = 1027,
    181     /// The exchange is not allowed to proceed with the operation until the client has satisfied a KYC check.
    182     EXCHANGE_GENERIC_KYC_REQUIRED = 1028,
    183     /// Inconsistency between provided age commitment and attest: either none or both must be provided
    184     EXCHANGE_PURSE_DEPOSIT_COIN_CONFLICTING_ATTEST_VS_AGE_COMMITMENT = 1029,
    185     /// The provided attestation for the minimum age couldn't be verified by the exchange.
    186     EXCHANGE_PURSE_DEPOSIT_COIN_AGE_ATTESTATION_FAILURE = 1030,
    187     /// The purse was deleted.
    188     EXCHANGE_GENERIC_PURSE_DELETED = 1031,
    189     /// The public key of the AML officer in the URL was malformed.
    190     EXCHANGE_GENERIC_AML_OFFICER_PUB_MALFORMED = 1032,
    191     /// The signature affirming the GET request of the AML officer is invalid.
    192     EXCHANGE_GENERIC_AML_OFFICER_GET_SIGNATURE_INVALID = 1033,
    193     /// The specified AML officer does not have access at this time.
    194     EXCHANGE_GENERIC_AML_OFFICER_ACCESS_DENIED = 1034,
    195     /// 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.
    196     EXCHANGE_GENERIC_AML_PENDING = 1035,
    197     /// The requested operation is denied as the account was frozen on suspicion of money laundering. Please contact the exchange operator.
    198     EXCHANGE_GENERIC_AML_FROZEN = 1036,
    199     /// The exchange failed to start a KYC attribute conversion helper process. It is likely configured incorrectly.
    200     EXCHANGE_GENERIC_KYC_CONVERTER_FAILED = 1037,
    201     /// The KYC operation failed. This could be because the KYC provider rejected the KYC data provided, or because the user aborted the KYC process.
    202     EXCHANGE_GENERIC_KYC_FAILED = 1038,
    203     /// A fallback measure for a KYC operation failed. This is a bug. Users should contact the exchange operator.
    204     EXCHANGE_GENERIC_KYC_FALLBACK_FAILED = 1039,
    205     /// The specified fallback measure for a KYC operation is unknown. This is a bug. Users should contact the exchange operator.
    206     EXCHANGE_GENERIC_KYC_FALLBACK_UNKNOWN = 1040,
    207     /// 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.
    208     EXCHANGE_GENERIC_BANK_ACCOUNT_UNKNOWN = 1041,
    209     /// 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.
    210     EXCHANGE_GENERIC_AML_PROGRAM_RECURSION_DETECTED = 1042,
    211     /// 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.
    212     EXCHANGE_GENERIC_KYC_SANCTION_LIST_CHECK_FAILED = 1043,
    213     /// 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.
    214     EXCHANGE_GENERIC_TYPST_TEMPLATE_FAILURE = 1044,
    215     /// 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.
    216     EXCHANGE_GENERIC_PDFTK_FAILURE = 1045,
    217     /// 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.
    218     EXCHANGE_GENERIC_TYPST_CRASH = 1046,
    219     /// 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.
    220     EXCHANGE_GENERIC_PDFTK_CRASH = 1047,
    221     /// One of the binaries needed to generate the PDF is not installed. If this feature is required, the system administrator should make sure Typst and pdftk are both installed.
    222     EXCHANGE_GENERIC_NO_TYPST_OR_PDFTK = 1048,
    223     /// The exchange is not aware of the given target account. The specified account is not a customer of this service.
    224     EXCHANGE_GENERIC_TARGET_ACCOUNT_UNKNOWN = 1049,
    225     /// The exchange did not find information about the specified transaction in the database.
    226     EXCHANGE_DEPOSITS_GET_NOT_FOUND = 1100,
    227     /// The wire hash of given to a "/deposits/" handler was malformed.
    228     EXCHANGE_DEPOSITS_GET_INVALID_H_WIRE = 1101,
    229     /// The merchant key of given to a "/deposits/" handler was malformed.
    230     EXCHANGE_DEPOSITS_GET_INVALID_MERCHANT_PUB = 1102,
    231     /// The hash of the contract terms given to a "/deposits/" handler was malformed.
    232     EXCHANGE_DEPOSITS_GET_INVALID_H_CONTRACT_TERMS = 1103,
    233     /// The coin public key of given to a "/deposits/" handler was malformed.
    234     EXCHANGE_DEPOSITS_GET_INVALID_COIN_PUB = 1104,
    235     /// The signature returned by the exchange in a /deposits/ request was malformed.
    236     EXCHANGE_DEPOSITS_GET_INVALID_SIGNATURE_BY_EXCHANGE = 1105,
    237     /// The signature of the merchant is invalid.
    238     EXCHANGE_DEPOSITS_GET_MERCHANT_SIGNATURE_INVALID = 1106,
    239     /// The provided policy data was not accepted
    240     EXCHANGE_DEPOSITS_POLICY_NOT_ACCEPTED = 1107,
    241     /// 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.
    242     EXCHANGE_WITHDRAW_INSUFFICIENT_FUNDS = 1150,
    243     /// 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.
    244     EXCHANGE_AGE_WITHDRAW_INSUFFICIENT_FUNDS = 1151,
    245     /// 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.
    246     EXCHANGE_WITHDRAW_AMOUNT_FEE_OVERFLOW = 1152,
    247     /// The exchange failed to create the signature using the denomination key.
    248     EXCHANGE_WITHDRAW_SIGNATURE_FAILED = 1153,
    249     /// The signature of the reserve is not valid.
    250     EXCHANGE_WITHDRAW_RESERVE_SIGNATURE_INVALID = 1154,
    251     /// When computing the reserve history, we ended up with a negative overall balance, which should be impossible.
    252     EXCHANGE_RESERVE_HISTORY_ERROR_INSUFFICIENT_FUNDS = 1155,
    253     /// The reserve did not have sufficient funds in it to pay for a full reserve history statement.
    254     EXCHANGE_GET_RESERVE_HISTORY_ERROR_INSUFFICIENT_BALANCE = 1156,
    255     /// Withdraw period of the coin to be withdrawn is in the past.
    256     EXCHANGE_WITHDRAW_DENOMINATION_KEY_LOST = 1158,
    257     /// The client failed to unblind the blind signature.
    258     EXCHANGE_WITHDRAW_UNBLIND_FAILURE = 1159,
    259     /// The client reused a withdraw nonce, which is not allowed.
    260     EXCHANGE_WITHDRAW_NONCE_REUSE = 1160,
    261     /// The client provided an unknown commitment for an age-withdraw request.
    262     EXCHANGE_WITHDRAW_COMMITMENT_UNKNOWN = 1161,
    263     /// The total sum of amounts from the denominations did overflow.
    264     EXCHANGE_WITHDRAW_AMOUNT_OVERFLOW = 1162,
    265     /// The total sum of value and fees from the denominations differs from the committed amount with fees.
    266     EXCHANGE_AGE_WITHDRAW_AMOUNT_INCORRECT = 1163,
    267     /// The original commitment differs from the calculated hash
    268     EXCHANGE_WITHDRAW_REVEAL_INVALID_HASH = 1164,
    269     /// The maximum age in the commitment is too large for the reserve
    270     EXCHANGE_WITHDRAW_MAXIMUM_AGE_TOO_LARGE = 1165,
    271     /// The withdraw operation included the same planchet more than once. This is not allowed.
    272     EXCHANGE_WITHDRAW_IDEMPOTENT_PLANCHET = 1175,
    273     /// The signature made by the coin over the deposit permission is not valid.
    274     EXCHANGE_DEPOSIT_COIN_SIGNATURE_INVALID = 1205,
    275     /// The same coin was already deposited for the same merchant and contract with other details.
    276     EXCHANGE_DEPOSIT_CONFLICTING_CONTRACT = 1206,
    277     /// The stated value of the coin after the deposit fee is subtracted would be negative.
    278     EXCHANGE_DEPOSIT_NEGATIVE_VALUE_AFTER_FEE = 1207,
    279     /// The stated refund deadline is after the wire deadline.
    280     EXCHANGE_DEPOSIT_REFUND_DEADLINE_AFTER_WIRE_DEADLINE = 1208,
    281     /// The stated wire deadline is "never", which makes no sense.
    282     EXCHANGE_DEPOSIT_WIRE_DEADLINE_IS_NEVER = 1209,
    283     /// 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.
    284     EXCHANGE_DEPOSIT_INVALID_WIRE_FORMAT_JSON = 1210,
    285     /// The hash of the given wire address does not match the wire hash specified in the proposal data.
    286     EXCHANGE_DEPOSIT_INVALID_WIRE_FORMAT_CONTRACT_HASH_CONFLICT = 1211,
    287     /// The signature provided by the exchange is not valid.
    288     EXCHANGE_DEPOSIT_INVALID_SIGNATURE_BY_EXCHANGE = 1221,
    289     /// The deposited amount is smaller than the deposit fee, which would result in a negative contribution.
    290     EXCHANGE_DEPOSIT_FEE_ABOVE_AMOUNT = 1222,
    291     /// The proof of policy fulfillment was invalid.
    292     EXCHANGE_EXTENSIONS_INVALID_FULFILLMENT = 1240,
    293     /// The coin history was requested with a bad signature.
    294     EXCHANGE_COIN_HISTORY_BAD_SIGNATURE = 1251,
    295     /// The reserve history was requested with a bad signature.
    296     EXCHANGE_RESERVE_HISTORY_BAD_SIGNATURE = 1252,
    297     /// The exchange encountered melt fees exceeding the melted coin's contribution.
    298     EXCHANGE_MELT_FEES_EXCEED_CONTRIBUTION = 1302,
    299     /// The signature made with the coin to be melted is invalid.
    300     EXCHANGE_MELT_COIN_SIGNATURE_INVALID = 1303,
    301     /// 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).
    302     EXCHANGE_MELT_COIN_EXPIRED_NO_ZOMBIE = 1305,
    303     /// The signature returned by the exchange in a melt request was malformed.
    304     EXCHANGE_MELT_INVALID_SIGNATURE_BY_EXCHANGE = 1306,
    305     /// The provided transfer keys do not match up with the original commitment.  Information about the original commitment is included in the response.
    306     EXCHANGE_REFRESHES_REVEAL_COMMITMENT_VIOLATION = 1353,
    307     /// Failed to produce the blinded signatures over the coins to be returned.
    308     EXCHANGE_REFRESHES_REVEAL_SIGNING_ERROR = 1354,
    309     /// The exchange is unaware of the refresh session specified in the request.
    310     EXCHANGE_REFRESHES_REVEAL_SESSION_UNKNOWN = 1355,
    311     /// The size of the cut-and-choose dimension of the private transfer keys request does not match #TALER_CNC_KAPPA - 1.
    312     EXCHANGE_REFRESHES_REVEAL_CNC_TRANSFER_ARRAY_SIZE_INVALID = 1356,
    313     /// The number of envelopes given does not match the number of denomination keys given.
    314     EXCHANGE_REFRESHES_REVEAL_NEW_DENOMS_ARRAY_SIZE_MISMATCH = 1358,
    315     /// The exchange encountered a numeric overflow totaling up the cost for the refresh operation.
    316     EXCHANGE_REFRESHES_REVEAL_COST_CALCULATION_OVERFLOW = 1359,
    317     /// The exchange's cost calculation shows that the melt amount is below the costs of the transaction.
    318     EXCHANGE_REFRESHES_REVEAL_AMOUNT_INSUFFICIENT = 1360,
    319     /// The signature made with the coin over the link data is invalid.
    320     EXCHANGE_REFRESHES_REVEAL_LINK_SIGNATURE_INVALID = 1361,
    321     /// The refresh session hash given to a /refreshes/ handler was malformed.
    322     EXCHANGE_REFRESHES_REVEAL_INVALID_RCH = 1362,
    323     /// Operation specified invalid for this endpoint.
    324     EXCHANGE_REFRESHES_REVEAL_OPERATION_INVALID = 1363,
    325     /// The client provided age commitment data, but age restriction is not supported on this server.
    326     EXCHANGE_REFRESHES_REVEAL_AGE_RESTRICTION_NOT_SUPPORTED = 1364,
    327     /// The client provided invalid age commitment data: missing, not an array, or  array of invalid size.
    328     EXCHANGE_REFRESHES_REVEAL_AGE_RESTRICTION_COMMITMENT_INVALID = 1365,
    329     /// The coin specified in the link request is unknown to the exchange.
    330     EXCHANGE_LINK_COIN_UNKNOWN = 1400,
    331     /// The public key of given to a /transfers/ handler was malformed.
    332     EXCHANGE_TRANSFERS_GET_WTID_MALFORMED = 1450,
    333     /// The exchange did not find information about the specified wire transfer identifier in the database.
    334     EXCHANGE_TRANSFERS_GET_WTID_NOT_FOUND = 1451,
    335     /// The exchange did not find information about the wire transfer fees it charged.
    336     EXCHANGE_TRANSFERS_GET_WIRE_FEE_NOT_FOUND = 1452,
    337     /// The exchange found a wire fee that was above the total transfer value (and thus could not have been charged).
    338     EXCHANGE_TRANSFERS_GET_WIRE_FEE_INCONSISTENT = 1453,
    339     /// The wait target of the URL was not in the set of expected values.
    340     EXCHANGE_PURSES_INVALID_WAIT_TARGET = 1475,
    341     /// The signature on the purse status returned by the exchange was invalid.
    342     EXCHANGE_PURSES_GET_INVALID_SIGNATURE_BY_EXCHANGE = 1476,
    343     /// 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.
    344     EXCHANGE_REFUND_COIN_NOT_FOUND = 1500,
    345     /// 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.
    346     EXCHANGE_REFUND_CONFLICT_DEPOSIT_INSUFFICIENT = 1501,
    347     /// 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).
    348     EXCHANGE_REFUND_DEPOSIT_NOT_FOUND = 1502,
    349     /// 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.)
    350     EXCHANGE_REFUND_MERCHANT_ALREADY_PAID = 1503,
    351     /// 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.
    352     EXCHANGE_REFUND_FEE_TOO_LOW = 1504,
    353     /// The refunded amount is smaller than the refund fee, which would result in a negative refund.
    354     EXCHANGE_REFUND_FEE_ABOVE_AMOUNT = 1505,
    355     /// The signature of the merchant is invalid.
    356     EXCHANGE_REFUND_MERCHANT_SIGNATURE_INVALID = 1506,
    357     /// Merchant backend failed to create the refund confirmation signature.
    358     EXCHANGE_REFUND_MERCHANT_SIGNING_FAILED = 1507,
    359     /// The signature returned by the exchange in a refund request was malformed.
    360     EXCHANGE_REFUND_INVALID_SIGNATURE_BY_EXCHANGE = 1508,
    361     /// The failure proof returned by the exchange is incorrect.
    362     EXCHANGE_REFUND_INVALID_FAILURE_PROOF_BY_EXCHANGE = 1509,
    363     /// Conflicting refund granted before with different amount but same refund transaction ID.
    364     EXCHANGE_REFUND_INCONSISTENT_AMOUNT = 1510,
    365     /// The given coin signature is invalid for the request.
    366     EXCHANGE_RECOUP_SIGNATURE_INVALID = 1550,
    367     /// The exchange could not find the corresponding withdraw operation. The request is denied.
    368     EXCHANGE_RECOUP_WITHDRAW_NOT_FOUND = 1551,
    369     /// The coin's remaining balance is zero.  The request is denied.
    370     EXCHANGE_RECOUP_COIN_BALANCE_ZERO = 1552,
    371     /// The exchange failed to reproduce the coin's blinding.
    372     EXCHANGE_RECOUP_BLINDING_FAILED = 1553,
    373     /// The coin's remaining balance is zero.  The request is denied.
    374     EXCHANGE_RECOUP_COIN_BALANCE_NEGATIVE = 1554,
    375     /// The coin's denomination has not been revoked yet.
    376     EXCHANGE_RECOUP_NOT_ELIGIBLE = 1555,
    377     /// The given coin signature is invalid for the request.
    378     EXCHANGE_RECOUP_REFRESH_SIGNATURE_INVALID = 1575,
    379     /// The exchange could not find the corresponding melt operation. The request is denied.
    380     EXCHANGE_RECOUP_REFRESH_MELT_NOT_FOUND = 1576,
    381     /// The exchange failed to reproduce the coin's blinding.
    382     EXCHANGE_RECOUP_REFRESH_BLINDING_FAILED = 1578,
    383     /// The coin's denomination has not been revoked yet.
    384     EXCHANGE_RECOUP_REFRESH_NOT_ELIGIBLE = 1580,
    385     /// This exchange does not allow clients to request /keys for times other than the current (exchange) time.
    386     EXCHANGE_KEYS_TIMETRAVEL_FORBIDDEN = 1600,
    387     /// A signature in the server's response was malformed.
    388     EXCHANGE_WIRE_SIGNATURE_INVALID = 1650,
    389     /// No bank accounts are enabled for the exchange. The administrator should enable-account using the taler-exchange-offline tool.
    390     EXCHANGE_WIRE_NO_ACCOUNTS_CONFIGURED = 1651,
    391     /// The payto:// URI stored in the exchange database for its bank account is malformed.
    392     EXCHANGE_WIRE_INVALID_PAYTO_CONFIGURED = 1652,
    393     /// 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.
    394     EXCHANGE_WIRE_FEES_NOT_CONFIGURED = 1653,
    395     /// This purse was previously created with different meta data.
    396     EXCHANGE_RESERVES_PURSE_CREATE_CONFLICTING_META_DATA = 1675,
    397     /// This purse was previously merged with different meta data.
    398     EXCHANGE_RESERVES_PURSE_MERGE_CONFLICTING_META_DATA = 1676,
    399     /// The reserve has insufficient funds to create another purse.
    400     EXCHANGE_RESERVES_PURSE_CREATE_INSUFFICIENT_FUNDS = 1677,
    401     /// The purse fee specified for the request is lower than the purse fee charged by the exchange at this time.
    402     EXCHANGE_RESERVES_PURSE_FEE_TOO_LOW = 1678,
    403     /// The payment request cannot be deleted anymore, as it either already completed or timed out.
    404     EXCHANGE_PURSE_DELETE_ALREADY_DECIDED = 1679,
    405     /// The signature affirming the purse deletion is invalid.
    406     EXCHANGE_PURSE_DELETE_SIGNATURE_INVALID = 1680,
    407     /// Withdrawal from the reserve requires age restriction to be set.
    408     EXCHANGE_RESERVES_AGE_RESTRICTION_REQUIRED = 1681,
    409     /// The exchange failed to talk to the process responsible for its private denomination keys or the helpers had no denominations (properly) configured.
    410     EXCHANGE_DENOMINATION_HELPER_UNAVAILABLE = 1700,
    411     /// The response from the denomination key helper process was malformed.
    412     EXCHANGE_DENOMINATION_HELPER_BUG = 1701,
    413     /// The helper refuses to sign with the key, because it is too early: the validity period has not yet started.
    414     EXCHANGE_DENOMINATION_HELPER_TOO_EARLY = 1702,
    415     /// The signature of the exchange on the reply was invalid.
    416     EXCHANGE_PURSE_DEPOSIT_EXCHANGE_SIGNATURE_INVALID = 1725,
    417     /// The exchange failed to talk to the process responsible for its private signing keys.
    418     EXCHANGE_SIGNKEY_HELPER_UNAVAILABLE = 1750,
    419     /// The response from the online signing key helper process was malformed.
    420     EXCHANGE_SIGNKEY_HELPER_BUG = 1751,
    421     /// The helper refuses to sign with the key, because it is too early: the validity period has not yet started.
    422     EXCHANGE_SIGNKEY_HELPER_TOO_EARLY = 1752,
    423     /// 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.
    424     EXCHANGE_SIGNKEY_HELPER_OFFLINE_MISSING = 1753,
    425     /// The purse expiration time is in the past at the time of its creation.
    426     EXCHANGE_RESERVES_PURSE_EXPIRATION_BEFORE_NOW = 1775,
    427     /// The purse expiration time is set to never, which is not allowed.
    428     EXCHANGE_RESERVES_PURSE_EXPIRATION_IS_NEVER = 1776,
    429     /// The signature affirming the merge of the purse is invalid.
    430     EXCHANGE_RESERVES_PURSE_MERGE_SIGNATURE_INVALID = 1777,
    431     /// The signature by the reserve affirming the merge is invalid.
    432     EXCHANGE_RESERVES_RESERVE_MERGE_SIGNATURE_INVALID = 1778,
    433     /// The signature by the reserve affirming the open operation is invalid.
    434     EXCHANGE_RESERVES_OPEN_BAD_SIGNATURE = 1785,
    435     /// The signature by the reserve affirming the close operation is invalid.
    436     EXCHANGE_RESERVES_CLOSE_BAD_SIGNATURE = 1786,
    437     /// The signature by the reserve affirming the attestion request is invalid.
    438     EXCHANGE_RESERVES_ATTEST_BAD_SIGNATURE = 1787,
    439     /// 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.
    440     EXCHANGE_RESERVES_CLOSE_NO_TARGET_ACCOUNT = 1788,
    441     /// The reserve balance is insufficient to pay for the open operation.
    442     EXCHANGE_RESERVES_OPEN_INSUFFICIENT_FUNDS = 1789,
    443     /// The auditor that was supposed to be disabled is unknown to this exchange.
    444     EXCHANGE_MANAGEMENT_AUDITOR_NOT_FOUND = 1800,
    445     /// The exchange has a more recently signed conflicting instruction and is thus refusing the current change (replay detected).
    446     EXCHANGE_MANAGEMENT_AUDITOR_MORE_RECENT_PRESENT = 1801,
    447     /// The signature to add or enable the auditor does not validate.
    448     EXCHANGE_MANAGEMENT_AUDITOR_ADD_SIGNATURE_INVALID = 1802,
    449     /// The signature to disable the auditor does not validate.
    450     EXCHANGE_MANAGEMENT_AUDITOR_DEL_SIGNATURE_INVALID = 1803,
    451     /// The signature to revoke the denomination does not validate.
    452     EXCHANGE_MANAGEMENT_DENOMINATION_REVOKE_SIGNATURE_INVALID = 1804,
    453     /// The signature to revoke the online signing key does not validate.
    454     EXCHANGE_MANAGEMENT_SIGNKEY_REVOKE_SIGNATURE_INVALID = 1805,
    455     /// The exchange has a more recently signed conflicting instruction and is thus refusing the current change (replay detected).
    456     EXCHANGE_MANAGEMENT_WIRE_MORE_RECENT_PRESENT = 1806,
    457     /// The signingkey specified is unknown to the exchange.
    458     EXCHANGE_MANAGEMENT_KEYS_SIGNKEY_UNKNOWN = 1807,
    459     /// The signature to publish wire account does not validate.
    460     EXCHANGE_MANAGEMENT_WIRE_DETAILS_SIGNATURE_INVALID = 1808,
    461     /// The signature to add the wire account does not validate.
    462     EXCHANGE_MANAGEMENT_WIRE_ADD_SIGNATURE_INVALID = 1809,
    463     /// The signature to disable the wire account does not validate.
    464     EXCHANGE_MANAGEMENT_WIRE_DEL_SIGNATURE_INVALID = 1810,
    465     /// The wire account to be disabled is unknown to the exchange.
    466     EXCHANGE_MANAGEMENT_WIRE_NOT_FOUND = 1811,
    467     /// The signature to affirm wire fees does not validate.
    468     EXCHANGE_MANAGEMENT_WIRE_FEE_SIGNATURE_INVALID = 1812,
    469     /// The signature conflicts with a previous signature affirming different fees.
    470     EXCHANGE_MANAGEMENT_WIRE_FEE_MISMATCH = 1813,
    471     /// The signature affirming the denomination key is invalid.
    472     EXCHANGE_MANAGEMENT_KEYS_DENOMKEY_ADD_SIGNATURE_INVALID = 1814,
    473     /// The signature affirming the signing key is invalid.
    474     EXCHANGE_MANAGEMENT_KEYS_SIGNKEY_ADD_SIGNATURE_INVALID = 1815,
    475     /// The signature conflicts with a previous signature affirming different fees.
    476     EXCHANGE_MANAGEMENT_GLOBAL_FEE_MISMATCH = 1816,
    477     /// The signature affirming the fee structure is invalid.
    478     EXCHANGE_MANAGEMENT_GLOBAL_FEE_SIGNATURE_INVALID = 1817,
    479     /// The signature affirming the profit drain is invalid.
    480     EXCHANGE_MANAGEMENT_DRAIN_PROFITS_SIGNATURE_INVALID = 1818,
    481     /// The signature affirming the AML decision is invalid.
    482     EXCHANGE_AML_DECISION_ADD_SIGNATURE_INVALID = 1825,
    483     /// The AML officer specified is not allowed to make AML decisions right now.
    484     EXCHANGE_AML_DECISION_INVALID_OFFICER = 1826,
    485     /// There is a more recent AML decision on file. The decision was rejected as timestamps of AML decisions must be monotonically increasing.
    486     EXCHANGE_AML_DECISION_MORE_RECENT_PRESENT = 1827,
    487     /// There AML decision would impose an AML check of a type that is not provided by any KYC provider known to the exchange.
    488     EXCHANGE_AML_DECISION_UNKNOWN_CHECK = 1828,
    489     /// The signature affirming the change in the AML officer status is invalid.
    490     EXCHANGE_MANAGEMENT_UPDATE_AML_OFFICER_SIGNATURE_INVALID = 1830,
    491     /// A more recent decision about the AML officer status is known to the exchange.
    492     EXCHANGE_MANAGEMENT_AML_OFFICERS_MORE_RECENT_PRESENT = 1831,
    493     /// The exchange already has this denomination key configured, but with different meta data. This should not be possible, contact the developers for support.
    494     EXCHANGE_MANAGEMENT_CONFLICTING_DENOMINATION_META_DATA = 1832,
    495     /// The exchange already has this signing key configured, but with different meta data. This should not be possible, contact the developers for support.
    496     EXCHANGE_MANAGEMENT_CONFLICTING_SIGNKEY_META_DATA = 1833,
    497     /// The purse was previously created with different meta data.
    498     EXCHANGE_PURSE_CREATE_CONFLICTING_META_DATA = 1850,
    499     /// The purse was previously created with a different contract.
    500     EXCHANGE_PURSE_CREATE_CONFLICTING_CONTRACT_STORED = 1851,
    501     /// A coin signature for a deposit into the purse is invalid.
    502     EXCHANGE_PURSE_CREATE_COIN_SIGNATURE_INVALID = 1852,
    503     /// The purse expiration time is in the past.
    504     EXCHANGE_PURSE_CREATE_EXPIRATION_BEFORE_NOW = 1853,
    505     /// The purse expiration time is "never".
    506     EXCHANGE_PURSE_CREATE_EXPIRATION_IS_NEVER = 1854,
    507     /// The purse signature over the purse meta data is invalid.
    508     EXCHANGE_PURSE_CREATE_SIGNATURE_INVALID = 1855,
    509     /// The signature over the encrypted contract is invalid.
    510     EXCHANGE_PURSE_ECONTRACT_SIGNATURE_INVALID = 1856,
    511     /// The signature from the exchange over the confirmation is invalid.
    512     EXCHANGE_PURSE_CREATE_EXCHANGE_SIGNATURE_INVALID = 1857,
    513     /// The coin was previously deposited with different meta data.
    514     EXCHANGE_PURSE_DEPOSIT_CONFLICTING_META_DATA = 1858,
    515     /// The encrypted contract was previously uploaded with different meta data.
    516     EXCHANGE_PURSE_ECONTRACT_CONFLICTING_META_DATA = 1859,
    517     /// The deposited amount is less than the purse fee.
    518     EXCHANGE_CREATE_PURSE_NEGATIVE_VALUE_AFTER_FEE = 1860,
    519     /// The signature using the merge key is invalid.
    520     EXCHANGE_PURSE_MERGE_INVALID_MERGE_SIGNATURE = 1876,
    521     /// The signature using the reserve key is invalid.
    522     EXCHANGE_PURSE_MERGE_INVALID_RESERVE_SIGNATURE = 1877,
    523     /// The targeted purse is not yet full and thus cannot be merged. Retrying the request later may succeed.
    524     EXCHANGE_PURSE_NOT_FULL = 1878,
    525     /// The signature from the exchange over the confirmation is invalid.
    526     EXCHANGE_PURSE_MERGE_EXCHANGE_SIGNATURE_INVALID = 1879,
    527     /// The exchange of the target account is not a partner of this exchange.
    528     EXCHANGE_MERGE_PURSE_PARTNER_UNKNOWN = 1880,
    529     /// The signature affirming the new partner is invalid.
    530     EXCHANGE_MANAGEMENT_ADD_PARTNER_SIGNATURE_INVALID = 1890,
    531     /// Conflicting data for the partner already exists with the exchange.
    532     EXCHANGE_MANAGEMENT_ADD_PARTNER_DATA_CONFLICT = 1891,
    533     /// The auditor signature over the denomination meta data is invalid.
    534     EXCHANGE_AUDITORS_AUDITOR_SIGNATURE_INVALID = 1900,
    535     /// The auditor that was specified is unknown to this exchange.
    536     EXCHANGE_AUDITORS_AUDITOR_UNKNOWN = 1901,
    537     /// The auditor that was specified is no longer used by this exchange.
    538     EXCHANGE_AUDITORS_AUDITOR_INACTIVE = 1902,
    539     /// 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).
    540     EXCHANGE_KYC_GENERIC_AML_PROGRAM_TIMEOUT = 1918,
    541     /// The KYC info access token is not recognized. Hence the request was denied.
    542     EXCHANGE_KYC_INFO_AUTHORIZATION_FAILED = 1919,
    543     /// 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.
    544     EXCHANGE_KYC_RECURSIVE_RULE_DETECTED = 1920,
    545     /// The submitted KYC data lacks an attribute that is required by the KYC form. Please submit the complete form.
    546     EXCHANGE_KYC_AML_FORM_INCOMPLETE = 1921,
    547     /// The request requires an AML program which is no longer configured at the exchange. Contact the exchange operator to address the configuration issue.
    548     EXCHANGE_KYC_GENERIC_AML_PROGRAM_GONE = 1922,
    549     /// The given check is not of type 'form' and thus using this handler for form submission is incorrect.
    550     EXCHANGE_KYC_NOT_A_FORM = 1923,
    551     /// The request requires a check which is no longer configured at the exchange. Contact the exchange operator to address the configuration issue.
    552     EXCHANGE_KYC_GENERIC_CHECK_GONE = 1924,
    553     /// The signature affirming the wallet's KYC request was invalid.
    554     EXCHANGE_KYC_WALLET_SIGNATURE_INVALID = 1925,
    555     /// The exchange received an unexpected malformed response from its KYC backend.
    556     EXCHANGE_KYC_PROOF_BACKEND_INVALID_RESPONSE = 1926,
    557     /// The backend signaled an unexpected failure.
    558     EXCHANGE_KYC_PROOF_BACKEND_ERROR = 1927,
    559     /// The backend signaled an authorization failure.
    560     EXCHANGE_KYC_PROOF_BACKEND_AUTHORIZATION_FAILED = 1928,
    561     /// The exchange is unaware of having made an the authorization request.
    562     EXCHANGE_KYC_PROOF_REQUEST_UNKNOWN = 1929,
    563     /// The KYC authorization signature was invalid. Hence the request was denied.
    564     EXCHANGE_KYC_CHECK_AUTHORIZATION_FAILED = 1930,
    565     /// The request used a logic specifier that is not known to the exchange.
    566     EXCHANGE_KYC_GENERIC_LOGIC_UNKNOWN = 1931,
    567     /// The request requires a logic which is no longer configured at the exchange.
    568     EXCHANGE_KYC_GENERIC_LOGIC_GONE = 1932,
    569     /// The logic plugin had a bug in its interaction with the KYC provider.
    570     EXCHANGE_KYC_GENERIC_LOGIC_BUG = 1933,
    571     /// 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.
    572     EXCHANGE_KYC_GENERIC_PROVIDER_ACCESS_REFUSED = 1934,
    573     /// 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.
    574     EXCHANGE_KYC_GENERIC_PROVIDER_TIMEOUT = 1935,
    575     /// The KYC provider responded with a status that was completely unexpected by the KYC logic of the exchange.
    576     EXCHANGE_KYC_GENERIC_PROVIDER_UNEXPECTED_REPLY = 1936,
    577     /// The rate limit of the exchange at the KYC provider has been exceeded. Trying much later might work.
    578     EXCHANGE_KYC_GENERIC_PROVIDER_RATE_LIMIT_EXCEEDED = 1937,
    579     /// The request to the webhook lacked proper authorization or authentication data.
    580     EXCHANGE_KYC_WEBHOOK_UNAUTHORIZED = 1938,
    581     /// The exchange is unaware of the requested payto URI with respect to the KYC status.
    582     EXCHANGE_KYC_CHECK_REQUEST_UNKNOWN = 1939,
    583     /// 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.
    584     EXCHANGE_KYC_CHECK_AUTHORIZATION_KEY_UNKNOWN = 1940,
    585     /// 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.
    586     EXCHANGE_KYC_FORM_ALREADY_UPLOADED = 1941,
    587     /// The internal state of the exchange specifying KYC measures is malformed. Please contact technical support.
    588     EXCHANGE_KYC_MEASURES_MALFORMED = 1942,
    589     /// The specified index does not refer to a valid KYC measure. Please check the URL.
    590     EXCHANGE_KYC_MEASURE_INDEX_INVALID = 1943,
    591     /// 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.
    592     EXCHANGE_KYC_INVALID_LOGIC_TO_CHECK = 1944,
    593     /// The AML program failed. This is either caused by a configuration change or a bug. Please contact technical support.
    594     EXCHANGE_KYC_AML_PROGRAM_FAILURE = 1945,
    595     /// The AML program returned a malformed result. This is a bug. Please contact technical support.
    596     EXCHANGE_KYC_AML_PROGRAM_MALFORMED_RESULT = 1946,
    597     /// The response from the KYC provider lacked required attributes. Please contact technical support.
    598     EXCHANGE_KYC_GENERIC_PROVIDER_INCOMPLETE_REPLY = 1947,
    599     /// The context of the KYC check lacked required fields. This is a bug. Please contact technical support.
    600     EXCHANGE_KYC_GENERIC_PROVIDER_INCOMPLETE_CONTEXT = 1948,
    601     /// The logic plugin had a bug in its AML processing. This is a bug. Please contact technical support.
    602     EXCHANGE_KYC_GENERIC_AML_LOGIC_BUG = 1949,
    603     /// The exchange does not know a contract under the given contract public key.
    604     EXCHANGE_CONTRACTS_UNKNOWN = 1950,
    605     /// The URL does not encode a valid exchange public key in its path.
    606     EXCHANGE_CONTRACTS_INVALID_CONTRACT_PUB = 1951,
    607     /// The returned encrypted contract did not decrypt.
    608     EXCHANGE_CONTRACTS_DECRYPTION_FAILED = 1952,
    609     /// The signature on the encrypted contract did not validate.
    610     EXCHANGE_CONTRACTS_SIGNATURE_INVALID = 1953,
    611     /// The decrypted contract was malformed.
    612     EXCHANGE_CONTRACTS_DECODING_FAILED = 1954,
    613     /// A coin signature for a deposit into the purse is invalid.
    614     EXCHANGE_PURSE_DEPOSIT_COIN_SIGNATURE_INVALID = 1975,
    615     /// It is too late to deposit coins into the purse.
    616     EXCHANGE_PURSE_DEPOSIT_DECIDED_ALREADY = 1976,
    617     /// The exchange is currently processing the KYC status and is not able to return a response yet.
    618     EXCHANGE_KYC_INFO_BUSY = 1977,
    619     /// TOTP key is not valid.
    620     EXCHANGE_TOTP_KEY_INVALID = 1980,
    621     /// The backend could not find the merchant instance specified in the request.
    622     MERCHANT_GENERIC_INSTANCE_UNKNOWN = 2000,
    623     /// The start and end-times in the wire fee structure leave a hole. This is not allowed.
    624     MERCHANT_GENERIC_HOLE_IN_WIRE_FEE_STRUCTURE = 2001,
    625     /// The master key of the exchange does not match the one configured for this merchant. As a result, we refuse to do business with this exchange. The administrator should check if they configured the exchange correctly in the merchant backend.
    626     MERCHANT_GENERIC_EXCHANGE_MASTER_KEY_MISMATCH = 2002,
    627     /// The product category is not known to the backend.
    628     MERCHANT_GENERIC_CATEGORY_UNKNOWN = 2003,
    629     /// The unit referenced in the request is not known to the backend.
    630     MERCHANT_GENERIC_UNIT_UNKNOWN = 2004,
    631     /// The proposal is not known to the backend.
    632     MERCHANT_GENERIC_ORDER_UNKNOWN = 2005,
    633     /// 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.
    634     MERCHANT_GENERIC_PRODUCT_UNKNOWN = 2006,
    635     /// The reward ID is unknown.  This could happen if the reward has expired.
    636     MERCHANT_GENERIC_REWARD_ID_UNKNOWN = 2007,
    637     /// The contract obtained from the merchant backend was malformed.
    638     MERCHANT_GENERIC_DB_CONTRACT_CONTENT_INVALID = 2008,
    639     /// The order we found does not match the provided contract hash.
    640     MERCHANT_GENERIC_CONTRACT_HASH_DOES_NOT_MATCH_ORDER = 2009,
    641     /// The exchange failed to provide a valid response to the merchant's /keys request.
    642     MERCHANT_GENERIC_EXCHANGE_KEYS_FAILURE = 2010,
    643     /// The exchange failed to respond to the merchant on time.
    644     MERCHANT_GENERIC_EXCHANGE_TIMEOUT = 2011,
    645     /// The merchant failed to talk to the exchange.
    646     MERCHANT_GENERIC_EXCHANGE_CONNECT_FAILURE = 2012,
    647     /// The exchange returned a maformed response.
    648     MERCHANT_GENERIC_EXCHANGE_REPLY_MALFORMED = 2013,
    649     /// The exchange returned an unexpected response status.
    650     MERCHANT_GENERIC_EXCHANGE_UNEXPECTED_STATUS = 2014,
    651     /// The merchant refused the request due to lack of authorization.
    652     MERCHANT_GENERIC_UNAUTHORIZED = 2015,
    653     /// The merchant instance specified in the request was deleted.
    654     MERCHANT_GENERIC_INSTANCE_DELETED = 2016,
    655     /// The backend could not find the inbound wire transfer specified in the request.
    656     MERCHANT_GENERIC_TRANSFER_UNKNOWN = 2017,
    657     /// The backend could not find the template(id) because it is not exist.
    658     MERCHANT_GENERIC_TEMPLATE_UNKNOWN = 2018,
    659     /// The backend could not find the webhook(id) because it is not exist.
    660     MERCHANT_GENERIC_WEBHOOK_UNKNOWN = 2019,
    661     /// The backend could not find the webhook(serial) because it is not exist.
    662     MERCHANT_GENERIC_PENDING_WEBHOOK_UNKNOWN = 2020,
    663     /// The backend could not find the OTP device(id) because it is not exist.
    664     MERCHANT_GENERIC_OTP_DEVICE_UNKNOWN = 2021,
    665     /// The account is not known to the backend.
    666     MERCHANT_GENERIC_ACCOUNT_UNKNOWN = 2022,
    667     /// The wire hash was malformed.
    668     MERCHANT_GENERIC_H_WIRE_MALFORMED = 2023,
    669     /// The currency specified in the operation does not work with the current state of the given resource.
    670     MERCHANT_GENERIC_CURRENCY_MISMATCH = 2024,
    671     /// 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.
    672     MERCHANT_GENERIC_EXCHANGE_UNTRUSTED = 2025,
    673     /// The token family is not known to the backend.
    674     MERCHANT_GENERIC_TOKEN_FAMILY_UNKNOWN = 2026,
    675     /// 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.
    676     MERCHANT_GENERIC_TOKEN_KEY_UNKNOWN = 2027,
    677     /// The merchant backend is not configured to support the DONAU protocol.
    678     MERCHANT_GENERIC_DONAU_NOT_CONFIGURED = 2028,
    679     /// 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.
    680     MERCHANT_EXCHANGE_SIGN_PUB_UNKNOWN = 2029,
    681     /// The merchant backend does not support the requested feature.
    682     MERCHANT_GENERIC_FEATURE_NOT_AVAILABLE = 2030,
    683     /// 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.
    684     MERCHANT_GENERIC_MFA_MISSING = 2031,
    685     /// A donation authority (Donau) provided an invalid response. This should be analyzed by the administrator. Trying again later may help.
    686     MERCHANT_GENERIC_DONAU_INVALID_RESPONSE = 2032,
    687     /// The unit referenced in the request is builtin and cannot be modified or deleted.
    688     MERCHANT_GENERIC_UNIT_BUILTIN = 2033,
    689     /// The report ID provided to the backend is not known to the backend.
    690     MERCHANT_GENERIC_REPORT_UNKNOWN = 2034,
    691     /// The report ID provided to the backend is not known to the backend.
    692     MERCHANT_GENERIC_REPORT_GENERATOR_UNCONFIGURED = 2035,
    693     /// The product group ID provided to the backend is not known to the backend.
    694     MERCHANT_GENERIC_PRODUCT_GROUP_UNKNOWN = 2036,
    695     /// The money pod ID provided to the backend is not known to the backend.
    696     MERCHANT_GENERIC_MONEY_POT_UNKNOWN = 2037,
    697     /// The session ID provided to the backend is not known to the backend.
    698     MERCHANT_GENERIC_SESSION_UNKNOWN = 2038,
    699     /// The merchant does not have a charity associated with the selected Donau. As a result, it cannot generate the requested donation receipt. This could happen if the charity was removed from the backend between order creation and payment.
    700     MERCHANT_GENERIC_DONAU_CHARITY_UNKNOWN = 2039,
    701     /// The merchant does not expect any transfer with the given ID and can thus not return any details about it.
    702     MERCHANT_GENERIC_EXPECTED_TRANSFER_UNKNOWN = 2040,
    703     /// The Donau is not known to the backend.
    704     MERCHANT_GENERIC_DONAU_UNKNOWN = 2041,
    705     /// The access token is not known to the backend.
    706     MERCHANT_GENERIC_ACCESS_TOKEN_UNKNOWN = 2042,
    707     /// One of the binaries needed to generate the PDF is not installed. If this feature is required, the system administrator should make sure Typst and pdftk are both installed.
    708     MERCHANT_GENERIC_NO_TYPST_OR_PDFTK = 2048,
    709     /// The exchange failed to provide a valid answer to the tracking request, thus those details are not in the response.
    710     MERCHANT_GET_ORDERS_EXCHANGE_TRACKING_FAILURE = 2100,
    711     /// The merchant backend failed to construct the request for tracking to the exchange, thus tracking details are not in the response.
    712     MERCHANT_GET_ORDERS_ID_EXCHANGE_REQUEST_FAILURE = 2103,
    713     /// The merchant backend failed trying to contact the exchange for tracking details, thus those details are not in the response.
    714     MERCHANT_GET_ORDERS_ID_EXCHANGE_LOOKUP_START_FAILURE = 2104,
    715     /// The claim token used to authenticate the client is invalid for this order.
    716     MERCHANT_GET_ORDERS_ID_INVALID_TOKEN = 2105,
    717     /// The contract terms hash used to authenticate the client is invalid for this order.
    718     MERCHANT_GET_ORDERS_ID_INVALID_CONTRACT_HASH = 2106,
    719     /// The contract terms version is not understood by the merchant backend. Most likely the merchant backend was downgraded to a version incompatible with the content of the database.
    720     MERCHANT_GET_ORDERS_ID_INVALID_CONTRACT_VERSION = 2107,
    721     /// The provided TAN code is invalid for this challenge.
    722     MERCHANT_TAN_CHALLENGE_FAILED = 2125,
    723     /// The backend is not aware of the specified MFA challenge.
    724     MERCHANT_TAN_CHALLENGE_UNKNOWN = 2126,
    725     /// There have been too many attempts to solve the challenge. A new TAN must be requested.
    726     MERCHANT_TAN_TOO_MANY_ATTEMPTS = 2127,
    727     /// 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.
    728     MERCHANT_TAN_MFA_HELPER_EXEC_FAILED = 2128,
    729     /// The challenge was already solved. Thus, we refuse to send it again.
    730     MERCHANT_TAN_CHALLENGE_SOLVED = 2129,
    731     /// It is too early to request another transmission of the challenge. The client should wait and see if they received the previous challenge.
    732     MERCHANT_TAN_TOO_EARLY = 2130,
    733     /// There have been too many attempts to solve MFA. The client may attempt again in the future.
    734     MERCHANT_MFA_FORBIDDEN = 2131,
    735     /// The exchange responded saying that funds were insufficient (for example, due to double-spending).
    736     MERCHANT_POST_ORDERS_ID_PAY_INSUFFICIENT_FUNDS = 2150,
    737     /// The denomination key used for payment is not listed among the denomination keys of the exchange.
    738     MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_KEY_NOT_FOUND = 2151,
    739     /// The denomination key used for payment is not audited by an auditor approved by the merchant.
    740     MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_KEY_AUDITOR_FAILURE = 2152,
    741     /// There was an integer overflow totaling up the amounts or deposit fees in the payment.
    742     MERCHANT_POST_ORDERS_ID_PAY_AMOUNT_OVERFLOW = 2153,
    743     /// The deposit fees exceed the total value of the payment.
    744     MERCHANT_POST_ORDERS_ID_PAY_FEES_EXCEED_PAYMENT = 2154,
    745     /// 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.
    746     MERCHANT_POST_ORDERS_ID_PAY_INSUFFICIENT_DUE_TO_FEES = 2155,
    747     /// Even if we do not consider deposit and wire fees, the payment is insufficient to satisfy the required amount for the contract.
    748     MERCHANT_POST_ORDERS_ID_PAY_PAYMENT_INSUFFICIENT = 2156,
    749     /// The signature over the contract of one of the coins was invalid.
    750     MERCHANT_POST_ORDERS_ID_PAY_COIN_SIGNATURE_INVALID = 2157,
    751     /// 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.
    752     MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_LOOKUP_FAILED = 2158,
    753     /// The refund deadline in the contract is after the transfer deadline.
    754     MERCHANT_POST_ORDERS_ID_PAY_REFUND_DEADLINE_PAST_WIRE_TRANSFER_DEADLINE = 2159,
    755     /// The order was already paid (maybe by another wallet).
    756     MERCHANT_POST_ORDERS_ID_PAY_ALREADY_PAID = 2160,
    757     /// The payment is too late, the offer has expired.
    758     MERCHANT_POST_ORDERS_ID_PAY_OFFER_EXPIRED = 2161,
    759     /// 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.
    760     MERCHANT_POST_ORDERS_ID_PAY_MERCHANT_FIELD_MISSING = 2162,
    761     /// Failed to locate merchant's account information matching the wire hash given in the proposal.
    762     MERCHANT_POST_ORDERS_ID_PAY_WIRE_HASH_UNKNOWN = 2163,
    763     /// The deposit time for the denomination has expired.
    764     MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_DEPOSIT_EXPIRED = 2165,
    765     /// The exchange of the deposited coin charges a wire fee that could not be added to the total (total amount too high).
    766     MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_WIRE_FEE_ADDITION_FAILED = 2166,
    767     /// 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.
    768     MERCHANT_POST_ORDERS_ID_PAY_REFUNDED = 2167,
    769     /// According to our database, we have refunded more than we were paid (which should not be possible).
    770     MERCHANT_POST_ORDERS_ID_PAY_REFUNDS_EXCEED_PAYMENTS = 2168,
    771     /// The refund request is too late because it is past the wire transfer deadline of the order. The merchant must find a different way to pay back the money to the customer.
    772     MERCHANT_PRIVATE_POST_REFUND_AFTER_WIRE_DEADLINE = 2169,
    773     /// The payment failed at the exchange.
    774     MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_FAILED = 2170,
    775     /// 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.
    776     MERCHANT_POST_ORDERS_ID_PAY_AGE_COMMITMENT_MISSING = 2171,
    777     /// 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.
    778     MERCHANT_POST_ORDERS_ID_PAY_AGE_COMMITMENT_SIZE_MISMATCH = 2172,
    779     /// 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.
    780     MERCHANT_POST_ORDERS_ID_PAY_AGE_VERIFICATION_FAILED = 2173,
    781     /// 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.
    782     MERCHANT_POST_ORDERS_ID_PAY_AGE_COMMITMENT_HASH_MISSING = 2174,
    783     /// 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.
    784     MERCHANT_POST_ORDERS_ID_PAY_WIRE_METHOD_UNSUPPORTED = 2175,
    785     /// The payment requires the wallet to select a choice from the choices array and pass it in the 'choice_index' field of the request.
    786     MERCHANT_POST_ORDERS_ID_PAY_CHOICE_INDEX_MISSING = 2176,
    787     /// The 'choice_index' field is invalid.
    788     MERCHANT_POST_ORDERS_ID_PAY_CHOICE_INDEX_OUT_OF_BOUNDS = 2177,
    789     /// The provided 'tokens' array does not match with the required input tokens of the order.
    790     MERCHANT_POST_ORDERS_ID_PAY_INPUT_TOKENS_MISMATCH = 2178,
    791     /// Invalid token issue signature (blindly signed by merchant) for provided token.
    792     MERCHANT_POST_ORDERS_ID_PAY_TOKEN_ISSUE_SIG_INVALID = 2179,
    793     /// Invalid token use signature (EdDSA, signed by wallet) for provided token.
    794     MERCHANT_POST_ORDERS_ID_PAY_TOKEN_USE_SIG_INVALID = 2180,
    795     /// The provided number of tokens does not match the required number.
    796     MERCHANT_POST_ORDERS_ID_PAY_TOKEN_COUNT_MISMATCH = 2181,
    797     /// The provided number of token envelopes does not match the specified number.
    798     MERCHANT_POST_ORDERS_ID_PAY_TOKEN_ENVELOPE_COUNT_MISMATCH = 2182,
    799     /// Invalid token because it was already used, is expired or not yet valid.
    800     MERCHANT_POST_ORDERS_ID_PAY_TOKEN_INVALID = 2183,
    801     /// The payment violates a transaction limit configured at the given exchange. The wallet has a bug in that it failed to check exchange limits during coin selection. Please report the bug to your wallet developer.
    802     MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_TRANSACTION_LIMIT_VIOLATION = 2184,
    803     /// The donation amount provided in the BKPS does not match the amount of the order choice.
    804     MERCHANT_POST_ORDERS_ID_PAY_DONATION_AMOUNT_MISMATCH = 2185,
    805     /// Some of the exchanges involved refused the request for reasons related to legitimization. The wallet should try with coins of different exchanges. The merchant should check if they have some legitimization process pending at the exchange.
    806     MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_LEGALLY_REFUSED = 2186,
    807     /// The contract hash does not match the given order ID.
    808     MERCHANT_POST_ORDERS_ID_PAID_CONTRACT_HASH_MISMATCH = 2200,
    809     /// The signature of the merchant is not valid for the given contract hash.
    810     MERCHANT_POST_ORDERS_ID_PAID_COIN_SIGNATURE_INVALID = 2201,
    811     /// A token family with this ID but conflicting data exists.
    812     MERCHANT_POST_TOKEN_FAMILY_CONFLICT = 2225,
    813     /// The backend is unaware of a token family with the given ID.
    814     MERCHANT_PATCH_TOKEN_FAMILY_NOT_FOUND = 2226,
    815     /// The merchant failed to send the exchange the refund request.
    816     MERCHANT_POST_ORDERS_ID_ABORT_EXCHANGE_REFUND_FAILED = 2251,
    817     /// The merchant failed to find the exchange to process the lookup.
    818     MERCHANT_POST_ORDERS_ID_ABORT_EXCHANGE_LOOKUP_FAILED = 2252,
    819     /// The merchant could not find the contract.
    820     MERCHANT_POST_ORDERS_ID_ABORT_CONTRACT_NOT_FOUND = 2253,
    821     /// The payment was already completed and thus cannot be aborted anymore.
    822     MERCHANT_POST_ORDERS_ID_ABORT_REFUND_REFUSED_PAYMENT_COMPLETE = 2254,
    823     /// The hash provided by the wallet does not match the order.
    824     MERCHANT_POST_ORDERS_ID_ABORT_CONTRACT_HASH_MISSMATCH = 2255,
    825     /// The array of coins cannot be empty.
    826     MERCHANT_POST_ORDERS_ID_ABORT_COINS_ARRAY_EMPTY = 2256,
    827     /// We are waiting for the exchange to provide us with key material before checking the wire transfer.
    828     MERCHANT_EXCHANGE_TRANSFERS_AWAITING_KEYS = 2258,
    829     /// We are waiting for the exchange to provide us with the list of aggregated transactions.
    830     MERCHANT_EXCHANGE_TRANSFERS_AWAITING_LIST = 2259,
    831     /// The endpoint indicated in the wire transfer does not belong to a GNU Taler exchange.
    832     MERCHANT_EXCHANGE_TRANSFERS_FATAL_NO_EXCHANGE = 2260,
    833     /// The exchange indicated in the wire transfer claims to know nothing about the wire transfer.
    834     MERCHANT_EXCHANGE_TRANSFERS_FATAL_NOT_FOUND = 2261,
    835     /// The interaction with the exchange is delayed due to rate limiting.
    836     MERCHANT_EXCHANGE_TRANSFERS_RATE_LIMITED = 2262,
    837     /// We experienced a transient failure in our interaction with the exchange.
    838     MERCHANT_EXCHANGE_TRANSFERS_TRANSIENT_FAILURE = 2263,
    839     /// The response from the exchange was unacceptable and should be reviewed with an auditor.
    840     MERCHANT_EXCHANGE_TRANSFERS_HARD_FAILURE = 2264,
    841     /// The merchant backend failed to reach the banking gateway to shorten the wire transfer subject. This probably means that the banking gateway of the exchange is currently down. Contact the exchange operator or simply retry again later.
    842     MERCHANT_POST_ACCOUNTS_KYCAUTH_BANK_GATEWAY_UNREACHABLE = 2275,
    843     /// The merchant backend failed to reach the banking gateway to shorten the wire transfer subject. This probably means that the banking gateway of the exchange is currently down. Contact the exchange operator or simply retry again later.
    844     MERCHANT_POST_ACCOUNTS_EXCHANGE_TOO_OLD = 2276,
    845     /// The merchant backend failed to reach the specified exchange. This probably means that the exchange is currently down. Contact the exchange operator or simply retry again later.
    846     MERCHANT_POST_ACCOUNTS_KYCAUTH_EXCHANGE_UNREACHABLE = 2277,
    847     /// We could not claim the order because the backend is unaware of it.
    848     MERCHANT_POST_ORDERS_ID_CLAIM_NOT_FOUND = 2300,
    849     /// We could not claim the order because someone else claimed it first.
    850     MERCHANT_POST_ORDERS_ID_CLAIM_ALREADY_CLAIMED = 2301,
    851     /// The client-side experienced an internal failure.
    852     MERCHANT_POST_ORDERS_ID_CLAIM_CLIENT_INTERNAL_FAILURE = 2302,
    853     /// The unclaim signature of the wallet is not valid for the given contract hash.
    854     MERCHANT_POST_ORDERS_UNCLAIM_SIGNATURE_INVALID = 2303,
    855     /// The backend failed to sign the refund request.
    856     MERCHANT_POST_ORDERS_ID_REFUND_SIGNATURE_FAILED = 2350,
    857     /// The client failed to unblind the signature returned by the merchant.
    858     MERCHANT_REWARD_PICKUP_UNBLIND_FAILURE = 2400,
    859     /// The exchange returned a failure code for the withdraw operation.
    860     MERCHANT_REWARD_PICKUP_EXCHANGE_ERROR = 2403,
    861     /// The merchant failed to add up the amounts to compute the pick up value.
    862     MERCHANT_REWARD_PICKUP_SUMMATION_FAILED = 2404,
    863     /// The reward expired.
    864     MERCHANT_REWARD_PICKUP_HAS_EXPIRED = 2405,
    865     /// The requested withdraw amount exceeds the amount remaining to be picked up.
    866     MERCHANT_REWARD_PICKUP_AMOUNT_EXCEEDS_REWARD_REMAINING = 2406,
    867     /// The merchant did not find the specified denomination key in the exchange's key set.
    868     MERCHANT_REWARD_PICKUP_DENOMINATION_UNKNOWN = 2407,
    869     /// The merchant instance has no active bank accounts configured. However, at least one bank account must be available to create new orders.
    870     MERCHANT_PRIVATE_POST_ORDERS_INSTANCE_CONFIGURATION_LACKS_WIRE = 2500,
    871     /// The proposal had no timestamp and the merchant backend failed to obtain the current local time.
    872     MERCHANT_PRIVATE_POST_ORDERS_NO_LOCALTIME = 2501,
    873     /// The order provided to the backend could not be parsed; likely some required fields were missing or ill-formed.
    874     MERCHANT_PRIVATE_POST_ORDERS_PROPOSAL_PARSE_ERROR = 2502,
    875     /// A conflicting order (sharing the same order identifier) already exists at this merchant backend instance.
    876     MERCHANT_PRIVATE_POST_ORDERS_ALREADY_EXISTS = 2503,
    877     /// The order creation request is invalid because the given wire deadline is before the refund deadline.
    878     MERCHANT_PRIVATE_POST_ORDERS_REFUND_AFTER_WIRE_DEADLINE = 2504,
    879     /// The order creation request is invalid because the delivery date given is in the past.
    880     MERCHANT_PRIVATE_POST_ORDERS_DELIVERY_DATE_IN_PAST = 2505,
    881     /// The order creation request is invalid because a wire deadline of "never" is not allowed.
    882     MERCHANT_PRIVATE_POST_ORDERS_WIRE_DEADLINE_IS_NEVER = 2506,
    883     /// The order creation request is invalid because the given payment deadline is in the past.
    884     MERCHANT_PRIVATE_POST_ORDERS_PAY_DEADLINE_IN_PAST = 2507,
    885     /// The order creation request is invalid because the given refund deadline is in the past.
    886     MERCHANT_PRIVATE_POST_ORDERS_REFUND_DEADLINE_IN_PAST = 2508,
    887     /// 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.
    888     MERCHANT_PRIVATE_POST_ORDERS_NO_EXCHANGES_FOR_WIRE_METHOD = 2509,
    889     /// One of the paths to forget is malformed.
    890     MERCHANT_PRIVATE_PATCH_ORDERS_ID_FORGET_PATH_SYNTAX_INCORRECT = 2510,
    891     /// One of the paths to forget was not marked as forgettable.
    892     MERCHANT_PRIVATE_PATCH_ORDERS_ID_FORGET_PATH_NOT_FORGETTABLE = 2511,
    893     /// The refund amount would violate a refund transaction limit configured at the given exchange. Please find another way to refund the customer, and inquire with your legislator why they make strange banking regulations.
    894     MERCHANT_POST_ORDERS_ID_REFUND_EXCHANGE_TRANSACTION_LIMIT_VIOLATION = 2512,
    895     /// 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.
    896     MERCHANT_PRIVATE_POST_ORDERS_AMOUNT_EXCEEDS_LEGAL_LIMITS = 2513,
    897     /// 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.
    898     MERCHANT_PRIVATE_POST_ORDERS_NO_EXCHANGE_FOR_CURRENCY = 2514,
    899     /// 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.
    900     MERCHANT_PRIVATE_DELETE_ORDERS_AWAITING_PAYMENT = 2520,
    901     /// The order provided to the backend could not be deleted as the order was already paid.
    902     MERCHANT_PRIVATE_DELETE_ORDERS_ALREADY_PAID = 2521,
    903     /// The client requested a report granularity that is not available at the backend. Possible solutions include extending the backend code and/or the database statistic triggers to support the desired data granularity. Alternatively, the client could request a different granularity.
    904     MERCHANT_PRIVATE_GET_STATISTICS_REPORT_GRANULARITY_UNAVAILABLE = 2525,
    905     /// 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.
    906     MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_INCONSISTENT_AMOUNT = 2530,
    907     /// Only paid orders can be refunded, and the frontend specified an unpaid order to issue a refund for.
    908     MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_ORDER_UNPAID = 2531,
    909     /// The refund delay was set to 0 and thus no refunds are ever allowed for this order.
    910     MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_NOT_ALLOWED_BY_CONTRACT = 2532,
    911     /// The token family slug provided in this order could not be found in the merchant database.
    912     MERCHANT_PRIVATE_POST_ORDERS_TOKEN_FAMILY_SLUG_UNKNOWN = 2533,
    913     /// A token family referenced in this order is either expired or not valid yet.
    914     MERCHANT_PRIVATE_POST_ORDERS_TOKEN_FAMILY_NOT_VALID = 2534,
    915     /// The exchange says it does not know this transfer.
    916     MERCHANT_PRIVATE_POST_TRANSFERS_EXCHANGE_UNKNOWN = 2550,
    917     /// We internally failed to execute the /track/transfer request.
    918     MERCHANT_PRIVATE_POST_TRANSFERS_REQUEST_ERROR = 2551,
    919     /// The amount transferred differs between what was submitted and what the exchange claimed.
    920     MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_TRANSFERS = 2552,
    921     /// The exchange gave conflicting information about a coin which has been wire transferred.
    922     MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_REPORTS = 2553,
    923     /// The exchange charged a different wire fee than what it originally advertised, and it is higher.
    924     MERCHANT_PRIVATE_POST_TRANSFERS_BAD_WIRE_FEE = 2554,
    925     /// We did not find the account that the transfer was made to.
    926     MERCHANT_PRIVATE_POST_TRANSFERS_ACCOUNT_NOT_FOUND = 2555,
    927     /// The backend could not delete the transfer as the echange already replied to our inquiry about it and we have integrated the result.
    928     MERCHANT_PRIVATE_DELETE_TRANSFERS_ALREADY_CONFIRMED = 2556,
    929     /// The backend could not persist the wire transfer due to the state of the backend. This usually means that a wire transfer with the same wire transfer subject but a different amount was previously submitted to the backend.
    930     MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_SUBMISSION = 2557,
    931     /// The target bank account given by the exchange is not (or no longer) known at the merchant instance.
    932     MERCHANT_EXCHANGE_TRANSFERS_TARGET_ACCOUNT_UNKNOWN = 2558,
    933     /// The amount transferred differs between what was submitted and what the exchange claimed.
    934     MERCHANT_EXCHANGE_TRANSFERS_CONFLICTING_TRANSFERS = 2563,
    935     /// The report ID provided to the backend is not known to the backend.
    936     MERCHANT_REPORT_GENERATOR_FAILED = 2570,
    937     /// Failed to fetch the data for the report from the backend.
    938     MERCHANT_REPORT_FETCH_FAILED = 2571,
    939     /// The merchant backend cannot create an instance under the given identifier as one already exists. Use PATCH to modify the existing entry.
    940     MERCHANT_PRIVATE_POST_INSTANCES_ALREADY_EXISTS = 2600,
    941     /// The merchant backend cannot create an instance because the authentication configuration field is malformed.
    942     MERCHANT_PRIVATE_POST_INSTANCES_BAD_AUTH = 2601,
    943     /// The merchant backend cannot update an instance's authentication settings because the provided authentication settings are malformed.
    944     MERCHANT_PRIVATE_POST_INSTANCE_AUTH_BAD_AUTH = 2602,
    945     /// The merchant backend cannot create an instance under the given identifier, the previous one was deleted but must be purged first.
    946     MERCHANT_PRIVATE_POST_INSTANCES_PURGE_REQUIRED = 2603,
    947     /// The merchant backend cannot update an instance under the given identifier, the previous one was deleted but must be purged first.
    948     MERCHANT_PRIVATE_PATCH_INSTANCES_PURGE_REQUIRED = 2625,
    949     /// The bank account referenced in the requested operation was not found.
    950     MERCHANT_PRIVATE_ACCOUNT_DELETE_UNKNOWN_ACCOUNT = 2626,
    951     /// The bank account specified in the request already exists at the merchant.
    952     MERCHANT_PRIVATE_ACCOUNT_EXISTS = 2627,
    953     /// The bank account specified is not acceptable for this exchange. The exchange either does not support the wire method or something else about the specific account. Consult the exchange account constraints and specify a different bank account if you want to use this exchange.
    954     MERCHANT_PRIVATE_ACCOUNT_NOT_ELIGIBLE_FOR_EXCHANGE = 2628,
    955     /// The product ID exists.
    956     MERCHANT_PRIVATE_POST_PRODUCTS_CONFLICT_PRODUCT_EXISTS = 2650,
    957     /// A category with the same name exists already.
    958     MERCHANT_PRIVATE_POST_CATEGORIES_CONFLICT_CATEGORY_EXISTS = 2651,
    959     /// The update would have reduced the total amount of product lost, which is not allowed.
    960     MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_LOST_REDUCED = 2660,
    961     /// The update would have mean that more stocks were lost than what remains from total inventory after sales, which is not allowed.
    962     MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_LOST_EXCEEDS_STOCKS = 2661,
    963     /// The update would have reduced the total amount of product in stock, which is not allowed.
    964     MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_STOCKED_REDUCED = 2662,
    965     /// The update would have reduced the total amount of product sold, which is not allowed.
    966     MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_SOLD_REDUCED = 2663,
    967     /// The lock request is for more products than we have left (unlocked) in stock.
    968     MERCHANT_PRIVATE_POST_PRODUCTS_LOCK_INSUFFICIENT_STOCKS = 2670,
    969     /// The deletion request is for a product that is locked. The product cannot be deleted until the existing offer to expires.
    970     MERCHANT_PRIVATE_DELETE_PRODUCTS_CONFLICTING_LOCK = 2680,
    971     /// The proposed name for the product group is already in use. You should select a different name.
    972     MERCHANT_PRIVATE_PRODUCT_GROUP_CONFLICTING_NAME = 2690,
    973     /// The proposed name for the money pot is already in use. You should select a different name.
    974     MERCHANT_PRIVATE_MONEY_POT_CONFLICTING_NAME = 2691,
    975     /// The total amount in the money pot is different from the amount required by the request. The client should fetch the current pot total and retry with the latest amount to succeed.
    976     MERCHANT_PRIVATE_MONEY_POT_CONFLICTING_TOTAL = 2692,
    977     /// The requested wire method is not supported by the exchange.
    978     MERCHANT_PRIVATE_POST_RESERVES_UNSUPPORTED_WIRE_METHOD = 2700,
    979     /// The requested exchange does not allow rewards.
    980     MERCHANT_PRIVATE_POST_RESERVES_REWARDS_NOT_ALLOWED = 2701,
    981     /// The reserve could not be deleted because it is unknown.
    982     MERCHANT_PRIVATE_DELETE_RESERVES_NO_SUCH_RESERVE = 2710,
    983     /// The reserve that was used to fund the rewards has expired.
    984     MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_RESERVE_EXPIRED = 2750,
    985     /// The reserve that was used to fund the rewards was not found in the DB.
    986     MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_RESERVE_UNKNOWN = 2751,
    987     /// 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.
    988     MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_INSUFFICIENT_FUNDS = 2752,
    989     /// The backend failed to find a reserve needed to authorize the reward.
    990     MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_RESERVE_NOT_FOUND = 2753,
    991     /// The merchant backend encountered a failure in computing the deposit total.
    992     MERCHANT_PRIVATE_GET_ORDERS_ID_AMOUNT_ARITHMETIC_FAILURE = 2800,
    993     /// The template ID already exists.
    994     MERCHANT_PRIVATE_POST_TEMPLATES_CONFLICT_TEMPLATE_EXISTS = 2850,
    995     /// The OTP device ID already exists.
    996     MERCHANT_PRIVATE_POST_OTP_DEVICES_CONFLICT_OTP_DEVICE_EXISTS = 2851,
    997     /// Amount given in the using template and in the template contract. There is a conflict.
    998     MERCHANT_POST_USING_TEMPLATES_AMOUNT_CONFLICT_TEMPLATES_CONTRACT_AMOUNT = 2860,
    999     /// Subject given in the using template and in the template contract. There is a conflict.
   1000     MERCHANT_POST_USING_TEMPLATES_SUMMARY_CONFLICT_TEMPLATES_CONTRACT_SUBJECT = 2861,
   1001     /// Amount not given in the using template and in the template contract. There is a conflict.
   1002     MERCHANT_POST_USING_TEMPLATES_NO_AMOUNT = 2862,
   1003     /// Subject not given in the using template and in the template contract. There is a conflict.
   1004     MERCHANT_POST_USING_TEMPLATES_NO_SUMMARY = 2863,
   1005     /// The selected template has a different type than the one specified in the request of the client. This may happen if the template was updated since the last time the client fetched it. The client should re-fetch the current template and send a request of the correct type.
   1006     MERCHANT_POST_USING_TEMPLATES_WRONG_TYPE = 2864,
   1007     /// The selected template does not allow one of the specified products to be included in the order. This may happen if the template was updated since the last time the client fetched it. The client should re-fetch the current template and send a request of the correct type.
   1008     MERCHANT_POST_USING_TEMPLATES_WRONG_PRODUCT = 2865,
   1009     /// The selected combination of products does not allow the backend to compute a price for the order in any of the supported currencies. This may happen if the template was updated since the last time the client fetched it or if the wallet assembled an unsupported combination of products. The site administrator might want to specify additional prices for products, while the client should re-fetch the current template and send a request with a combination of products for which prices exist in the same currency.
   1010     MERCHANT_POST_USING_TEMPLATES_NO_CURRENCY = 2866,
   1011     /// The webhook ID elready exists.
   1012     MERCHANT_PRIVATE_POST_WEBHOOKS_CONFLICT_WEBHOOK_EXISTS = 2900,
   1013     /// The webhook serial elready exists.
   1014     MERCHANT_PRIVATE_POST_PENDING_WEBHOOKS_CONFLICT_PENDING_WEBHOOK_EXISTS = 2910,
   1015     /// The auditor refused the connection due to a lack of authorization.
   1016     AUDITOR_GENERIC_UNAUTHORIZED = 3001,
   1017     /// This method is not allowed here.
   1018     AUDITOR_GENERIC_METHOD_NOT_ALLOWED = 3002,
   1019     /// The signature from the exchange on the deposit confirmation is invalid.
   1020     AUDITOR_DEPOSIT_CONFIRMATION_SIGNATURE_INVALID = 3100,
   1021     /// The exchange key used for the signature on the deposit confirmation was revoked.
   1022     AUDITOR_EXCHANGE_SIGNING_KEY_REVOKED = 3101,
   1023     /// The requested resource could not be found.
   1024     AUDITOR_RESOURCE_NOT_FOUND = 3102,
   1025     /// The URI is missing a path component.
   1026     AUDITOR_URI_MISSING_PATH_COMPONENT = 3103,
   1027     /// Wire transfer attempted with credit and debit party being the same bank account.
   1028     BANK_SAME_ACCOUNT = 5101,
   1029     /// Wire transfer impossible, due to financial limitation of the party that attempted the payment.
   1030     BANK_UNALLOWED_DEBIT = 5102,
   1031     /// Negative numbers are not allowed (as value and/or fraction) to instantiate an amount object.
   1032     BANK_NEGATIVE_NUMBER_AMOUNT = 5103,
   1033     /// A too big number was used (as value and/or fraction) to instantiate an amount object.
   1034     BANK_NUMBER_TOO_BIG = 5104,
   1035     /// The bank account referenced in the requested operation was not found.
   1036     BANK_UNKNOWN_ACCOUNT = 5106,
   1037     /// The transaction referenced in the requested operation (typically a reject operation), was not found.
   1038     BANK_TRANSACTION_NOT_FOUND = 5107,
   1039     /// Bank received a malformed amount string.
   1040     BANK_BAD_FORMAT_AMOUNT = 5108,
   1041     /// The client does not own the account credited by the transaction which is to be rejected, so it has no rights do reject it.
   1042     BANK_REJECT_NO_RIGHTS = 5109,
   1043     /// This error code is returned when no known exception types captured the exception.
   1044     BANK_UNMANAGED_EXCEPTION = 5110,
   1045     /// 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.
   1046     BANK_SOFT_EXCEPTION = 5111,
   1047     /// The request UID for a request to transfer funds has already been used, but with different details for the transfer.
   1048     BANK_TRANSFER_REQUEST_UID_REUSED = 5112,
   1049     /// The withdrawal operation already has a reserve selected.  The current request conflicts with the existing selection.
   1050     BANK_WITHDRAWAL_OPERATION_RESERVE_SELECTION_CONFLICT = 5113,
   1051     /// The wire transfer subject duplicates an existing reserve public key. But wire transfer subjects must be unique.
   1052     BANK_DUPLICATE_RESERVE_PUB_SUBJECT = 5114,
   1053     /// The client requested a transaction that is so far in the past, that it has been forgotten by the bank.
   1054     BANK_ANCIENT_TRANSACTION_GONE = 5115,
   1055     /// The client attempted to abort a transaction that was already confirmed.
   1056     BANK_ABORT_CONFIRM_CONFLICT = 5116,
   1057     /// The client attempted to confirm a transaction that was already aborted.
   1058     BANK_CONFIRM_ABORT_CONFLICT = 5117,
   1059     /// The client attempted to register an account with the same name.
   1060     BANK_REGISTER_CONFLICT = 5118,
   1061     /// The client attempted to confirm a withdrawal operation before the wallet posted the required details.
   1062     BANK_POST_WITHDRAWAL_OPERATION_REQUIRED = 5119,
   1063     /// The client tried to register a new account under a reserved username (like 'admin' for example).
   1064     BANK_RESERVED_USERNAME_CONFLICT = 5120,
   1065     /// The client tried to register a new account with an username already in use.
   1066     BANK_REGISTER_USERNAME_REUSE = 5121,
   1067     /// The client tried to register a new account with a payto:// URI already in use.
   1068     BANK_REGISTER_PAYTO_URI_REUSE = 5122,
   1069     /// The client tried to delete an account with a non null balance.
   1070     BANK_ACCOUNT_BALANCE_NOT_ZERO = 5123,
   1071     /// The client tried to create a transaction or an operation that credit an unknown account.
   1072     BANK_UNKNOWN_CREDITOR = 5124,
   1073     /// The client tried to create a transaction or an operation that debit an unknown account.
   1074     BANK_UNKNOWN_DEBTOR = 5125,
   1075     /// The client tried to perform an action prohibited for exchange accounts.
   1076     BANK_ACCOUNT_IS_EXCHANGE = 5126,
   1077     /// The client tried to perform an action reserved for exchange accounts.
   1078     BANK_ACCOUNT_IS_NOT_EXCHANGE = 5127,
   1079     /// Received currency conversion is wrong.
   1080     BANK_BAD_CONVERSION = 5128,
   1081     /// The account referenced in this operation is missing tan info for the chosen channel.
   1082     BANK_MISSING_TAN_INFO = 5129,
   1083     /// The client attempted to confirm a transaction with incomplete info.
   1084     BANK_CONFIRM_INCOMPLETE = 5130,
   1085     /// The request rate is too high. The server is refusing requests to guard against brute-force attacks.
   1086     BANK_TAN_RATE_LIMITED = 5131,
   1087     /// This TAN channel is not supported.
   1088     BANK_TAN_CHANNEL_NOT_SUPPORTED = 5132,
   1089     /// Failed to send TAN using the helper script. Either script is not found, or script timeout, or script terminated with a non-successful result.
   1090     BANK_TAN_CHANNEL_SCRIPT_FAILED = 5133,
   1091     /// The client's response to the challenge was invalid.
   1092     BANK_TAN_CHALLENGE_FAILED = 5134,
   1093     /// A non-admin user has tried to change their legal name.
   1094     BANK_NON_ADMIN_PATCH_LEGAL_NAME = 5135,
   1095     /// A non-admin user has tried to change their debt limit.
   1096     BANK_NON_ADMIN_PATCH_DEBT_LIMIT = 5136,
   1097     /// A non-admin user has tried to change their password whihout providing the current one.
   1098     BANK_NON_ADMIN_PATCH_MISSING_OLD_PASSWORD = 5137,
   1099     /// Provided old password does not match current password.
   1100     BANK_PATCH_BAD_OLD_PASSWORD = 5138,
   1101     /// An admin user has tried to become an exchange.
   1102     BANK_PATCH_ADMIN_EXCHANGE = 5139,
   1103     /// A non-admin user has tried to change their cashout account.
   1104     BANK_NON_ADMIN_PATCH_CASHOUT = 5140,
   1105     /// A non-admin user has tried to change their contact info.
   1106     BANK_NON_ADMIN_PATCH_CONTACT = 5141,
   1107     /// The client tried to create a transaction that credit the admin account.
   1108     BANK_ADMIN_CREDITOR = 5142,
   1109     /// The referenced challenge was not found.
   1110     BANK_CHALLENGE_NOT_FOUND = 5143,
   1111     /// The referenced challenge has expired.
   1112     BANK_TAN_CHALLENGE_EXPIRED = 5144,
   1113     /// A non-admin user has tried to create an account with 2fa.
   1114     BANK_NON_ADMIN_SET_TAN_CHANNEL = 5145,
   1115     /// A non-admin user has tried to set their minimum cashout amount.
   1116     BANK_NON_ADMIN_SET_MIN_CASHOUT = 5146,
   1117     /// Amount of currency conversion it less than the minimum allowed.
   1118     BANK_CONVERSION_AMOUNT_TO_SMALL = 5147,
   1119     /// Specified amount will not work for this withdrawal.
   1120     BANK_AMOUNT_DIFFERS = 5148,
   1121     /// The backend requires an amount to be specified.
   1122     BANK_AMOUNT_REQUIRED = 5149,
   1123     /// Provided password is too short.
   1124     BANK_PASSWORD_TOO_SHORT = 5150,
   1125     /// Provided password is too long.
   1126     BANK_PASSWORD_TOO_LONG = 5151,
   1127     /// Bank account is locked and cannot authenticate using his password.
   1128     BANK_ACCOUNT_LOCKED = 5152,
   1129     /// The client attempted to update a transaction' details that was already aborted.
   1130     BANK_UPDATE_ABORT_CONFLICT = 5153,
   1131     /// The wtid for a request to transfer funds has already been used, but with a different request unpaid.
   1132     BANK_TRANSFER_WTID_REUSED = 5154,
   1133     /// A non-admin user has tried to set their conversion rate class
   1134     BANK_NON_ADMIN_SET_CONVERSION_RATE_CLASS = 5155,
   1135     /// The referenced conversion rate class was not found
   1136     BANK_CONVERSION_RATE_CLASS_UNKNOWN = 5156,
   1137     /// The client tried to use an already taken name.
   1138     BANK_NAME_REUSE = 5157,
   1139     /// This subject format is not supported.
   1140     BANK_UNSUPPORTED_SUBJECT_FORMAT = 5158,
   1141     /// The derived subject is already used.
   1142     BANK_DERIVATION_REUSE = 5159,
   1143     /// The provided signature is invalid.
   1144     BANK_BAD_SIGNATURE = 5160,
   1145     /// The provided timestamp is too old.
   1146     BANK_OLD_TIMESTAMP = 5161,
   1147     /// The authorization_pub for a request to transfer funds has already been used for another non recurrent transfer.
   1148     BANK_TRANSFER_MAPPING_REUSED = 5162,
   1149     /// The authorization_pub for a request to transfer funds is not currently registered.
   1150     BANK_TRANSFER_MAPPING_UNKNOWN = 5163,
   1151     /// The sync service failed find the account in its database.
   1152     SYNC_ACCOUNT_UNKNOWN = 6100,
   1153     /// The SHA-512 hash provided in the If-None-Match header is malformed.
   1154     SYNC_BAD_IF_NONE_MATCH = 6101,
   1155     /// The SHA-512 hash provided in the If-Match header is malformed or missing.
   1156     SYNC_BAD_IF_MATCH = 6102,
   1157     /// The signature provided in the "Sync-Signature" header is malformed or missing.
   1158     SYNC_BAD_SYNC_SIGNATURE = 6103,
   1159     /// The signature provided in the "Sync-Signature" header does not match the account, old or new Etags.
   1160     SYNC_INVALID_SIGNATURE = 6104,
   1161     /// The "Content-length" field for the upload is not a number.
   1162     SYNC_MALFORMED_CONTENT_LENGTH = 6105,
   1163     /// The "Content-length" field for the upload is too big based on the server's terms of service.
   1164     SYNC_EXCESSIVE_CONTENT_LENGTH = 6106,
   1165     /// The server is out of memory to handle the upload. Trying again later may succeed.
   1166     SYNC_OUT_OF_MEMORY_ON_CONTENT_LENGTH = 6107,
   1167     /// The uploaded data does not match the Etag.
   1168     SYNC_INVALID_UPLOAD = 6108,
   1169     /// HTTP server experienced a timeout while awaiting promised payment.
   1170     SYNC_PAYMENT_GENERIC_TIMEOUT = 6109,
   1171     /// Sync could not setup the payment request with its own backend.
   1172     SYNC_PAYMENT_CREATE_BACKEND_ERROR = 6110,
   1173     /// The sync service failed find the backup to be updated in its database.
   1174     SYNC_PREVIOUS_BACKUP_UNKNOWN = 6111,
   1175     /// The "Content-length" field for the upload is missing.
   1176     SYNC_MISSING_CONTENT_LENGTH = 6112,
   1177     /// Sync had problems communicating with its payment backend.
   1178     SYNC_GENERIC_BACKEND_ERROR = 6113,
   1179     /// Sync experienced a timeout communicating with its payment backend.
   1180     SYNC_GENERIC_BACKEND_TIMEOUT = 6114,
   1181     /// The wallet does not implement a version of the exchange protocol that is compatible with the protocol version of the exchange.
   1182     WALLET_EXCHANGE_PROTOCOL_VERSION_INCOMPATIBLE = 7000,
   1183     /// The wallet encountered an unexpected exception.  This is likely a bug in the wallet implementation.
   1184     WALLET_UNEXPECTED_EXCEPTION = 7001,
   1185     /// The wallet received a response from a server, but the response can't be parsed.
   1186     WALLET_RECEIVED_MALFORMED_RESPONSE = 7002,
   1187     /// The wallet tried to make a network request, but it received no response.
   1188     WALLET_NETWORK_ERROR = 7003,
   1189     /// The wallet tried to make a network request, but it was throttled.
   1190     WALLET_HTTP_REQUEST_THROTTLED = 7004,
   1191     /// The wallet made a request to a service, but received an error response it does not know how to handle.
   1192     WALLET_UNEXPECTED_REQUEST_ERROR = 7005,
   1193     /// The denominations offered by the exchange are insufficient.  Likely the exchange is badly configured or not maintained.
   1194     WALLET_EXCHANGE_DENOMINATIONS_INSUFFICIENT = 7006,
   1195     /// The wallet does not support the operation requested by a client.
   1196     WALLET_CORE_API_OPERATION_UNKNOWN = 7007,
   1197     /// The given taler://pay URI is invalid.
   1198     WALLET_INVALID_TALER_PAY_URI = 7008,
   1199     /// The signature on a coin by the exchange's denomination key is invalid after unblinding it.
   1200     WALLET_EXCHANGE_COIN_SIGNATURE_INVALID = 7009,
   1201     /// The wallet core service is not available.
   1202     WALLET_CORE_NOT_AVAILABLE = 7011,
   1203     /// The bank has aborted a withdrawal operation, and thus a withdrawal can't complete.
   1204     WALLET_WITHDRAWAL_OPERATION_ABORTED_BY_BANK = 7012,
   1205     /// An HTTP request made by the wallet timed out.
   1206     WALLET_HTTP_REQUEST_GENERIC_TIMEOUT = 7013,
   1207     /// The order has already been claimed by another wallet.
   1208     WALLET_ORDER_ALREADY_CLAIMED = 7014,
   1209     /// A group of withdrawal operations (typically for the same reserve at the same exchange) has errors and will be tried again later.
   1210     WALLET_WITHDRAWAL_GROUP_INCOMPLETE = 7015,
   1211     /// The signature on a coin by the exchange's denomination key (obtained through the merchant via a reward) is invalid after unblinding it.
   1212     WALLET_REWARD_COIN_SIGNATURE_INVALID = 7016,
   1213     /// The wallet does not implement a version of the bank integration API that is compatible with the version offered by the bank.
   1214     WALLET_BANK_INTEGRATION_PROTOCOL_VERSION_INCOMPATIBLE = 7017,
   1215     /// 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.
   1216     WALLET_CONTRACT_TERMS_BASE_URL_MISMATCH = 7018,
   1217     /// The merchant's signature on the contract terms is invalid.
   1218     WALLET_CONTRACT_TERMS_SIGNATURE_INVALID = 7019,
   1219     /// The contract terms given by the merchant are malformed.
   1220     WALLET_CONTRACT_TERMS_MALFORMED = 7020,
   1221     /// A pending operation failed, and thus the request can't be completed.
   1222     WALLET_PENDING_OPERATION_FAILED = 7021,
   1223     /// A payment was attempted, but the merchant had an internal server error (5xx).
   1224     WALLET_PAY_MERCHANT_SERVER_ERROR = 7022,
   1225     /// The crypto worker failed.
   1226     WALLET_CRYPTO_WORKER_ERROR = 7023,
   1227     /// The crypto worker received a bad request.
   1228     WALLET_CRYPTO_WORKER_BAD_REQUEST = 7024,
   1229     /// A KYC step is required before withdrawal can proceed.
   1230     WALLET_WITHDRAWAL_KYC_REQUIRED = 7025,
   1231     /// The wallet does not have sufficient balance to create a deposit group.
   1232     WALLET_DEPOSIT_GROUP_INSUFFICIENT_BALANCE = 7026,
   1233     /// The wallet does not have sufficient balance to create a peer push payment.
   1234     WALLET_PEER_PUSH_PAYMENT_INSUFFICIENT_BALANCE = 7027,
   1235     /// The wallet does not have sufficient balance to pay for an invoice.
   1236     WALLET_PEER_PULL_PAYMENT_INSUFFICIENT_BALANCE = 7028,
   1237     /// A group of refresh operations has errors and will be tried again later.
   1238     WALLET_REFRESH_GROUP_INCOMPLETE = 7029,
   1239     /// The exchange's self-reported base URL does not match the one that the wallet is using.
   1240     WALLET_EXCHANGE_BASE_URL_MISMATCH = 7030,
   1241     /// The order has already been paid by another wallet.
   1242     WALLET_ORDER_ALREADY_PAID = 7031,
   1243     /// An exchange that is required for some request is currently not available.
   1244     WALLET_EXCHANGE_UNAVAILABLE = 7032,
   1245     /// An exchange entry is still used by the exchange, thus it can't be deleted without purging.
   1246     WALLET_EXCHANGE_ENTRY_USED = 7033,
   1247     /// The wallet database is unavailable and the wallet thus is not operational.
   1248     WALLET_DB_UNAVAILABLE = 7034,
   1249     /// A taler:// URI is malformed and can't be parsed.
   1250     WALLET_TALER_URI_MALFORMED = 7035,
   1251     /// A wallet-core request was cancelled and thus can't provide a response.
   1252     WALLET_CORE_REQUEST_CANCELLED = 7036,
   1253     /// A wallet-core request failed because the user needs to first accept the exchange's terms of service.
   1254     WALLET_EXCHANGE_TOS_NOT_ACCEPTED = 7037,
   1255     /// An exchange entry could not be updated, as the exchange's new details conflict with the new details.
   1256     WALLET_EXCHANGE_ENTRY_UPDATE_CONFLICT = 7038,
   1257     /// The wallet's information about the exchange is outdated.
   1258     WALLET_EXCHANGE_ENTRY_OUTDATED = 7039,
   1259     /// The merchant needs to do KYC first, the payment could not be completed.
   1260     WALLET_PAY_MERCHANT_KYC_MISSING = 7040,
   1261     /// A peer-pull-debit transaction was aborted because the exchange reported the purse as gone.
   1262     WALLET_PEER_PULL_DEBIT_PURSE_GONE = 7041,
   1263     /// A transaction was aborted on explicit request by the user.
   1264     WALLET_TRANSACTION_ABORTED_BY_USER = 7042,
   1265     /// A transaction was abandoned on explicit request by the user.
   1266     WALLET_TRANSACTION_ABANDONED_BY_USER = 7043,
   1267     /// A payment was attempted, but the merchant claims the order is gone (likely expired).
   1268     WALLET_PAY_MERCHANT_ORDER_GONE = 7044,
   1269     /// The wallet does not have an entry for the requested exchange.
   1270     WALLET_EXCHANGE_ENTRY_NOT_FOUND = 7045,
   1271     /// The wallet is not able to process the request due to the transaction's state.
   1272     WALLET_REQUEST_TRANSACTION_STATE_UNSUPPORTED = 7046,
   1273     /// A transaction could not be processed due to an unrecoverable protocol violation.
   1274     WALLET_TRANSACTION_PROTOCOL_VIOLATION = 7047,
   1275     /// A parameter in the request is malformed or missing.
   1276     WALLET_CORE_API_BAD_REQUEST = 7048,
   1277     /// The order could not be found. Maybe the merchant deleted it.
   1278     WALLET_MERCHANT_ORDER_NOT_FOUND = 7049,
   1279     /// We encountered a timeout with our payment backend.
   1280     ANASTASIS_GENERIC_BACKEND_TIMEOUT = 8000,
   1281     /// The backend requested payment, but the request is malformed.
   1282     ANASTASIS_GENERIC_INVALID_PAYMENT_REQUEST = 8001,
   1283     /// The backend got an unexpected reply from the payment processor.
   1284     ANASTASIS_GENERIC_BACKEND_ERROR = 8002,
   1285     /// The "Content-length" field for the upload is missing.
   1286     ANASTASIS_GENERIC_MISSING_CONTENT_LENGTH = 8003,
   1287     /// The "Content-length" field for the upload is malformed.
   1288     ANASTASIS_GENERIC_MALFORMED_CONTENT_LENGTH = 8004,
   1289     /// The backend failed to setup an order with the payment processor.
   1290     ANASTASIS_GENERIC_ORDER_CREATE_BACKEND_ERROR = 8005,
   1291     /// The backend was not authorized to check for payment with the payment processor.
   1292     ANASTASIS_GENERIC_PAYMENT_CHECK_UNAUTHORIZED = 8006,
   1293     /// The backend could not check payment status with the payment processor.
   1294     ANASTASIS_GENERIC_PAYMENT_CHECK_START_FAILED = 8007,
   1295     /// The Anastasis provider could not be reached.
   1296     ANASTASIS_GENERIC_PROVIDER_UNREACHABLE = 8008,
   1297     /// HTTP server experienced a timeout while awaiting promised payment.
   1298     ANASTASIS_PAYMENT_GENERIC_TIMEOUT = 8009,
   1299     /// The key share is unknown to the provider.
   1300     ANASTASIS_TRUTH_UNKNOWN = 8108,
   1301     /// The authorization method used for the key share is no longer supported by the provider.
   1302     ANASTASIS_TRUTH_AUTHORIZATION_METHOD_NO_LONGER_SUPPORTED = 8109,
   1303     /// The client needs to respond to the challenge.
   1304     ANASTASIS_TRUTH_CHALLENGE_RESPONSE_REQUIRED = 8110,
   1305     /// The client's response to the challenge was invalid.
   1306     ANASTASIS_TRUTH_CHALLENGE_FAILED = 8111,
   1307     /// The backend is not aware of having issued the provided challenge code. Either this is the wrong code, or it has expired.
   1308     ANASTASIS_TRUTH_CHALLENGE_UNKNOWN = 8112,
   1309     /// The backend failed to initiate the authorization process.
   1310     ANASTASIS_TRUTH_AUTHORIZATION_START_FAILED = 8114,
   1311     /// The authorization succeeded, but the key share is no longer available.
   1312     ANASTASIS_TRUTH_KEY_SHARE_GONE = 8115,
   1313     /// The backend forgot the order we asked the client to pay for
   1314     ANASTASIS_TRUTH_ORDER_DISAPPEARED = 8116,
   1315     /// The backend itself reported a bad exchange interaction.
   1316     ANASTASIS_TRUTH_BACKEND_EXCHANGE_BAD = 8117,
   1317     /// The backend reported a payment status we did not expect.
   1318     ANASTASIS_TRUTH_UNEXPECTED_PAYMENT_STATUS = 8118,
   1319     /// The backend failed to setup the order for payment.
   1320     ANASTASIS_TRUTH_PAYMENT_CREATE_BACKEND_ERROR = 8119,
   1321     /// The decryption of the key share failed with the provided key.
   1322     ANASTASIS_TRUTH_DECRYPTION_FAILED = 8120,
   1323     /// The request rate is too high. The server is refusing requests to guard against brute-force attacks.
   1324     ANASTASIS_TRUTH_RATE_LIMITED = 8121,
   1325     /// A request to issue a challenge is not valid for this authentication method.
   1326     ANASTASIS_TRUTH_CHALLENGE_WRONG_METHOD = 8123,
   1327     /// The backend failed to store the key share because the UUID is already in use.
   1328     ANASTASIS_TRUTH_UPLOAD_UUID_EXISTS = 8150,
   1329     /// The backend failed to store the key share because the authorization method is not supported.
   1330     ANASTASIS_TRUTH_UPLOAD_METHOD_NOT_SUPPORTED = 8151,
   1331     /// The provided phone number is not an acceptable number.
   1332     ANASTASIS_SMS_PHONE_INVALID = 8200,
   1333     /// Failed to run the SMS transmission helper process.
   1334     ANASTASIS_SMS_HELPER_EXEC_FAILED = 8201,
   1335     /// Provider failed to send SMS. Helper terminated with a non-successful result.
   1336     ANASTASIS_SMS_HELPER_COMMAND_FAILED = 8202,
   1337     /// The provided email address is not an acceptable address.
   1338     ANASTASIS_EMAIL_INVALID = 8210,
   1339     /// Failed to run the E-mail transmission helper process.
   1340     ANASTASIS_EMAIL_HELPER_EXEC_FAILED = 8211,
   1341     /// Provider failed to send E-mail. Helper terminated with a non-successful result.
   1342     ANASTASIS_EMAIL_HELPER_COMMAND_FAILED = 8212,
   1343     /// The provided postal address is not an acceptable address.
   1344     ANASTASIS_POST_INVALID = 8220,
   1345     /// Failed to run the mail transmission helper process.
   1346     ANASTASIS_POST_HELPER_EXEC_FAILED = 8221,
   1347     /// Provider failed to send mail. Helper terminated with a non-successful result.
   1348     ANASTASIS_POST_HELPER_COMMAND_FAILED = 8222,
   1349     /// The provided IBAN address is not an acceptable IBAN.
   1350     ANASTASIS_IBAN_INVALID = 8230,
   1351     /// The provider has not yet received the IBAN wire transfer authorizing the disclosure of the key share.
   1352     ANASTASIS_IBAN_MISSING_TRANSFER = 8231,
   1353     /// The backend did not find a TOTP key in the data provided.
   1354     ANASTASIS_TOTP_KEY_MISSING = 8240,
   1355     /// The key provided does not satisfy the format restrictions for an Anastasis TOTP key.
   1356     ANASTASIS_TOTP_KEY_INVALID = 8241,
   1357     /// The given if-none-match header is malformed.
   1358     ANASTASIS_POLICY_BAD_IF_NONE_MATCH = 8301,
   1359     /// The server is out of memory to handle the upload. Trying again later may succeed.
   1360     ANASTASIS_POLICY_OUT_OF_MEMORY_ON_CONTENT_LENGTH = 8304,
   1361     /// The signature provided in the "Anastasis-Policy-Signature" header is malformed or missing.
   1362     ANASTASIS_POLICY_BAD_SIGNATURE = 8305,
   1363     /// The given if-match header is malformed.
   1364     ANASTASIS_POLICY_BAD_IF_MATCH = 8306,
   1365     /// The uploaded data does not match the Etag.
   1366     ANASTASIS_POLICY_INVALID_UPLOAD = 8307,
   1367     /// The provider is unaware of the requested policy.
   1368     ANASTASIS_POLICY_NOT_FOUND = 8350,
   1369     /// The given action is invalid for the current state of the reducer.
   1370     ANASTASIS_REDUCER_ACTION_INVALID = 8400,
   1371     /// The given state of the reducer is invalid.
   1372     ANASTASIS_REDUCER_STATE_INVALID = 8401,
   1373     /// The given input to the reducer is invalid.
   1374     ANASTASIS_REDUCER_INPUT_INVALID = 8402,
   1375     /// The selected authentication method does not work for the Anastasis provider.
   1376     ANASTASIS_REDUCER_AUTHENTICATION_METHOD_NOT_SUPPORTED = 8403,
   1377     /// The given input and action do not work for the current state.
   1378     ANASTASIS_REDUCER_INPUT_INVALID_FOR_STATE = 8404,
   1379     /// We experienced an unexpected failure interacting with the backend.
   1380     ANASTASIS_REDUCER_BACKEND_FAILURE = 8405,
   1381     /// The contents of a resource file did not match our expectations.
   1382     ANASTASIS_REDUCER_RESOURCE_MALFORMED = 8406,
   1383     /// A required resource file is missing.
   1384     ANASTASIS_REDUCER_RESOURCE_MISSING = 8407,
   1385     /// An input did not match the regular expression.
   1386     ANASTASIS_REDUCER_INPUT_REGEX_FAILED = 8408,
   1387     /// An input did not match the custom validation logic.
   1388     ANASTASIS_REDUCER_INPUT_VALIDATION_FAILED = 8409,
   1389     /// 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.
   1390     ANASTASIS_REDUCER_POLICY_LOOKUP_FAILED = 8410,
   1391     /// Anastasis provider reported a fatal failure.
   1392     ANASTASIS_REDUCER_BACKUP_PROVIDER_FAILED = 8411,
   1393     /// Anastasis provider failed to respond to the configuration request.
   1394     ANASTASIS_REDUCER_PROVIDER_CONFIG_FAILED = 8412,
   1395     /// The policy we downloaded is malformed. Must have been a client error while creating the backup.
   1396     ANASTASIS_REDUCER_POLICY_MALFORMED = 8413,
   1397     /// We failed to obtain the policy, likely due to a network issue.
   1398     ANASTASIS_REDUCER_NETWORK_FAILED = 8414,
   1399     /// The recovered secret did not match the required syntax.
   1400     ANASTASIS_REDUCER_SECRET_MALFORMED = 8415,
   1401     /// The challenge data provided is too large for the available providers.
   1402     ANASTASIS_REDUCER_CHALLENGE_DATA_TOO_BIG = 8416,
   1403     /// The provided core secret is too large for some of the providers.
   1404     ANASTASIS_REDUCER_SECRET_TOO_BIG = 8417,
   1405     /// The provider returned in invalid configuration.
   1406     ANASTASIS_REDUCER_PROVIDER_INVALID_CONFIG = 8418,
   1407     /// The reducer encountered an internal error, likely a bug that needs to be reported.
   1408     ANASTASIS_REDUCER_INTERNAL_ERROR = 8419,
   1409     /// The reducer already synchronized with all providers.
   1410     ANASTASIS_REDUCER_PROVIDERS_ALREADY_SYNCED = 8420,
   1411     /// 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.
   1412     DONAU_GENERIC_KEYS_MISSING = 8607,
   1413     /// The signature of the charity key is not valid.
   1414     DONAU_CHARITY_SIGNATURE_INVALID = 8608,
   1415     /// The charity is unknown.
   1416     DONAU_CHARITY_NOT_FOUND = 8609,
   1417     /// The donation amount specified in the request exceeds the limit of the charity.
   1418     DONAU_EXCEEDING_DONATION_LIMIT = 8610,
   1419     /// The Donau is not aware of the donation unit requested for the operation.
   1420     DONAU_GENERIC_DONATION_UNIT_UNKNOWN = 8611,
   1421     /// The Donau failed to talk to the process responsible for its private donation unit keys or the helpers had no donation units (properly) configured.
   1422     DONAU_DONATION_UNIT_HELPER_UNAVAILABLE = 8612,
   1423     /// The Donau failed to talk to the process responsible for its private signing keys.
   1424     DONAU_SIGNKEY_HELPER_UNAVAILABLE = 8613,
   1425     /// The response from the online signing key helper process was malformed.
   1426     DONAU_SIGNKEY_HELPER_BUG = 8614,
   1427     /// The number of segments included in the URI does not match the number of segments expected by the endpoint.
   1428     DONAU_GENERIC_WRONG_NUMBER_OF_SEGMENTS = 8615,
   1429     /// The signature of the donation receipt is not valid.
   1430     DONAU_DONATION_RECEIPT_SIGNATURE_INVALID = 8616,
   1431     /// The client reused a unique donor identifier nonce, which is not allowed.
   1432     DONAU_DONOR_IDENTIFIER_NONCE_REUSE = 8617,
   1433     /// A charity with the same public key is already registered.
   1434     DONAU_CHARITY_PUB_EXISTS = 8618,
   1435     /// A generic error happened in the LibEuFin nexus.  See the enclose details JSON for more information.
   1436     LIBEUFIN_NEXUS_GENERIC_ERROR = 9000,
   1437     /// An uncaught exception happened in the LibEuFin nexus service.
   1438     LIBEUFIN_NEXUS_UNCAUGHT_EXCEPTION = 9001,
   1439     /// A generic error happened in the LibEuFin sandbox.  See the enclose details JSON for more information.
   1440     LIBEUFIN_SANDBOX_GENERIC_ERROR = 9500,
   1441     /// An uncaught exception happened in the LibEuFin sandbox service.
   1442     LIBEUFIN_SANDBOX_UNCAUGHT_EXCEPTION = 9501,
   1443     /// This validation method is not supported by the service.
   1444     TALDIR_METHOD_NOT_SUPPORTED = 9600,
   1445     /// Number of allowed attempts for initiating a challenge exceeded.
   1446     TALDIR_REGISTER_RATE_LIMITED = 9601,
   1447     /// The client is unknown or unauthorized.
   1448     CHALLENGER_GENERIC_CLIENT_UNKNOWN = 9750,
   1449     /// The client is not authorized to use the given redirect URI.
   1450     CHALLENGER_GENERIC_CLIENT_FORBIDDEN_BAD_REDIRECT_URI = 9751,
   1451     /// The service failed to execute its helper process to send the challenge.
   1452     CHALLENGER_HELPER_EXEC_FAILED = 9752,
   1453     /// The grant is unknown to the service (it could also have expired).
   1454     CHALLENGER_GRANT_UNKNOWN = 9753,
   1455     /// The code given is not even well-formed.
   1456     CHALLENGER_CLIENT_FORBIDDEN_BAD_CODE = 9754,
   1457     /// The service is not aware of the referenced validation process.
   1458     CHALLENGER_GENERIC_VALIDATION_UNKNOWN = 9755,
   1459     /// The code given is not valid.
   1460     CHALLENGER_CLIENT_FORBIDDEN_INVALID_CODE = 9756,
   1461     /// Too many attempts have been made, validation is temporarily disabled for this address.
   1462     CHALLENGER_TOO_MANY_ATTEMPTS = 9757,
   1463     /// The PIN code provided is incorrect.
   1464     CHALLENGER_INVALID_PIN = 9758,
   1465     /// The token cannot be valid as no address was ever provided by the client.
   1466     CHALLENGER_MISSING_ADDRESS = 9759,
   1467     /// The client is not allowed to change the address being validated.
   1468     CHALLENGER_CLIENT_FORBIDDEN_READ_ONLY = 9760,
   1469     /// End of error code range.
   1470     END = 9999,
   1471 }
   1472 
   1473 impl ErrorCode {
   1474     pub fn metadata(&self) -> (u16, &'static str) {
   1475         use ErrorCode::*;
   1476         match self {
   1477             NONE => (0, "Special code to indicate success (no error)."),
   1478             INVALID => (
   1479                 0,
   1480                 "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.",
   1481             ),
   1482             GENERIC_CLIENT_INTERNAL_ERROR => (
   1483                 0,
   1484                 "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.",
   1485             ),
   1486             GENERIC_CLIENT_UNSUPPORTED_PROTOCOL_VERSION => (
   1487                 0,
   1488                 "The client does not support the protocol version advertised by the server.",
   1489             ),
   1490             GENERIC_INVALID_RESPONSE => (
   1491                 0,
   1492                 "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.",
   1493             ),
   1494             GENERIC_TIMEOUT => (
   1495                 0,
   1496                 "The operation timed out. Trying again might help. Check the network connection.",
   1497             ),
   1498             GENERIC_VERSION_MALFORMED => (
   1499                 0,
   1500                 "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.",
   1501             ),
   1502             GENERIC_REPLY_MALFORMED => (
   1503                 0,
   1504                 "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.",
   1505             ),
   1506             GENERIC_CONFIGURATION_INVALID => (
   1507                 0,
   1508                 "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.",
   1509             ),
   1510             GENERIC_UNEXPECTED_REQUEST_ERROR => (
   1511                 0,
   1512                 "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.",
   1513             ),
   1514             GENERIC_TOKEN_PERMISSION_INSUFFICIENT => (
   1515                 403,
   1516                 "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.",
   1517             ),
   1518             GENERIC_METHOD_INVALID => (
   1519                 405,
   1520                 "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.",
   1521             ),
   1522             GENERIC_ENDPOINT_UNKNOWN => (
   1523                 404,
   1524                 "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.",
   1525             ),
   1526             GENERIC_JSON_INVALID => (
   1527                 400,
   1528                 "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.",
   1529             ),
   1530             GENERIC_HTTP_HEADERS_MALFORMED => (
   1531                 400,
   1532                 "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.",
   1533             ),
   1534             GENERIC_PAYTO_URI_MALFORMED => (
   1535                 400,
   1536                 "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.",
   1537             ),
   1538             GENERIC_PARAMETER_MISSING => (
   1539                 400,
   1540                 "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.",
   1541             ),
   1542             GENERIC_PARAMETER_MALFORMED => (
   1543                 400,
   1544                 "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.",
   1545             ),
   1546             GENERIC_RESERVE_PUB_MALFORMED => (400, "The reserve public key was malformed."),
   1547             GENERIC_COMPRESSION_INVALID => (
   1548                 400,
   1549                 "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.",
   1550             ),
   1551             GENERIC_PATH_SEGMENT_MALFORMED => (
   1552                 400,
   1553                 "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.",
   1554             ),
   1555             GENERIC_CURRENCY_MISMATCH => (
   1556                 400,
   1557                 "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.",
   1558             ),
   1559             GENERIC_URI_TOO_LONG => (
   1560                 414,
   1561                 "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.",
   1562             ),
   1563             GENERIC_UPLOAD_EXCEEDS_LIMIT => (
   1564                 413,
   1565                 "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.",
   1566             ),
   1567             GENERIC_PARAMETER_EXTRA => (
   1568                 400,
   1569                 "A parameter in the request was given that must not be present. 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.",
   1570             ),
   1571             GENERIC_UNAUTHORIZED => (
   1572                 401,
   1573                 "The service refused the request due to lack of proper authorization. Accessing this endpoint requires an access token from the account owner.",
   1574             ),
   1575             GENERIC_TOKEN_UNKNOWN => (
   1576                 401,
   1577                 "The service refused the request as the given authorization token is unknown. You should request a valid access token from the account owner.",
   1578             ),
   1579             GENERIC_TOKEN_EXPIRED => (
   1580                 401,
   1581                 "The service refused the request as the given authorization token expired. You should request a fresh authorization token from the account owner.",
   1582             ),
   1583             GENERIC_TOKEN_MALFORMED => (
   1584                 401,
   1585                 "The service refused the request as the given authorization token is invalid or malformed. You should check that you have the right credentials.",
   1586             ),
   1587             GENERIC_FORBIDDEN => (
   1588                 403,
   1589                 "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.",
   1590             ),
   1591             GENERIC_DB_SETUP_FAILED => (
   1592                 500,
   1593                 "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.",
   1594             ),
   1595             GENERIC_DB_START_FAILED => (
   1596                 500,
   1597                 "The service encountered an error event to just start the database transaction. The system administrator should check that the database is running.",
   1598             ),
   1599             GENERIC_DB_STORE_FAILED => (
   1600                 500,
   1601                 "The service failed to store information in its database. The system administrator should check that the database is running and review the service logs.",
   1602             ),
   1603             GENERIC_DB_FETCH_FAILED => (
   1604                 500,
   1605                 "The service failed to fetch information from its database. The system administrator should check that the database is running and review the service logs.",
   1606             ),
   1607             GENERIC_DB_COMMIT_FAILED => (
   1608                 500,
   1609                 "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.",
   1610             ),
   1611             GENERIC_DB_SOFT_FAILURE => (
   1612                 500,
   1613                 "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.",
   1614             ),
   1615             GENERIC_DB_INVARIANT_FAILURE => (
   1616                 500,
   1617                 "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.",
   1618             ),
   1619             GENERIC_INTERNAL_INVARIANT_FAILURE => (
   1620                 500,
   1621                 "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.",
   1622             ),
   1623             GENERIC_FAILED_COMPUTE_JSON_HASH => (
   1624                 500,
   1625                 "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.",
   1626             ),
   1627             GENERIC_FAILED_COMPUTE_AMOUNT => (
   1628                 500,
   1629                 "The service could not compute an amount. Check if you are using the latest available version and/or file a report with the developers.",
   1630             ),
   1631             GENERIC_PARSER_OUT_OF_MEMORY => (
   1632                 500,
   1633                 "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.",
   1634             ),
   1635             GENERIC_ALLOCATION_FAILURE => (
   1636                 500,
   1637                 "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.",
   1638             ),
   1639             GENERIC_JSON_ALLOCATION_FAILURE => (
   1640                 500,
   1641                 "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.",
   1642             ),
   1643             GENERIC_CURL_ALLOCATION_FAILURE => (
   1644                 500,
   1645                 "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.",
   1646             ),
   1647             GENERIC_FAILED_TO_LOAD_TEMPLATE => (
   1648                 406,
   1649                 "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.",
   1650             ),
   1651             GENERIC_FAILED_TO_EXPAND_TEMPLATE => (
   1652                 500,
   1653                 "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.",
   1654             ),
   1655             GENERIC_FEATURE_NOT_IMPLEMENTED => (
   1656                 501,
   1657                 "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.",
   1658             ),
   1659             GENERIC_OS_RESOURCE_ALLOCATION_FAILURE => (
   1660                 500,
   1661                 "The operating system failed to allocate required resources. Restarting services periodically can help, especially if Postgres is using excessive amounts of memory. Check with the system administrator to investigate.",
   1662             ),
   1663             EXCHANGE_GENERIC_BAD_CONFIGURATION => {
   1664                 (500, "Exchange is badly configured and thus cannot operate.")
   1665             }
   1666             EXCHANGE_GENERIC_OPERATION_UNKNOWN => {
   1667                 (404, "Operation specified unknown for this endpoint.")
   1668             }
   1669             EXCHANGE_GENERIC_WRONG_NUMBER_OF_SEGMENTS => (
   1670                 404,
   1671                 "The number of segments included in the URI does not match the number of segments expected by the endpoint.",
   1672             ),
   1673             EXCHANGE_GENERIC_COIN_CONFLICTING_DENOMINATION_KEY => (
   1674                 409,
   1675                 "The same coin was already used with a different denomination previously.",
   1676             ),
   1677             EXCHANGE_GENERIC_COINS_INVALID_COIN_PUB => (
   1678                 400,
   1679                 "The public key of given to a \"/coins/\" endpoint of the exchange was malformed.",
   1680             ),
   1681             EXCHANGE_GENERIC_DENOMINATION_KEY_UNKNOWN => (
   1682                 404,
   1683                 "The exchange is not aware of the denomination key the wallet requested for the operation.",
   1684             ),
   1685             EXCHANGE_DENOMINATION_SIGNATURE_INVALID => (
   1686                 403,
   1687                 "The signature of the denomination key over the coin is not valid.",
   1688             ),
   1689             EXCHANGE_GENERIC_KEYS_MISSING => (
   1690                 503,
   1691                 "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.",
   1692             ),
   1693             EXCHANGE_GENERIC_DENOMINATION_VALIDITY_IN_FUTURE => (
   1694                 412,
   1695                 "Validity period of the denomination lies in the future.",
   1696             ),
   1697             EXCHANGE_GENERIC_DENOMINATION_EXPIRED => (
   1698                 410,
   1699                 "Denomination key of the coin is past its expiration time for the requested operation.",
   1700             ),
   1701             EXCHANGE_GENERIC_DENOMINATION_REVOKED => {
   1702                 (410, "Denomination key of the coin has been revoked.")
   1703             }
   1704             EXCHANGE_GENERIC_SECMOD_TIMEOUT => (
   1705                 500,
   1706                 "An operation where the exchange interacted with a security module timed out.",
   1707             ),
   1708             EXCHANGE_GENERIC_INSUFFICIENT_FUNDS => (
   1709                 409,
   1710                 "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\".",
   1711             ),
   1712             EXCHANGE_GENERIC_COIN_HISTORY_COMPUTATION_FAILED => (
   1713                 500,
   1714                 "The exchange had an internal error reconstructing the transaction history of the coin that was being processed.",
   1715             ),
   1716             EXCHANGE_GENERIC_HISTORY_DB_ERROR_INSUFFICIENT_FUNDS => (
   1717                 500,
   1718                 "The exchange failed to obtain the transaction history of the given coin from the database while generating an insufficient funds errors.",
   1719             ),
   1720             EXCHANGE_GENERIC_COIN_CONFLICTING_AGE_HASH => (
   1721                 409,
   1722                 "The same coin was already used with a different age hash previously.",
   1723             ),
   1724             EXCHANGE_GENERIC_INVALID_DENOMINATION_CIPHER_FOR_OPERATION => (
   1725                 400,
   1726                 "The requested operation is not valid for the cipher used by the selected denomination.",
   1727             ),
   1728             EXCHANGE_GENERIC_CIPHER_MISMATCH => (
   1729                 400,
   1730                 "The provided arguments for the operation use inconsistent ciphers.",
   1731             ),
   1732             EXCHANGE_GENERIC_NEW_DENOMS_ARRAY_SIZE_EXCESSIVE => (
   1733                 400,
   1734                 "The number of denominations specified in the request exceeds the limit of the exchange.",
   1735             ),
   1736             EXCHANGE_GENERIC_COIN_UNKNOWN => (404, "The coin is not known to the exchange (yet)."),
   1737             EXCHANGE_GENERIC_CLOCK_SKEW => (
   1738                 400,
   1739                 "The time at the server is too far off from the time specified in the request. Most likely the client system time is wrong.",
   1740             ),
   1741             EXCHANGE_GENERIC_AMOUNT_EXCEEDS_DENOMINATION_VALUE => (
   1742                 400,
   1743                 "The specified amount for the coin is higher than the value of the denomination of the coin.",
   1744             ),
   1745             EXCHANGE_GENERIC_GLOBAL_FEES_MISSING => (
   1746                 500,
   1747                 "The exchange was not properly configured with global fees.",
   1748             ),
   1749             EXCHANGE_GENERIC_WIRE_FEES_MISSING => (
   1750                 500,
   1751                 "The exchange was not properly configured with wire fees.",
   1752             ),
   1753             EXCHANGE_GENERIC_PURSE_PUB_MALFORMED => (400, "The purse public key was malformed."),
   1754             EXCHANGE_GENERIC_PURSE_UNKNOWN => (404, "The purse is unknown."),
   1755             EXCHANGE_GENERIC_PURSE_EXPIRED => (410, "The purse has expired."),
   1756             EXCHANGE_GENERIC_RESERVE_UNKNOWN => (
   1757                 404,
   1758                 "The exchange has no information about the \"reserve_pub\" that was given.",
   1759             ),
   1760             EXCHANGE_GENERIC_KYC_REQUIRED => (
   1761                 451,
   1762                 "The exchange is not allowed to proceed with the operation until the client has satisfied a KYC check.",
   1763             ),
   1764             EXCHANGE_PURSE_DEPOSIT_COIN_CONFLICTING_ATTEST_VS_AGE_COMMITMENT => (
   1765                 400,
   1766                 "Inconsistency between provided age commitment and attest: either none or both must be provided",
   1767             ),
   1768             EXCHANGE_PURSE_DEPOSIT_COIN_AGE_ATTESTATION_FAILURE => (
   1769                 400,
   1770                 "The provided attestation for the minimum age couldn't be verified by the exchange.",
   1771             ),
   1772             EXCHANGE_GENERIC_PURSE_DELETED => (410, "The purse was deleted."),
   1773             EXCHANGE_GENERIC_AML_OFFICER_PUB_MALFORMED => (
   1774                 400,
   1775                 "The public key of the AML officer in the URL was malformed.",
   1776             ),
   1777             EXCHANGE_GENERIC_AML_OFFICER_GET_SIGNATURE_INVALID => (
   1778                 403,
   1779                 "The signature affirming the GET request of the AML officer is invalid.",
   1780             ),
   1781             EXCHANGE_GENERIC_AML_OFFICER_ACCESS_DENIED => (
   1782                 403,
   1783                 "The specified AML officer does not have access at this time.",
   1784             ),
   1785             EXCHANGE_GENERIC_AML_PENDING => (
   1786                 451,
   1787                 "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.",
   1788             ),
   1789             EXCHANGE_GENERIC_AML_FROZEN => (
   1790                 451,
   1791                 "The requested operation is denied as the account was frozen on suspicion of money laundering. Please contact the exchange operator.",
   1792             ),
   1793             EXCHANGE_GENERIC_KYC_CONVERTER_FAILED => (
   1794                 500,
   1795                 "The exchange failed to start a KYC attribute conversion helper process. It is likely configured incorrectly.",
   1796             ),
   1797             EXCHANGE_GENERIC_KYC_FAILED => (
   1798                 500,
   1799                 "The KYC operation failed. This could be because the KYC provider rejected the KYC data provided, or because the user aborted the KYC process.",
   1800             ),
   1801             EXCHANGE_GENERIC_KYC_FALLBACK_FAILED => (
   1802                 500,
   1803                 "A fallback measure for a KYC operation failed. This is a bug. Users should contact the exchange operator.",
   1804             ),
   1805             EXCHANGE_GENERIC_KYC_FALLBACK_UNKNOWN => (
   1806                 500,
   1807                 "The specified fallback measure for a KYC operation is unknown. This is a bug. Users should contact the exchange operator.",
   1808             ),
   1809             EXCHANGE_GENERIC_BANK_ACCOUNT_UNKNOWN => (
   1810                 404,
   1811                 "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.",
   1812             ),
   1813             EXCHANGE_GENERIC_AML_PROGRAM_RECURSION_DETECTED => (
   1814                 500,
   1815                 "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.",
   1816             ),
   1817             EXCHANGE_GENERIC_KYC_SANCTION_LIST_CHECK_FAILED => (
   1818                 500,
   1819                 "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.",
   1820             ),
   1821             EXCHANGE_GENERIC_TYPST_TEMPLATE_FAILURE => (
   1822                 500,
   1823                 "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.",
   1824             ),
   1825             EXCHANGE_GENERIC_PDFTK_FAILURE => (
   1826                 500,
   1827                 "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.",
   1828             ),
   1829             EXCHANGE_GENERIC_TYPST_CRASH => (
   1830                 500,
   1831                 "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.",
   1832             ),
   1833             EXCHANGE_GENERIC_PDFTK_CRASH => (
   1834                 500,
   1835                 "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.",
   1836             ),
   1837             EXCHANGE_GENERIC_NO_TYPST_OR_PDFTK => (
   1838                 501,
   1839                 "One of the binaries needed to generate the PDF is not installed. If this feature is required, the system administrator should make sure Typst and pdftk are both installed.",
   1840             ),
   1841             EXCHANGE_GENERIC_TARGET_ACCOUNT_UNKNOWN => (
   1842                 404,
   1843                 "The exchange is not aware of the given target account. The specified account is not a customer of this service.",
   1844             ),
   1845             EXCHANGE_DEPOSITS_GET_NOT_FOUND => (
   1846                 404,
   1847                 "The exchange did not find information about the specified transaction in the database.",
   1848             ),
   1849             EXCHANGE_DEPOSITS_GET_INVALID_H_WIRE => (
   1850                 400,
   1851                 "The wire hash of given to a \"/deposits/\" handler was malformed.",
   1852             ),
   1853             EXCHANGE_DEPOSITS_GET_INVALID_MERCHANT_PUB => (
   1854                 400,
   1855                 "The merchant key of given to a \"/deposits/\" handler was malformed.",
   1856             ),
   1857             EXCHANGE_DEPOSITS_GET_INVALID_H_CONTRACT_TERMS => (
   1858                 400,
   1859                 "The hash of the contract terms given to a \"/deposits/\" handler was malformed.",
   1860             ),
   1861             EXCHANGE_DEPOSITS_GET_INVALID_COIN_PUB => (
   1862                 400,
   1863                 "The coin public key of given to a \"/deposits/\" handler was malformed.",
   1864             ),
   1865             EXCHANGE_DEPOSITS_GET_INVALID_SIGNATURE_BY_EXCHANGE => (
   1866                 0,
   1867                 "The signature returned by the exchange in a /deposits/ request was malformed.",
   1868             ),
   1869             EXCHANGE_DEPOSITS_GET_MERCHANT_SIGNATURE_INVALID => {
   1870                 (403, "The signature of the merchant is invalid.")
   1871             }
   1872             EXCHANGE_DEPOSITS_POLICY_NOT_ACCEPTED => {
   1873                 (400, "The provided policy data was not accepted")
   1874             }
   1875             EXCHANGE_WITHDRAW_INSUFFICIENT_FUNDS => (
   1876                 409,
   1877                 "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.",
   1878             ),
   1879             EXCHANGE_AGE_WITHDRAW_INSUFFICIENT_FUNDS => (
   1880                 409,
   1881                 "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.",
   1882             ),
   1883             EXCHANGE_WITHDRAW_AMOUNT_FEE_OVERFLOW => (
   1884                 500,
   1885                 "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.",
   1886             ),
   1887             EXCHANGE_WITHDRAW_SIGNATURE_FAILED => (
   1888                 500,
   1889                 "The exchange failed to create the signature using the denomination key.",
   1890             ),
   1891             EXCHANGE_WITHDRAW_RESERVE_SIGNATURE_INVALID => {
   1892                 (403, "The signature of the reserve is not valid.")
   1893             }
   1894             EXCHANGE_RESERVE_HISTORY_ERROR_INSUFFICIENT_FUNDS => (
   1895                 500,
   1896                 "When computing the reserve history, we ended up with a negative overall balance, which should be impossible.",
   1897             ),
   1898             EXCHANGE_GET_RESERVE_HISTORY_ERROR_INSUFFICIENT_BALANCE => (
   1899                 409,
   1900                 "The reserve did not have sufficient funds in it to pay for a full reserve history statement.",
   1901             ),
   1902             EXCHANGE_WITHDRAW_DENOMINATION_KEY_LOST => (
   1903                 410,
   1904                 "Withdraw period of the coin to be withdrawn is in the past.",
   1905             ),
   1906             EXCHANGE_WITHDRAW_UNBLIND_FAILURE => {
   1907                 (0, "The client failed to unblind the blind signature.")
   1908             }
   1909             EXCHANGE_WITHDRAW_NONCE_REUSE => (
   1910                 409,
   1911                 "The client reused a withdraw nonce, which is not allowed.",
   1912             ),
   1913             EXCHANGE_WITHDRAW_COMMITMENT_UNKNOWN => (
   1914                 400,
   1915                 "The client provided an unknown commitment for an age-withdraw request.",
   1916             ),
   1917             EXCHANGE_WITHDRAW_AMOUNT_OVERFLOW => (
   1918                 500,
   1919                 "The total sum of amounts from the denominations did overflow.",
   1920             ),
   1921             EXCHANGE_AGE_WITHDRAW_AMOUNT_INCORRECT => (
   1922                 400,
   1923                 "The total sum of value and fees from the denominations differs from the committed amount with fees.",
   1924             ),
   1925             EXCHANGE_WITHDRAW_REVEAL_INVALID_HASH => (
   1926                 400,
   1927                 "The original commitment differs from the calculated hash",
   1928             ),
   1929             EXCHANGE_WITHDRAW_MAXIMUM_AGE_TOO_LARGE => (
   1930                 409,
   1931                 "The maximum age in the commitment is too large for the reserve",
   1932             ),
   1933             EXCHANGE_WITHDRAW_IDEMPOTENT_PLANCHET => (
   1934                 400,
   1935                 "The withdraw operation included the same planchet more than once. This is not allowed.",
   1936             ),
   1937             EXCHANGE_DEPOSIT_COIN_SIGNATURE_INVALID => (
   1938                 403,
   1939                 "The signature made by the coin over the deposit permission is not valid.",
   1940             ),
   1941             EXCHANGE_DEPOSIT_CONFLICTING_CONTRACT => (
   1942                 409,
   1943                 "The same coin was already deposited for the same merchant and contract with other details.",
   1944             ),
   1945             EXCHANGE_DEPOSIT_NEGATIVE_VALUE_AFTER_FEE => (
   1946                 400,
   1947                 "The stated value of the coin after the deposit fee is subtracted would be negative.",
   1948             ),
   1949             EXCHANGE_DEPOSIT_REFUND_DEADLINE_AFTER_WIRE_DEADLINE => (
   1950                 400,
   1951                 "The stated refund deadline is after the wire deadline.",
   1952             ),
   1953             EXCHANGE_DEPOSIT_WIRE_DEADLINE_IS_NEVER => (
   1954                 400,
   1955                 "The stated wire deadline is \"never\", which makes no sense.",
   1956             ),
   1957             EXCHANGE_DEPOSIT_INVALID_WIRE_FORMAT_JSON => (
   1958                 400,
   1959                 "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.",
   1960             ),
   1961             EXCHANGE_DEPOSIT_INVALID_WIRE_FORMAT_CONTRACT_HASH_CONFLICT => (
   1962                 400,
   1963                 "The hash of the given wire address does not match the wire hash specified in the proposal data.",
   1964             ),
   1965             EXCHANGE_DEPOSIT_INVALID_SIGNATURE_BY_EXCHANGE => {
   1966                 (0, "The signature provided by the exchange is not valid.")
   1967             }
   1968             EXCHANGE_DEPOSIT_FEE_ABOVE_AMOUNT => (
   1969                 400,
   1970                 "The deposited amount is smaller than the deposit fee, which would result in a negative contribution.",
   1971             ),
   1972             EXCHANGE_EXTENSIONS_INVALID_FULFILLMENT => {
   1973                 (400, "The proof of policy fulfillment was invalid.")
   1974             }
   1975             EXCHANGE_COIN_HISTORY_BAD_SIGNATURE => {
   1976                 (403, "The coin history was requested with a bad signature.")
   1977             }
   1978             EXCHANGE_RESERVE_HISTORY_BAD_SIGNATURE => (
   1979                 403,
   1980                 "The reserve history was requested with a bad signature.",
   1981             ),
   1982             EXCHANGE_MELT_FEES_EXCEED_CONTRIBUTION => (
   1983                 400,
   1984                 "The exchange encountered melt fees exceeding the melted coin's contribution.",
   1985             ),
   1986             EXCHANGE_MELT_COIN_SIGNATURE_INVALID => (
   1987                 403,
   1988                 "The signature made with the coin to be melted is invalid.",
   1989             ),
   1990             EXCHANGE_MELT_COIN_EXPIRED_NO_ZOMBIE => (
   1991                 400,
   1992                 "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).",
   1993             ),
   1994             EXCHANGE_MELT_INVALID_SIGNATURE_BY_EXCHANGE => (
   1995                 0,
   1996                 "The signature returned by the exchange in a melt request was malformed.",
   1997             ),
   1998             EXCHANGE_REFRESHES_REVEAL_COMMITMENT_VIOLATION => (
   1999                 409,
   2000                 "The provided transfer keys do not match up with the original commitment.  Information about the original commitment is included in the response.",
   2001             ),
   2002             EXCHANGE_REFRESHES_REVEAL_SIGNING_ERROR => (
   2003                 500,
   2004                 "Failed to produce the blinded signatures over the coins to be returned.",
   2005             ),
   2006             EXCHANGE_REFRESHES_REVEAL_SESSION_UNKNOWN => (
   2007                 404,
   2008                 "The exchange is unaware of the refresh session specified in the request.",
   2009             ),
   2010             EXCHANGE_REFRESHES_REVEAL_CNC_TRANSFER_ARRAY_SIZE_INVALID => (
   2011                 400,
   2012                 "The size of the cut-and-choose dimension of the private transfer keys request does not match #TALER_CNC_KAPPA - 1.",
   2013             ),
   2014             EXCHANGE_REFRESHES_REVEAL_NEW_DENOMS_ARRAY_SIZE_MISMATCH => (
   2015                 400,
   2016                 "The number of envelopes given does not match the number of denomination keys given.",
   2017             ),
   2018             EXCHANGE_REFRESHES_REVEAL_COST_CALCULATION_OVERFLOW => (
   2019                 500,
   2020                 "The exchange encountered a numeric overflow totaling up the cost for the refresh operation.",
   2021             ),
   2022             EXCHANGE_REFRESHES_REVEAL_AMOUNT_INSUFFICIENT => (
   2023                 400,
   2024                 "The exchange's cost calculation shows that the melt amount is below the costs of the transaction.",
   2025             ),
   2026             EXCHANGE_REFRESHES_REVEAL_LINK_SIGNATURE_INVALID => (
   2027                 403,
   2028                 "The signature made with the coin over the link data is invalid.",
   2029             ),
   2030             EXCHANGE_REFRESHES_REVEAL_INVALID_RCH => (
   2031                 400,
   2032                 "The refresh session hash given to a /refreshes/ handler was malformed.",
   2033             ),
   2034             EXCHANGE_REFRESHES_REVEAL_OPERATION_INVALID => {
   2035                 (400, "Operation specified invalid for this endpoint.")
   2036             }
   2037             EXCHANGE_REFRESHES_REVEAL_AGE_RESTRICTION_NOT_SUPPORTED => (
   2038                 400,
   2039                 "The client provided age commitment data, but age restriction is not supported on this server.",
   2040             ),
   2041             EXCHANGE_REFRESHES_REVEAL_AGE_RESTRICTION_COMMITMENT_INVALID => (
   2042                 400,
   2043                 "The client provided invalid age commitment data: missing, not an array, or  array of invalid size.",
   2044             ),
   2045             EXCHANGE_LINK_COIN_UNKNOWN => (
   2046                 404,
   2047                 "The coin specified in the link request is unknown to the exchange.",
   2048             ),
   2049             EXCHANGE_TRANSFERS_GET_WTID_MALFORMED => (
   2050                 400,
   2051                 "The public key of given to a /transfers/ handler was malformed.",
   2052             ),
   2053             EXCHANGE_TRANSFERS_GET_WTID_NOT_FOUND => (
   2054                 404,
   2055                 "The exchange did not find information about the specified wire transfer identifier in the database.",
   2056             ),
   2057             EXCHANGE_TRANSFERS_GET_WIRE_FEE_NOT_FOUND => (
   2058                 500,
   2059                 "The exchange did not find information about the wire transfer fees it charged.",
   2060             ),
   2061             EXCHANGE_TRANSFERS_GET_WIRE_FEE_INCONSISTENT => (
   2062                 500,
   2063                 "The exchange found a wire fee that was above the total transfer value (and thus could not have been charged).",
   2064             ),
   2065             EXCHANGE_PURSES_INVALID_WAIT_TARGET => (
   2066                 400,
   2067                 "The wait target of the URL was not in the set of expected values.",
   2068             ),
   2069             EXCHANGE_PURSES_GET_INVALID_SIGNATURE_BY_EXCHANGE => (
   2070                 0,
   2071                 "The signature on the purse status returned by the exchange was invalid.",
   2072             ),
   2073             EXCHANGE_REFUND_COIN_NOT_FOUND => (
   2074                 404,
   2075                 "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.",
   2076             ),
   2077             EXCHANGE_REFUND_CONFLICT_DEPOSIT_INSUFFICIENT => (
   2078                 409,
   2079                 "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.",
   2080             ),
   2081             EXCHANGE_REFUND_DEPOSIT_NOT_FOUND => (
   2082                 404,
   2083                 "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).",
   2084             ),
   2085             EXCHANGE_REFUND_MERCHANT_ALREADY_PAID => (
   2086                 410,
   2087                 "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.)",
   2088             ),
   2089             EXCHANGE_REFUND_FEE_TOO_LOW => (
   2090                 400,
   2091                 "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.",
   2092             ),
   2093             EXCHANGE_REFUND_FEE_ABOVE_AMOUNT => (
   2094                 400,
   2095                 "The refunded amount is smaller than the refund fee, which would result in a negative refund.",
   2096             ),
   2097             EXCHANGE_REFUND_MERCHANT_SIGNATURE_INVALID => {
   2098                 (403, "The signature of the merchant is invalid.")
   2099             }
   2100             EXCHANGE_REFUND_MERCHANT_SIGNING_FAILED => (
   2101                 500,
   2102                 "Merchant backend failed to create the refund confirmation signature.",
   2103             ),
   2104             EXCHANGE_REFUND_INVALID_SIGNATURE_BY_EXCHANGE => (
   2105                 0,
   2106                 "The signature returned by the exchange in a refund request was malformed.",
   2107             ),
   2108             EXCHANGE_REFUND_INVALID_FAILURE_PROOF_BY_EXCHANGE => (
   2109                 0,
   2110                 "The failure proof returned by the exchange is incorrect.",
   2111             ),
   2112             EXCHANGE_REFUND_INCONSISTENT_AMOUNT => (
   2113                 424,
   2114                 "Conflicting refund granted before with different amount but same refund transaction ID.",
   2115             ),
   2116             EXCHANGE_RECOUP_SIGNATURE_INVALID => {
   2117                 (403, "The given coin signature is invalid for the request.")
   2118             }
   2119             EXCHANGE_RECOUP_WITHDRAW_NOT_FOUND => (
   2120                 404,
   2121                 "The exchange could not find the corresponding withdraw operation. The request is denied.",
   2122             ),
   2123             EXCHANGE_RECOUP_COIN_BALANCE_ZERO => (
   2124                 403,
   2125                 "The coin's remaining balance is zero.  The request is denied.",
   2126             ),
   2127             EXCHANGE_RECOUP_BLINDING_FAILED => {
   2128                 (500, "The exchange failed to reproduce the coin's blinding.")
   2129             }
   2130             EXCHANGE_RECOUP_COIN_BALANCE_NEGATIVE => (
   2131                 500,
   2132                 "The coin's remaining balance is zero.  The request is denied.",
   2133             ),
   2134             EXCHANGE_RECOUP_NOT_ELIGIBLE => {
   2135                 (404, "The coin's denomination has not been revoked yet.")
   2136             }
   2137             EXCHANGE_RECOUP_REFRESH_SIGNATURE_INVALID => {
   2138                 (403, "The given coin signature is invalid for the request.")
   2139             }
   2140             EXCHANGE_RECOUP_REFRESH_MELT_NOT_FOUND => (
   2141                 404,
   2142                 "The exchange could not find the corresponding melt operation. The request is denied.",
   2143             ),
   2144             EXCHANGE_RECOUP_REFRESH_BLINDING_FAILED => {
   2145                 (500, "The exchange failed to reproduce the coin's blinding.")
   2146             }
   2147             EXCHANGE_RECOUP_REFRESH_NOT_ELIGIBLE => {
   2148                 (404, "The coin's denomination has not been revoked yet.")
   2149             }
   2150             EXCHANGE_KEYS_TIMETRAVEL_FORBIDDEN => (
   2151                 403,
   2152                 "This exchange does not allow clients to request /keys for times other than the current (exchange) time.",
   2153             ),
   2154             EXCHANGE_WIRE_SIGNATURE_INVALID => {
   2155                 (0, "A signature in the server's response was malformed.")
   2156             }
   2157             EXCHANGE_WIRE_NO_ACCOUNTS_CONFIGURED => (
   2158                 500,
   2159                 "No bank accounts are enabled for the exchange. The administrator should enable-account using the taler-exchange-offline tool.",
   2160             ),
   2161             EXCHANGE_WIRE_INVALID_PAYTO_CONFIGURED => (
   2162                 500,
   2163                 "The payto:// URI stored in the exchange database for its bank account is malformed.",
   2164             ),
   2165             EXCHANGE_WIRE_FEES_NOT_CONFIGURED => (
   2166                 500,
   2167                 "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.",
   2168             ),
   2169             EXCHANGE_RESERVES_PURSE_CREATE_CONFLICTING_META_DATA => (
   2170                 409,
   2171                 "This purse was previously created with different meta data.",
   2172             ),
   2173             EXCHANGE_RESERVES_PURSE_MERGE_CONFLICTING_META_DATA => (
   2174                 409,
   2175                 "This purse was previously merged with different meta data.",
   2176             ),
   2177             EXCHANGE_RESERVES_PURSE_CREATE_INSUFFICIENT_FUNDS => (
   2178                 409,
   2179                 "The reserve has insufficient funds to create another purse.",
   2180             ),
   2181             EXCHANGE_RESERVES_PURSE_FEE_TOO_LOW => (
   2182                 400,
   2183                 "The purse fee specified for the request is lower than the purse fee charged by the exchange at this time.",
   2184             ),
   2185             EXCHANGE_PURSE_DELETE_ALREADY_DECIDED => (
   2186                 409,
   2187                 "The payment request cannot be deleted anymore, as it either already completed or timed out.",
   2188             ),
   2189             EXCHANGE_PURSE_DELETE_SIGNATURE_INVALID => (
   2190                 403,
   2191                 "The signature affirming the purse deletion is invalid.",
   2192             ),
   2193             EXCHANGE_RESERVES_AGE_RESTRICTION_REQUIRED => (
   2194                 403,
   2195                 "Withdrawal from the reserve requires age restriction to be set.",
   2196             ),
   2197             EXCHANGE_DENOMINATION_HELPER_UNAVAILABLE => (
   2198                 502,
   2199                 "The exchange failed to talk to the process responsible for its private denomination keys or the helpers had no denominations (properly) configured.",
   2200             ),
   2201             EXCHANGE_DENOMINATION_HELPER_BUG => (
   2202                 500,
   2203                 "The response from the denomination key helper process was malformed.",
   2204             ),
   2205             EXCHANGE_DENOMINATION_HELPER_TOO_EARLY => (
   2206                 400,
   2207                 "The helper refuses to sign with the key, because it is too early: the validity period has not yet started.",
   2208             ),
   2209             EXCHANGE_PURSE_DEPOSIT_EXCHANGE_SIGNATURE_INVALID => {
   2210                 (0, "The signature of the exchange on the reply was invalid.")
   2211             }
   2212             EXCHANGE_SIGNKEY_HELPER_UNAVAILABLE => (
   2213                 502,
   2214                 "The exchange failed to talk to the process responsible for its private signing keys.",
   2215             ),
   2216             EXCHANGE_SIGNKEY_HELPER_BUG => (
   2217                 500,
   2218                 "The response from the online signing key helper process was malformed.",
   2219             ),
   2220             EXCHANGE_SIGNKEY_HELPER_TOO_EARLY => (
   2221                 400,
   2222                 "The helper refuses to sign with the key, because it is too early: the validity period has not yet started.",
   2223             ),
   2224             EXCHANGE_SIGNKEY_HELPER_OFFLINE_MISSING => (
   2225                 500,
   2226                 "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.",
   2227             ),
   2228             EXCHANGE_RESERVES_PURSE_EXPIRATION_BEFORE_NOW => (
   2229                 400,
   2230                 "The purse expiration time is in the past at the time of its creation.",
   2231             ),
   2232             EXCHANGE_RESERVES_PURSE_EXPIRATION_IS_NEVER => (
   2233                 400,
   2234                 "The purse expiration time is set to never, which is not allowed.",
   2235             ),
   2236             EXCHANGE_RESERVES_PURSE_MERGE_SIGNATURE_INVALID => (
   2237                 403,
   2238                 "The signature affirming the merge of the purse is invalid.",
   2239             ),
   2240             EXCHANGE_RESERVES_RESERVE_MERGE_SIGNATURE_INVALID => (
   2241                 403,
   2242                 "The signature by the reserve affirming the merge is invalid.",
   2243             ),
   2244             EXCHANGE_RESERVES_OPEN_BAD_SIGNATURE => (
   2245                 403,
   2246                 "The signature by the reserve affirming the open operation is invalid.",
   2247             ),
   2248             EXCHANGE_RESERVES_CLOSE_BAD_SIGNATURE => (
   2249                 403,
   2250                 "The signature by the reserve affirming the close operation is invalid.",
   2251             ),
   2252             EXCHANGE_RESERVES_ATTEST_BAD_SIGNATURE => (
   2253                 403,
   2254                 "The signature by the reserve affirming the attestion request is invalid.",
   2255             ),
   2256             EXCHANGE_RESERVES_CLOSE_NO_TARGET_ACCOUNT => (
   2257                 409,
   2258                 "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.",
   2259             ),
   2260             EXCHANGE_RESERVES_OPEN_INSUFFICIENT_FUNDS => (
   2261                 409,
   2262                 "The reserve balance is insufficient to pay for the open operation.",
   2263             ),
   2264             EXCHANGE_MANAGEMENT_AUDITOR_NOT_FOUND => (
   2265                 404,
   2266                 "The auditor that was supposed to be disabled is unknown to this exchange.",
   2267             ),
   2268             EXCHANGE_MANAGEMENT_AUDITOR_MORE_RECENT_PRESENT => (
   2269                 409,
   2270                 "The exchange has a more recently signed conflicting instruction and is thus refusing the current change (replay detected).",
   2271             ),
   2272             EXCHANGE_MANAGEMENT_AUDITOR_ADD_SIGNATURE_INVALID => (
   2273                 403,
   2274                 "The signature to add or enable the auditor does not validate.",
   2275             ),
   2276             EXCHANGE_MANAGEMENT_AUDITOR_DEL_SIGNATURE_INVALID => (
   2277                 403,
   2278                 "The signature to disable the auditor does not validate.",
   2279             ),
   2280             EXCHANGE_MANAGEMENT_DENOMINATION_REVOKE_SIGNATURE_INVALID => (
   2281                 403,
   2282                 "The signature to revoke the denomination does not validate.",
   2283             ),
   2284             EXCHANGE_MANAGEMENT_SIGNKEY_REVOKE_SIGNATURE_INVALID => (
   2285                 403,
   2286                 "The signature to revoke the online signing key does not validate.",
   2287             ),
   2288             EXCHANGE_MANAGEMENT_WIRE_MORE_RECENT_PRESENT => (
   2289                 409,
   2290                 "The exchange has a more recently signed conflicting instruction and is thus refusing the current change (replay detected).",
   2291             ),
   2292             EXCHANGE_MANAGEMENT_KEYS_SIGNKEY_UNKNOWN => {
   2293                 (404, "The signingkey specified is unknown to the exchange.")
   2294             }
   2295             EXCHANGE_MANAGEMENT_WIRE_DETAILS_SIGNATURE_INVALID => (
   2296                 403,
   2297                 "The signature to publish wire account does not validate.",
   2298             ),
   2299             EXCHANGE_MANAGEMENT_WIRE_ADD_SIGNATURE_INVALID => (
   2300                 403,
   2301                 "The signature to add the wire account does not validate.",
   2302             ),
   2303             EXCHANGE_MANAGEMENT_WIRE_DEL_SIGNATURE_INVALID => (
   2304                 403,
   2305                 "The signature to disable the wire account does not validate.",
   2306             ),
   2307             EXCHANGE_MANAGEMENT_WIRE_NOT_FOUND => (
   2308                 404,
   2309                 "The wire account to be disabled is unknown to the exchange.",
   2310             ),
   2311             EXCHANGE_MANAGEMENT_WIRE_FEE_SIGNATURE_INVALID => {
   2312                 (403, "The signature to affirm wire fees does not validate.")
   2313             }
   2314             EXCHANGE_MANAGEMENT_WIRE_FEE_MISMATCH => (
   2315                 409,
   2316                 "The signature conflicts with a previous signature affirming different fees.",
   2317             ),
   2318             EXCHANGE_MANAGEMENT_KEYS_DENOMKEY_ADD_SIGNATURE_INVALID => (
   2319                 403,
   2320                 "The signature affirming the denomination key is invalid.",
   2321             ),
   2322             EXCHANGE_MANAGEMENT_KEYS_SIGNKEY_ADD_SIGNATURE_INVALID => {
   2323                 (403, "The signature affirming the signing key is invalid.")
   2324             }
   2325             EXCHANGE_MANAGEMENT_GLOBAL_FEE_MISMATCH => (
   2326                 409,
   2327                 "The signature conflicts with a previous signature affirming different fees.",
   2328             ),
   2329             EXCHANGE_MANAGEMENT_GLOBAL_FEE_SIGNATURE_INVALID => {
   2330                 (403, "The signature affirming the fee structure is invalid.")
   2331             }
   2332             EXCHANGE_MANAGEMENT_DRAIN_PROFITS_SIGNATURE_INVALID => {
   2333                 (403, "The signature affirming the profit drain is invalid.")
   2334             }
   2335             EXCHANGE_AML_DECISION_ADD_SIGNATURE_INVALID => {
   2336                 (403, "The signature affirming the AML decision is invalid.")
   2337             }
   2338             EXCHANGE_AML_DECISION_INVALID_OFFICER => (
   2339                 403,
   2340                 "The AML officer specified is not allowed to make AML decisions right now.",
   2341             ),
   2342             EXCHANGE_AML_DECISION_MORE_RECENT_PRESENT => (
   2343                 409,
   2344                 "There is a more recent AML decision on file. The decision was rejected as timestamps of AML decisions must be monotonically increasing.",
   2345             ),
   2346             EXCHANGE_AML_DECISION_UNKNOWN_CHECK => (
   2347                 400,
   2348                 "There AML decision would impose an AML check of a type that is not provided by any KYC provider known to the exchange.",
   2349             ),
   2350             EXCHANGE_MANAGEMENT_UPDATE_AML_OFFICER_SIGNATURE_INVALID => (
   2351                 403,
   2352                 "The signature affirming the change in the AML officer status is invalid.",
   2353             ),
   2354             EXCHANGE_MANAGEMENT_AML_OFFICERS_MORE_RECENT_PRESENT => (
   2355                 409,
   2356                 "A more recent decision about the AML officer status is known to the exchange.",
   2357             ),
   2358             EXCHANGE_MANAGEMENT_CONFLICTING_DENOMINATION_META_DATA => (
   2359                 409,
   2360                 "The exchange already has this denomination key configured, but with different meta data. This should not be possible, contact the developers for support.",
   2361             ),
   2362             EXCHANGE_MANAGEMENT_CONFLICTING_SIGNKEY_META_DATA => (
   2363                 409,
   2364                 "The exchange already has this signing key configured, but with different meta data. This should not be possible, contact the developers for support.",
   2365             ),
   2366             EXCHANGE_PURSE_CREATE_CONFLICTING_META_DATA => (
   2367                 409,
   2368                 "The purse was previously created with different meta data.",
   2369             ),
   2370             EXCHANGE_PURSE_CREATE_CONFLICTING_CONTRACT_STORED => (
   2371                 409,
   2372                 "The purse was previously created with a different contract.",
   2373             ),
   2374             EXCHANGE_PURSE_CREATE_COIN_SIGNATURE_INVALID => (
   2375                 403,
   2376                 "A coin signature for a deposit into the purse is invalid.",
   2377             ),
   2378             EXCHANGE_PURSE_CREATE_EXPIRATION_BEFORE_NOW => {
   2379                 (400, "The purse expiration time is in the past.")
   2380             }
   2381             EXCHANGE_PURSE_CREATE_EXPIRATION_IS_NEVER => {
   2382                 (400, "The purse expiration time is \"never\".")
   2383             }
   2384             EXCHANGE_PURSE_CREATE_SIGNATURE_INVALID => (
   2385                 403,
   2386                 "The purse signature over the purse meta data is invalid.",
   2387             ),
   2388             EXCHANGE_PURSE_ECONTRACT_SIGNATURE_INVALID => {
   2389                 (403, "The signature over the encrypted contract is invalid.")
   2390             }
   2391             EXCHANGE_PURSE_CREATE_EXCHANGE_SIGNATURE_INVALID => (
   2392                 0,
   2393                 "The signature from the exchange over the confirmation is invalid.",
   2394             ),
   2395             EXCHANGE_PURSE_DEPOSIT_CONFLICTING_META_DATA => (
   2396                 409,
   2397                 "The coin was previously deposited with different meta data.",
   2398             ),
   2399             EXCHANGE_PURSE_ECONTRACT_CONFLICTING_META_DATA => (
   2400                 409,
   2401                 "The encrypted contract was previously uploaded with different meta data.",
   2402             ),
   2403             EXCHANGE_CREATE_PURSE_NEGATIVE_VALUE_AFTER_FEE => {
   2404                 (400, "The deposited amount is less than the purse fee.")
   2405             }
   2406             EXCHANGE_PURSE_MERGE_INVALID_MERGE_SIGNATURE => {
   2407                 (403, "The signature using the merge key is invalid.")
   2408             }
   2409             EXCHANGE_PURSE_MERGE_INVALID_RESERVE_SIGNATURE => {
   2410                 (403, "The signature using the reserve key is invalid.")
   2411             }
   2412             EXCHANGE_PURSE_NOT_FULL => (
   2413                 409,
   2414                 "The targeted purse is not yet full and thus cannot be merged. Retrying the request later may succeed.",
   2415             ),
   2416             EXCHANGE_PURSE_MERGE_EXCHANGE_SIGNATURE_INVALID => (
   2417                 0,
   2418                 "The signature from the exchange over the confirmation is invalid.",
   2419             ),
   2420             EXCHANGE_MERGE_PURSE_PARTNER_UNKNOWN => (
   2421                 404,
   2422                 "The exchange of the target account is not a partner of this exchange.",
   2423             ),
   2424             EXCHANGE_MANAGEMENT_ADD_PARTNER_SIGNATURE_INVALID => {
   2425                 (403, "The signature affirming the new partner is invalid.")
   2426             }
   2427             EXCHANGE_MANAGEMENT_ADD_PARTNER_DATA_CONFLICT => (
   2428                 409,
   2429                 "Conflicting data for the partner already exists with the exchange.",
   2430             ),
   2431             EXCHANGE_AUDITORS_AUDITOR_SIGNATURE_INVALID => (
   2432                 403,
   2433                 "The auditor signature over the denomination meta data is invalid.",
   2434             ),
   2435             EXCHANGE_AUDITORS_AUDITOR_UNKNOWN => (
   2436                 412,
   2437                 "The auditor that was specified is unknown to this exchange.",
   2438             ),
   2439             EXCHANGE_AUDITORS_AUDITOR_INACTIVE => (
   2440                 410,
   2441                 "The auditor that was specified is no longer used by this exchange.",
   2442             ),
   2443             EXCHANGE_KYC_GENERIC_AML_PROGRAM_TIMEOUT => (
   2444                 500,
   2445                 "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).",
   2446             ),
   2447             EXCHANGE_KYC_INFO_AUTHORIZATION_FAILED => (
   2448                 403,
   2449                 "The KYC info access token is not recognized. Hence the request was denied.",
   2450             ),
   2451             EXCHANGE_KYC_RECURSIVE_RULE_DETECTED => (
   2452                 500,
   2453                 "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.",
   2454             ),
   2455             EXCHANGE_KYC_AML_FORM_INCOMPLETE => (
   2456                 400,
   2457                 "The submitted KYC data lacks an attribute that is required by the KYC form. Please submit the complete form.",
   2458             ),
   2459             EXCHANGE_KYC_GENERIC_AML_PROGRAM_GONE => (
   2460                 500,
   2461                 "The request requires an AML program which is no longer configured at the exchange. Contact the exchange operator to address the configuration issue.",
   2462             ),
   2463             EXCHANGE_KYC_NOT_A_FORM => (
   2464                 400,
   2465                 "The given check is not of type 'form' and thus using this handler for form submission is incorrect.",
   2466             ),
   2467             EXCHANGE_KYC_GENERIC_CHECK_GONE => (
   2468                 500,
   2469                 "The request requires a check which is no longer configured at the exchange. Contact the exchange operator to address the configuration issue.",
   2470             ),
   2471             EXCHANGE_KYC_WALLET_SIGNATURE_INVALID => (
   2472                 403,
   2473                 "The signature affirming the wallet's KYC request was invalid.",
   2474             ),
   2475             EXCHANGE_KYC_PROOF_BACKEND_INVALID_RESPONSE => (
   2476                 502,
   2477                 "The exchange received an unexpected malformed response from its KYC backend.",
   2478             ),
   2479             EXCHANGE_KYC_PROOF_BACKEND_ERROR => {
   2480                 (502, "The backend signaled an unexpected failure.")
   2481             }
   2482             EXCHANGE_KYC_PROOF_BACKEND_AUTHORIZATION_FAILED => {
   2483                 (403, "The backend signaled an authorization failure.")
   2484             }
   2485             EXCHANGE_KYC_PROOF_REQUEST_UNKNOWN => (
   2486                 404,
   2487                 "The exchange is unaware of having made an the authorization request.",
   2488             ),
   2489             EXCHANGE_KYC_CHECK_AUTHORIZATION_FAILED => (
   2490                 403,
   2491                 "The KYC authorization signature was invalid. Hence the request was denied.",
   2492             ),
   2493             EXCHANGE_KYC_GENERIC_LOGIC_UNKNOWN => (
   2494                 404,
   2495                 "The request used a logic specifier that is not known to the exchange.",
   2496             ),
   2497             EXCHANGE_KYC_GENERIC_LOGIC_GONE => (
   2498                 500,
   2499                 "The request requires a logic which is no longer configured at the exchange.",
   2500             ),
   2501             EXCHANGE_KYC_GENERIC_LOGIC_BUG => (
   2502                 500,
   2503                 "The logic plugin had a bug in its interaction with the KYC provider.",
   2504             ),
   2505             EXCHANGE_KYC_GENERIC_PROVIDER_ACCESS_REFUSED => (
   2506                 511,
   2507                 "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.",
   2508             ),
   2509             EXCHANGE_KYC_GENERIC_PROVIDER_TIMEOUT => (
   2510                 504,
   2511                 "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.",
   2512             ),
   2513             EXCHANGE_KYC_GENERIC_PROVIDER_UNEXPECTED_REPLY => (
   2514                 502,
   2515                 "The KYC provider responded with a status that was completely unexpected by the KYC logic of the exchange.",
   2516             ),
   2517             EXCHANGE_KYC_GENERIC_PROVIDER_RATE_LIMIT_EXCEEDED => (
   2518                 503,
   2519                 "The rate limit of the exchange at the KYC provider has been exceeded. Trying much later might work.",
   2520             ),
   2521             EXCHANGE_KYC_WEBHOOK_UNAUTHORIZED => (
   2522                 401,
   2523                 "The request to the webhook lacked proper authorization or authentication data.",
   2524             ),
   2525             EXCHANGE_KYC_CHECK_REQUEST_UNKNOWN => (
   2526                 404,
   2527                 "The exchange is unaware of the requested payto URI with respect to the KYC status.",
   2528             ),
   2529             EXCHANGE_KYC_CHECK_AUTHORIZATION_KEY_UNKNOWN => (
   2530                 409,
   2531                 "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.",
   2532             ),
   2533             EXCHANGE_KYC_FORM_ALREADY_UPLOADED => (
   2534                 409,
   2535                 "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.",
   2536             ),
   2537             EXCHANGE_KYC_MEASURES_MALFORMED => (
   2538                 500,
   2539                 "The internal state of the exchange specifying KYC measures is malformed. Please contact technical support.",
   2540             ),
   2541             EXCHANGE_KYC_MEASURE_INDEX_INVALID => (
   2542                 404,
   2543                 "The specified index does not refer to a valid KYC measure. Please check the URL.",
   2544             ),
   2545             EXCHANGE_KYC_INVALID_LOGIC_TO_CHECK => (
   2546                 409,
   2547                 "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.",
   2548             ),
   2549             EXCHANGE_KYC_AML_PROGRAM_FAILURE => (
   2550                 500,
   2551                 "The AML program failed. This is either caused by a configuration change or a bug. Please contact technical support.",
   2552             ),
   2553             EXCHANGE_KYC_AML_PROGRAM_MALFORMED_RESULT => (
   2554                 500,
   2555                 "The AML program returned a malformed result. This is a bug. Please contact technical support.",
   2556             ),
   2557             EXCHANGE_KYC_GENERIC_PROVIDER_INCOMPLETE_REPLY => (
   2558                 502,
   2559                 "The response from the KYC provider lacked required attributes. Please contact technical support.",
   2560             ),
   2561             EXCHANGE_KYC_GENERIC_PROVIDER_INCOMPLETE_CONTEXT => (
   2562                 500,
   2563                 "The context of the KYC check lacked required fields. This is a bug. Please contact technical support.",
   2564             ),
   2565             EXCHANGE_KYC_GENERIC_AML_LOGIC_BUG => (
   2566                 500,
   2567                 "The logic plugin had a bug in its AML processing. This is a bug. Please contact technical support.",
   2568             ),
   2569             EXCHANGE_CONTRACTS_UNKNOWN => (
   2570                 404,
   2571                 "The exchange does not know a contract under the given contract public key.",
   2572             ),
   2573             EXCHANGE_CONTRACTS_INVALID_CONTRACT_PUB => (
   2574                 400,
   2575                 "The URL does not encode a valid exchange public key in its path.",
   2576             ),
   2577             EXCHANGE_CONTRACTS_DECRYPTION_FAILED => {
   2578                 (0, "The returned encrypted contract did not decrypt.")
   2579             }
   2580             EXCHANGE_CONTRACTS_SIGNATURE_INVALID => (
   2581                 0,
   2582                 "The signature on the encrypted contract did not validate.",
   2583             ),
   2584             EXCHANGE_CONTRACTS_DECODING_FAILED => (0, "The decrypted contract was malformed."),
   2585             EXCHANGE_PURSE_DEPOSIT_COIN_SIGNATURE_INVALID => (
   2586                 403,
   2587                 "A coin signature for a deposit into the purse is invalid.",
   2588             ),
   2589             EXCHANGE_PURSE_DEPOSIT_DECIDED_ALREADY => {
   2590                 (410, "It is too late to deposit coins into the purse.")
   2591             }
   2592             EXCHANGE_KYC_INFO_BUSY => (
   2593                 202,
   2594                 "The exchange is currently processing the KYC status and is not able to return a response yet.",
   2595             ),
   2596             EXCHANGE_TOTP_KEY_INVALID => (0, "TOTP key is not valid."),
   2597             MERCHANT_GENERIC_INSTANCE_UNKNOWN => (
   2598                 404,
   2599                 "The backend could not find the merchant instance specified in the request.",
   2600             ),
   2601             MERCHANT_GENERIC_HOLE_IN_WIRE_FEE_STRUCTURE => (
   2602                 0,
   2603                 "The start and end-times in the wire fee structure leave a hole. This is not allowed.",
   2604             ),
   2605             MERCHANT_GENERIC_EXCHANGE_MASTER_KEY_MISMATCH => (
   2606                 502,
   2607                 "The master key of the exchange does not match the one configured for this merchant. As a result, we refuse to do business with this exchange. The administrator should check if they configured the exchange correctly in the merchant backend.",
   2608             ),
   2609             MERCHANT_GENERIC_CATEGORY_UNKNOWN => {
   2610                 (404, "The product category is not known to the backend.")
   2611             }
   2612             MERCHANT_GENERIC_UNIT_UNKNOWN => (
   2613                 404,
   2614                 "The unit referenced in the request is not known to the backend.",
   2615             ),
   2616             MERCHANT_GENERIC_ORDER_UNKNOWN => (404, "The proposal is not known to the backend."),
   2617             MERCHANT_GENERIC_PRODUCT_UNKNOWN => (
   2618                 404,
   2619                 "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.",
   2620             ),
   2621             MERCHANT_GENERIC_REWARD_ID_UNKNOWN => (
   2622                 404,
   2623                 "The reward ID is unknown.  This could happen if the reward has expired.",
   2624             ),
   2625             MERCHANT_GENERIC_DB_CONTRACT_CONTENT_INVALID => (
   2626                 500,
   2627                 "The contract obtained from the merchant backend was malformed.",
   2628             ),
   2629             MERCHANT_GENERIC_CONTRACT_HASH_DOES_NOT_MATCH_ORDER => (
   2630                 403,
   2631                 "The order we found does not match the provided contract hash.",
   2632             ),
   2633             MERCHANT_GENERIC_EXCHANGE_KEYS_FAILURE => (
   2634                 502,
   2635                 "The exchange failed to provide a valid response to the merchant's /keys request.",
   2636             ),
   2637             MERCHANT_GENERIC_EXCHANGE_TIMEOUT => (
   2638                 504,
   2639                 "The exchange failed to respond to the merchant on time.",
   2640             ),
   2641             MERCHANT_GENERIC_EXCHANGE_CONNECT_FAILURE => {
   2642                 (500, "The merchant failed to talk to the exchange.")
   2643             }
   2644             MERCHANT_GENERIC_EXCHANGE_REPLY_MALFORMED => {
   2645                 (502, "The exchange returned a maformed response.")
   2646             }
   2647             MERCHANT_GENERIC_EXCHANGE_UNEXPECTED_STATUS => {
   2648                 (502, "The exchange returned an unexpected response status.")
   2649             }
   2650             MERCHANT_GENERIC_UNAUTHORIZED => (
   2651                 401,
   2652                 "The merchant refused the request due to lack of authorization.",
   2653             ),
   2654             MERCHANT_GENERIC_INSTANCE_DELETED => (
   2655                 404,
   2656                 "The merchant instance specified in the request was deleted.",
   2657             ),
   2658             MERCHANT_GENERIC_TRANSFER_UNKNOWN => (
   2659                 404,
   2660                 "The backend could not find the inbound wire transfer specified in the request.",
   2661             ),
   2662             MERCHANT_GENERIC_TEMPLATE_UNKNOWN => (
   2663                 404,
   2664                 "The backend could not find the template(id) because it is not exist.",
   2665             ),
   2666             MERCHANT_GENERIC_WEBHOOK_UNKNOWN => (
   2667                 404,
   2668                 "The backend could not find the webhook(id) because it is not exist.",
   2669             ),
   2670             MERCHANT_GENERIC_PENDING_WEBHOOK_UNKNOWN => (
   2671                 404,
   2672                 "The backend could not find the webhook(serial) because it is not exist.",
   2673             ),
   2674             MERCHANT_GENERIC_OTP_DEVICE_UNKNOWN => (
   2675                 404,
   2676                 "The backend could not find the OTP device(id) because it is not exist.",
   2677             ),
   2678             MERCHANT_GENERIC_ACCOUNT_UNKNOWN => (404, "The account is not known to the backend."),
   2679             MERCHANT_GENERIC_H_WIRE_MALFORMED => (400, "The wire hash was malformed."),
   2680             MERCHANT_GENERIC_CURRENCY_MISMATCH => (
   2681                 409,
   2682                 "The currency specified in the operation does not work with the current state of the given resource.",
   2683             ),
   2684             MERCHANT_GENERIC_EXCHANGE_UNTRUSTED => (
   2685                 400,
   2686                 "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.",
   2687             ),
   2688             MERCHANT_GENERIC_TOKEN_FAMILY_UNKNOWN => {
   2689                 (404, "The token family is not known to the backend.")
   2690             }
   2691             MERCHANT_GENERIC_TOKEN_KEY_UNKNOWN => (
   2692                 404,
   2693                 "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.",
   2694             ),
   2695             MERCHANT_GENERIC_DONAU_NOT_CONFIGURED => (
   2696                 501,
   2697                 "The merchant backend is not configured to support the DONAU protocol.",
   2698             ),
   2699             MERCHANT_EXCHANGE_SIGN_PUB_UNKNOWN => (
   2700                 0,
   2701                 "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.",
   2702             ),
   2703             MERCHANT_GENERIC_FEATURE_NOT_AVAILABLE => (
   2704                 501,
   2705                 "The merchant backend does not support the requested feature.",
   2706             ),
   2707             MERCHANT_GENERIC_MFA_MISSING => (
   2708                 403,
   2709                 "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.",
   2710             ),
   2711             MERCHANT_GENERIC_DONAU_INVALID_RESPONSE => (
   2712                 502,
   2713                 "A donation authority (Donau) provided an invalid response. This should be analyzed by the administrator. Trying again later may help.",
   2714             ),
   2715             MERCHANT_GENERIC_UNIT_BUILTIN => (
   2716                 409,
   2717                 "The unit referenced in the request is builtin and cannot be modified or deleted.",
   2718             ),
   2719             MERCHANT_GENERIC_REPORT_UNKNOWN => (
   2720                 404,
   2721                 "The report ID provided to the backend is not known to the backend.",
   2722             ),
   2723             MERCHANT_GENERIC_REPORT_GENERATOR_UNCONFIGURED => (
   2724                 501,
   2725                 "The report ID provided to the backend is not known to the backend.",
   2726             ),
   2727             MERCHANT_GENERIC_PRODUCT_GROUP_UNKNOWN => (
   2728                 404,
   2729                 "The product group ID provided to the backend is not known to the backend.",
   2730             ),
   2731             MERCHANT_GENERIC_MONEY_POT_UNKNOWN => (
   2732                 404,
   2733                 "The money pod ID provided to the backend is not known to the backend.",
   2734             ),
   2735             MERCHANT_GENERIC_SESSION_UNKNOWN => (
   2736                 404,
   2737                 "The session ID provided to the backend is not known to the backend.",
   2738             ),
   2739             MERCHANT_GENERIC_DONAU_CHARITY_UNKNOWN => (
   2740                 404,
   2741                 "The merchant does not have a charity associated with the selected Donau. As a result, it cannot generate the requested donation receipt. This could happen if the charity was removed from the backend between order creation and payment.",
   2742             ),
   2743             MERCHANT_GENERIC_EXPECTED_TRANSFER_UNKNOWN => (
   2744                 404,
   2745                 "The merchant does not expect any transfer with the given ID and can thus not return any details about it.",
   2746             ),
   2747             MERCHANT_GENERIC_DONAU_UNKNOWN => (404, "The Donau is not known to the backend."),
   2748             MERCHANT_GENERIC_ACCESS_TOKEN_UNKNOWN => {
   2749                 (404, "The access token is not known to the backend.")
   2750             }
   2751             MERCHANT_GENERIC_NO_TYPST_OR_PDFTK => (
   2752                 501,
   2753                 "One of the binaries needed to generate the PDF is not installed. If this feature is required, the system administrator should make sure Typst and pdftk are both installed.",
   2754             ),
   2755             MERCHANT_GET_ORDERS_EXCHANGE_TRACKING_FAILURE => (
   2756                 200,
   2757                 "The exchange failed to provide a valid answer to the tracking request, thus those details are not in the response.",
   2758             ),
   2759             MERCHANT_GET_ORDERS_ID_EXCHANGE_REQUEST_FAILURE => (
   2760                 500,
   2761                 "The merchant backend failed to construct the request for tracking to the exchange, thus tracking details are not in the response.",
   2762             ),
   2763             MERCHANT_GET_ORDERS_ID_EXCHANGE_LOOKUP_START_FAILURE => (
   2764                 500,
   2765                 "The merchant backend failed trying to contact the exchange for tracking details, thus those details are not in the response.",
   2766             ),
   2767             MERCHANT_GET_ORDERS_ID_INVALID_TOKEN => (
   2768                 403,
   2769                 "The claim token used to authenticate the client is invalid for this order.",
   2770             ),
   2771             MERCHANT_GET_ORDERS_ID_INVALID_CONTRACT_HASH => (
   2772                 403,
   2773                 "The contract terms hash used to authenticate the client is invalid for this order.",
   2774             ),
   2775             MERCHANT_GET_ORDERS_ID_INVALID_CONTRACT_VERSION => (
   2776                 500,
   2777                 "The contract terms version is not understood by the merchant backend. Most likely the merchant backend was downgraded to a version incompatible with the content of the database.",
   2778             ),
   2779             MERCHANT_TAN_CHALLENGE_FAILED => {
   2780                 (409, "The provided TAN code is invalid for this challenge.")
   2781             }
   2782             MERCHANT_TAN_CHALLENGE_UNKNOWN => (
   2783                 404,
   2784                 "The backend is not aware of the specified MFA challenge.",
   2785             ),
   2786             MERCHANT_TAN_TOO_MANY_ATTEMPTS => (
   2787                 429,
   2788                 "There have been too many attempts to solve the challenge. A new TAN must be requested.",
   2789             ),
   2790             MERCHANT_TAN_MFA_HELPER_EXEC_FAILED => (
   2791                 502,
   2792                 "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.",
   2793             ),
   2794             MERCHANT_TAN_CHALLENGE_SOLVED => (
   2795                 410,
   2796                 "The challenge was already solved. Thus, we refuse to send it again.",
   2797             ),
   2798             MERCHANT_TAN_TOO_EARLY => (
   2799                 429,
   2800                 "It is too early to request another transmission of the challenge. The client should wait and see if they received the previous challenge.",
   2801             ),
   2802             MERCHANT_MFA_FORBIDDEN => (
   2803                 403,
   2804                 "There have been too many attempts to solve MFA. The client may attempt again in the future.",
   2805             ),
   2806             MERCHANT_POST_ORDERS_ID_PAY_INSUFFICIENT_FUNDS => (
   2807                 409,
   2808                 "The exchange responded saying that funds were insufficient (for example, due to double-spending).",
   2809             ),
   2810             MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_KEY_NOT_FOUND => (
   2811                 400,
   2812                 "The denomination key used for payment is not listed among the denomination keys of the exchange.",
   2813             ),
   2814             MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_KEY_AUDITOR_FAILURE => (
   2815                 400,
   2816                 "The denomination key used for payment is not audited by an auditor approved by the merchant.",
   2817             ),
   2818             MERCHANT_POST_ORDERS_ID_PAY_AMOUNT_OVERFLOW => (
   2819                 500,
   2820                 "There was an integer overflow totaling up the amounts or deposit fees in the payment.",
   2821             ),
   2822             MERCHANT_POST_ORDERS_ID_PAY_FEES_EXCEED_PAYMENT => (
   2823                 400,
   2824                 "The deposit fees exceed the total value of the payment.",
   2825             ),
   2826             MERCHANT_POST_ORDERS_ID_PAY_INSUFFICIENT_DUE_TO_FEES => (
   2827                 400,
   2828                 "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.",
   2829             ),
   2830             MERCHANT_POST_ORDERS_ID_PAY_PAYMENT_INSUFFICIENT => (
   2831                 400,
   2832                 "Even if we do not consider deposit and wire fees, the payment is insufficient to satisfy the required amount for the contract.",
   2833             ),
   2834             MERCHANT_POST_ORDERS_ID_PAY_COIN_SIGNATURE_INVALID => (
   2835                 403,
   2836                 "The signature over the contract of one of the coins was invalid.",
   2837             ),
   2838             MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_LOOKUP_FAILED => (
   2839                 500,
   2840                 "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.",
   2841             ),
   2842             MERCHANT_POST_ORDERS_ID_PAY_REFUND_DEADLINE_PAST_WIRE_TRANSFER_DEADLINE => (
   2843                 500,
   2844                 "The refund deadline in the contract is after the transfer deadline.",
   2845             ),
   2846             MERCHANT_POST_ORDERS_ID_PAY_ALREADY_PAID => {
   2847                 (409, "The order was already paid (maybe by another wallet).")
   2848             }
   2849             MERCHANT_POST_ORDERS_ID_PAY_OFFER_EXPIRED => {
   2850                 (410, "The payment is too late, the offer has expired.")
   2851             }
   2852             MERCHANT_POST_ORDERS_ID_PAY_MERCHANT_FIELD_MISSING => (
   2853                 500,
   2854                 "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.",
   2855             ),
   2856             MERCHANT_POST_ORDERS_ID_PAY_WIRE_HASH_UNKNOWN => (
   2857                 500,
   2858                 "Failed to locate merchant's account information matching the wire hash given in the proposal.",
   2859             ),
   2860             MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_DEPOSIT_EXPIRED => {
   2861                 (410, "The deposit time for the denomination has expired.")
   2862             }
   2863             MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_WIRE_FEE_ADDITION_FAILED => (
   2864                 500,
   2865                 "The exchange of the deposited coin charges a wire fee that could not be added to the total (total amount too high).",
   2866             ),
   2867             MERCHANT_POST_ORDERS_ID_PAY_REFUNDED => (
   2868                 402,
   2869                 "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.",
   2870             ),
   2871             MERCHANT_POST_ORDERS_ID_PAY_REFUNDS_EXCEED_PAYMENTS => (
   2872                 500,
   2873                 "According to our database, we have refunded more than we were paid (which should not be possible).",
   2874             ),
   2875             MERCHANT_PRIVATE_POST_REFUND_AFTER_WIRE_DEADLINE => (
   2876                 410,
   2877                 "The refund request is too late because it is past the wire transfer deadline of the order. The merchant must find a different way to pay back the money to the customer.",
   2878             ),
   2879             MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_FAILED => {
   2880                 (502, "The payment failed at the exchange.")
   2881             }
   2882             MERCHANT_POST_ORDERS_ID_PAY_AGE_COMMITMENT_MISSING => (
   2883                 400,
   2884                 "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.",
   2885             ),
   2886             MERCHANT_POST_ORDERS_ID_PAY_AGE_COMMITMENT_SIZE_MISMATCH => (
   2887                 400,
   2888                 "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.",
   2889             ),
   2890             MERCHANT_POST_ORDERS_ID_PAY_AGE_VERIFICATION_FAILED => (
   2891                 400,
   2892                 "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.",
   2893             ),
   2894             MERCHANT_POST_ORDERS_ID_PAY_AGE_COMMITMENT_HASH_MISSING => (
   2895                 400,
   2896                 "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.",
   2897             ),
   2898             MERCHANT_POST_ORDERS_ID_PAY_WIRE_METHOD_UNSUPPORTED => (
   2899                 409,
   2900                 "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.",
   2901             ),
   2902             MERCHANT_POST_ORDERS_ID_PAY_CHOICE_INDEX_MISSING => (
   2903                 400,
   2904                 "The payment requires the wallet to select a choice from the choices array and pass it in the 'choice_index' field of the request.",
   2905             ),
   2906             MERCHANT_POST_ORDERS_ID_PAY_CHOICE_INDEX_OUT_OF_BOUNDS => {
   2907                 (400, "The 'choice_index' field is invalid.")
   2908             }
   2909             MERCHANT_POST_ORDERS_ID_PAY_INPUT_TOKENS_MISMATCH => (
   2910                 400,
   2911                 "The provided 'tokens' array does not match with the required input tokens of the order.",
   2912             ),
   2913             MERCHANT_POST_ORDERS_ID_PAY_TOKEN_ISSUE_SIG_INVALID => (
   2914                 400,
   2915                 "Invalid token issue signature (blindly signed by merchant) for provided token.",
   2916             ),
   2917             MERCHANT_POST_ORDERS_ID_PAY_TOKEN_USE_SIG_INVALID => (
   2918                 400,
   2919                 "Invalid token use signature (EdDSA, signed by wallet) for provided token.",
   2920             ),
   2921             MERCHANT_POST_ORDERS_ID_PAY_TOKEN_COUNT_MISMATCH => (
   2922                 400,
   2923                 "The provided number of tokens does not match the required number.",
   2924             ),
   2925             MERCHANT_POST_ORDERS_ID_PAY_TOKEN_ENVELOPE_COUNT_MISMATCH => (
   2926                 400,
   2927                 "The provided number of token envelopes does not match the specified number.",
   2928             ),
   2929             MERCHANT_POST_ORDERS_ID_PAY_TOKEN_INVALID => (
   2930                 409,
   2931                 "Invalid token because it was already used, is expired or not yet valid.",
   2932             ),
   2933             MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_TRANSACTION_LIMIT_VIOLATION => (
   2934                 400,
   2935                 "The payment violates a transaction limit configured at the given exchange. The wallet has a bug in that it failed to check exchange limits during coin selection. Please report the bug to your wallet developer.",
   2936             ),
   2937             MERCHANT_POST_ORDERS_ID_PAY_DONATION_AMOUNT_MISMATCH => (
   2938                 409,
   2939                 "The donation amount provided in the BKPS does not match the amount of the order choice.",
   2940             ),
   2941             MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_LEGALLY_REFUSED => (
   2942                 451,
   2943                 "Some of the exchanges involved refused the request for reasons related to legitimization. The wallet should try with coins of different exchanges. The merchant should check if they have some legitimization process pending at the exchange.",
   2944             ),
   2945             MERCHANT_POST_ORDERS_ID_PAID_CONTRACT_HASH_MISMATCH => {
   2946                 (400, "The contract hash does not match the given order ID.")
   2947             }
   2948             MERCHANT_POST_ORDERS_ID_PAID_COIN_SIGNATURE_INVALID => (
   2949                 403,
   2950                 "The signature of the merchant is not valid for the given contract hash.",
   2951             ),
   2952             MERCHANT_POST_TOKEN_FAMILY_CONFLICT => (
   2953                 409,
   2954                 "A token family with this ID but conflicting data exists.",
   2955             ),
   2956             MERCHANT_PATCH_TOKEN_FAMILY_NOT_FOUND => (
   2957                 404,
   2958                 "The backend is unaware of a token family with the given ID.",
   2959             ),
   2960             MERCHANT_POST_ORDERS_ID_ABORT_EXCHANGE_REFUND_FAILED => (
   2961                 500,
   2962                 "The merchant failed to send the exchange the refund request.",
   2963             ),
   2964             MERCHANT_POST_ORDERS_ID_ABORT_EXCHANGE_LOOKUP_FAILED => (
   2965                 500,
   2966                 "The merchant failed to find the exchange to process the lookup.",
   2967             ),
   2968             MERCHANT_POST_ORDERS_ID_ABORT_CONTRACT_NOT_FOUND => {
   2969                 (404, "The merchant could not find the contract.")
   2970             }
   2971             MERCHANT_POST_ORDERS_ID_ABORT_REFUND_REFUSED_PAYMENT_COMPLETE => (
   2972                 412,
   2973                 "The payment was already completed and thus cannot be aborted anymore.",
   2974             ),
   2975             MERCHANT_POST_ORDERS_ID_ABORT_CONTRACT_HASH_MISSMATCH => (
   2976                 403,
   2977                 "The hash provided by the wallet does not match the order.",
   2978             ),
   2979             MERCHANT_POST_ORDERS_ID_ABORT_COINS_ARRAY_EMPTY => {
   2980                 (400, "The array of coins cannot be empty.")
   2981             }
   2982             MERCHANT_EXCHANGE_TRANSFERS_AWAITING_KEYS => (
   2983                 202,
   2984                 "We are waiting for the exchange to provide us with key material before checking the wire transfer.",
   2985             ),
   2986             MERCHANT_EXCHANGE_TRANSFERS_AWAITING_LIST => (
   2987                 202,
   2988                 "We are waiting for the exchange to provide us with the list of aggregated transactions.",
   2989             ),
   2990             MERCHANT_EXCHANGE_TRANSFERS_FATAL_NO_EXCHANGE => (
   2991                 200,
   2992                 "The endpoint indicated in the wire transfer does not belong to a GNU Taler exchange.",
   2993             ),
   2994             MERCHANT_EXCHANGE_TRANSFERS_FATAL_NOT_FOUND => (
   2995                 0,
   2996                 "The exchange indicated in the wire transfer claims to know nothing about the wire transfer.",
   2997             ),
   2998             MERCHANT_EXCHANGE_TRANSFERS_RATE_LIMITED => (
   2999                 202,
   3000                 "The interaction with the exchange is delayed due to rate limiting.",
   3001             ),
   3002             MERCHANT_EXCHANGE_TRANSFERS_TRANSIENT_FAILURE => (
   3003                 202,
   3004                 "We experienced a transient failure in our interaction with the exchange.",
   3005             ),
   3006             MERCHANT_EXCHANGE_TRANSFERS_HARD_FAILURE => (
   3007                 200,
   3008                 "The response from the exchange was unacceptable and should be reviewed with an auditor.",
   3009             ),
   3010             MERCHANT_POST_ACCOUNTS_KYCAUTH_BANK_GATEWAY_UNREACHABLE => (
   3011                 502,
   3012                 "The merchant backend failed to reach the banking gateway to shorten the wire transfer subject. This probably means that the banking gateway of the exchange is currently down. Contact the exchange operator or simply retry again later.",
   3013             ),
   3014             MERCHANT_POST_ACCOUNTS_EXCHANGE_TOO_OLD => (
   3015                 502,
   3016                 "The merchant backend failed to reach the banking gateway to shorten the wire transfer subject. This probably means that the banking gateway of the exchange is currently down. Contact the exchange operator or simply retry again later.",
   3017             ),
   3018             MERCHANT_POST_ACCOUNTS_KYCAUTH_EXCHANGE_UNREACHABLE => (
   3019                 502,
   3020                 "The merchant backend failed to reach the specified exchange. This probably means that the exchange is currently down. Contact the exchange operator or simply retry again later.",
   3021             ),
   3022             MERCHANT_POST_ORDERS_ID_CLAIM_NOT_FOUND => (
   3023                 404,
   3024                 "We could not claim the order because the backend is unaware of it.",
   3025             ),
   3026             MERCHANT_POST_ORDERS_ID_CLAIM_ALREADY_CLAIMED => (
   3027                 409,
   3028                 "We could not claim the order because someone else claimed it first.",
   3029             ),
   3030             MERCHANT_POST_ORDERS_ID_CLAIM_CLIENT_INTERNAL_FAILURE => {
   3031                 (0, "The client-side experienced an internal failure.")
   3032             }
   3033             MERCHANT_POST_ORDERS_UNCLAIM_SIGNATURE_INVALID => (
   3034                 403,
   3035                 "The unclaim signature of the wallet is not valid for the given contract hash.",
   3036             ),
   3037             MERCHANT_POST_ORDERS_ID_REFUND_SIGNATURE_FAILED => {
   3038                 (0, "The backend failed to sign the refund request.")
   3039             }
   3040             MERCHANT_REWARD_PICKUP_UNBLIND_FAILURE => (
   3041                 0,
   3042                 "The client failed to unblind the signature returned by the merchant.",
   3043             ),
   3044             MERCHANT_REWARD_PICKUP_EXCHANGE_ERROR => (
   3045                 502,
   3046                 "The exchange returned a failure code for the withdraw operation.",
   3047             ),
   3048             MERCHANT_REWARD_PICKUP_SUMMATION_FAILED => (
   3049                 500,
   3050                 "The merchant failed to add up the amounts to compute the pick up value.",
   3051             ),
   3052             MERCHANT_REWARD_PICKUP_HAS_EXPIRED => (410, "The reward expired."),
   3053             MERCHANT_REWARD_PICKUP_AMOUNT_EXCEEDS_REWARD_REMAINING => (
   3054                 400,
   3055                 "The requested withdraw amount exceeds the amount remaining to be picked up.",
   3056             ),
   3057             MERCHANT_REWARD_PICKUP_DENOMINATION_UNKNOWN => (
   3058                 409,
   3059                 "The merchant did not find the specified denomination key in the exchange's key set.",
   3060             ),
   3061             MERCHANT_PRIVATE_POST_ORDERS_INSTANCE_CONFIGURATION_LACKS_WIRE => (
   3062                 404,
   3063                 "The merchant instance has no active bank accounts configured. However, at least one bank account must be available to create new orders.",
   3064             ),
   3065             MERCHANT_PRIVATE_POST_ORDERS_NO_LOCALTIME => (
   3066                 500,
   3067                 "The proposal had no timestamp and the merchant backend failed to obtain the current local time.",
   3068             ),
   3069             MERCHANT_PRIVATE_POST_ORDERS_PROPOSAL_PARSE_ERROR => (
   3070                 400,
   3071                 "The order provided to the backend could not be parsed; likely some required fields were missing or ill-formed.",
   3072             ),
   3073             MERCHANT_PRIVATE_POST_ORDERS_ALREADY_EXISTS => (
   3074                 409,
   3075                 "A conflicting order (sharing the same order identifier) already exists at this merchant backend instance.",
   3076             ),
   3077             MERCHANT_PRIVATE_POST_ORDERS_REFUND_AFTER_WIRE_DEADLINE => (
   3078                 400,
   3079                 "The order creation request is invalid because the given wire deadline is before the refund deadline.",
   3080             ),
   3081             MERCHANT_PRIVATE_POST_ORDERS_DELIVERY_DATE_IN_PAST => (
   3082                 400,
   3083                 "The order creation request is invalid because the delivery date given is in the past.",
   3084             ),
   3085             MERCHANT_PRIVATE_POST_ORDERS_WIRE_DEADLINE_IS_NEVER => (
   3086                 400,
   3087                 "The order creation request is invalid because a wire deadline of \"never\" is not allowed.",
   3088             ),
   3089             MERCHANT_PRIVATE_POST_ORDERS_PAY_DEADLINE_IN_PAST => (
   3090                 400,
   3091                 "The order creation request is invalid because the given payment deadline is in the past.",
   3092             ),
   3093             MERCHANT_PRIVATE_POST_ORDERS_REFUND_DEADLINE_IN_PAST => (
   3094                 400,
   3095                 "The order creation request is invalid because the given refund deadline is in the past.",
   3096             ),
   3097             MERCHANT_PRIVATE_POST_ORDERS_NO_EXCHANGES_FOR_WIRE_METHOD => (
   3098                 409,
   3099                 "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.",
   3100             ),
   3101             MERCHANT_PRIVATE_PATCH_ORDERS_ID_FORGET_PATH_SYNTAX_INCORRECT => {
   3102                 (400, "One of the paths to forget is malformed.")
   3103             }
   3104             MERCHANT_PRIVATE_PATCH_ORDERS_ID_FORGET_PATH_NOT_FORGETTABLE => (
   3105                 409,
   3106                 "One of the paths to forget was not marked as forgettable.",
   3107             ),
   3108             MERCHANT_POST_ORDERS_ID_REFUND_EXCHANGE_TRANSACTION_LIMIT_VIOLATION => (
   3109                 451,
   3110                 "The refund amount would violate a refund transaction limit configured at the given exchange. Please find another way to refund the customer, and inquire with your legislator why they make strange banking regulations.",
   3111             ),
   3112             MERCHANT_PRIVATE_POST_ORDERS_AMOUNT_EXCEEDS_LEGAL_LIMITS => (
   3113                 451,
   3114                 "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.",
   3115             ),
   3116             MERCHANT_PRIVATE_POST_ORDERS_NO_EXCHANGE_FOR_CURRENCY => (
   3117                 409,
   3118                 "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.",
   3119             ),
   3120             MERCHANT_PRIVATE_DELETE_ORDERS_AWAITING_PAYMENT => (
   3121                 409,
   3122                 "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.",
   3123             ),
   3124             MERCHANT_PRIVATE_DELETE_ORDERS_ALREADY_PAID => (
   3125                 409,
   3126                 "The order provided to the backend could not be deleted as the order was already paid.",
   3127             ),
   3128             MERCHANT_PRIVATE_GET_STATISTICS_REPORT_GRANULARITY_UNAVAILABLE => (
   3129                 410,
   3130                 "The client requested a report granularity that is not available at the backend. Possible solutions include extending the backend code and/or the database statistic triggers to support the desired data granularity. Alternatively, the client could request a different granularity.",
   3131             ),
   3132             MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_INCONSISTENT_AMOUNT => (
   3133                 409,
   3134                 "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.",
   3135             ),
   3136             MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_ORDER_UNPAID => (
   3137                 409,
   3138                 "Only paid orders can be refunded, and the frontend specified an unpaid order to issue a refund for.",
   3139             ),
   3140             MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_NOT_ALLOWED_BY_CONTRACT => (
   3141                 403,
   3142                 "The refund delay was set to 0 and thus no refunds are ever allowed for this order.",
   3143             ),
   3144             MERCHANT_PRIVATE_POST_ORDERS_TOKEN_FAMILY_SLUG_UNKNOWN => (
   3145                 404,
   3146                 "The token family slug provided in this order could not be found in the merchant database.",
   3147             ),
   3148             MERCHANT_PRIVATE_POST_ORDERS_TOKEN_FAMILY_NOT_VALID => (
   3149                 409,
   3150                 "A token family referenced in this order is either expired or not valid yet.",
   3151             ),
   3152             MERCHANT_PRIVATE_POST_TRANSFERS_EXCHANGE_UNKNOWN => {
   3153                 (502, "The exchange says it does not know this transfer.")
   3154             }
   3155             MERCHANT_PRIVATE_POST_TRANSFERS_REQUEST_ERROR => (
   3156                 502,
   3157                 "We internally failed to execute the /track/transfer request.",
   3158             ),
   3159             MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_TRANSFERS => (
   3160                 409,
   3161                 "The amount transferred differs between what was submitted and what the exchange claimed.",
   3162             ),
   3163             MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_REPORTS => (
   3164                 409,
   3165                 "The exchange gave conflicting information about a coin which has been wire transferred.",
   3166             ),
   3167             MERCHANT_PRIVATE_POST_TRANSFERS_BAD_WIRE_FEE => (
   3168                 502,
   3169                 "The exchange charged a different wire fee than what it originally advertised, and it is higher.",
   3170             ),
   3171             MERCHANT_PRIVATE_POST_TRANSFERS_ACCOUNT_NOT_FOUND => (
   3172                 404,
   3173                 "We did not find the account that the transfer was made to.",
   3174             ),
   3175             MERCHANT_PRIVATE_DELETE_TRANSFERS_ALREADY_CONFIRMED => (
   3176                 409,
   3177                 "The backend could not delete the transfer as the echange already replied to our inquiry about it and we have integrated the result.",
   3178             ),
   3179             MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_SUBMISSION => (
   3180                 409,
   3181                 "The backend could not persist the wire transfer due to the state of the backend. This usually means that a wire transfer with the same wire transfer subject but a different amount was previously submitted to the backend.",
   3182             ),
   3183             MERCHANT_EXCHANGE_TRANSFERS_TARGET_ACCOUNT_UNKNOWN => (
   3184                 0,
   3185                 "The target bank account given by the exchange is not (or no longer) known at the merchant instance.",
   3186             ),
   3187             MERCHANT_EXCHANGE_TRANSFERS_CONFLICTING_TRANSFERS => (
   3188                 0,
   3189                 "The amount transferred differs between what was submitted and what the exchange claimed.",
   3190             ),
   3191             MERCHANT_REPORT_GENERATOR_FAILED => (
   3192                 501,
   3193                 "The report ID provided to the backend is not known to the backend.",
   3194             ),
   3195             MERCHANT_REPORT_FETCH_FAILED => (
   3196                 502,
   3197                 "Failed to fetch the data for the report from the backend.",
   3198             ),
   3199             MERCHANT_PRIVATE_POST_INSTANCES_ALREADY_EXISTS => (
   3200                 409,
   3201                 "The merchant backend cannot create an instance under the given identifier as one already exists. Use PATCH to modify the existing entry.",
   3202             ),
   3203             MERCHANT_PRIVATE_POST_INSTANCES_BAD_AUTH => (
   3204                 400,
   3205                 "The merchant backend cannot create an instance because the authentication configuration field is malformed.",
   3206             ),
   3207             MERCHANT_PRIVATE_POST_INSTANCE_AUTH_BAD_AUTH => (
   3208                 400,
   3209                 "The merchant backend cannot update an instance's authentication settings because the provided authentication settings are malformed.",
   3210             ),
   3211             MERCHANT_PRIVATE_POST_INSTANCES_PURGE_REQUIRED => (
   3212                 409,
   3213                 "The merchant backend cannot create an instance under the given identifier, the previous one was deleted but must be purged first.",
   3214             ),
   3215             MERCHANT_PRIVATE_PATCH_INSTANCES_PURGE_REQUIRED => (
   3216                 409,
   3217                 "The merchant backend cannot update an instance under the given identifier, the previous one was deleted but must be purged first.",
   3218             ),
   3219             MERCHANT_PRIVATE_ACCOUNT_DELETE_UNKNOWN_ACCOUNT => (
   3220                 404,
   3221                 "The bank account referenced in the requested operation was not found.",
   3222             ),
   3223             MERCHANT_PRIVATE_ACCOUNT_EXISTS => (
   3224                 409,
   3225                 "The bank account specified in the request already exists at the merchant.",
   3226             ),
   3227             MERCHANT_PRIVATE_ACCOUNT_NOT_ELIGIBLE_FOR_EXCHANGE => (
   3228                 409,
   3229                 "The bank account specified is not acceptable for this exchange. The exchange either does not support the wire method or something else about the specific account. Consult the exchange account constraints and specify a different bank account if you want to use this exchange.",
   3230             ),
   3231             MERCHANT_PRIVATE_POST_PRODUCTS_CONFLICT_PRODUCT_EXISTS => {
   3232                 (409, "The product ID exists.")
   3233             }
   3234             MERCHANT_PRIVATE_POST_CATEGORIES_CONFLICT_CATEGORY_EXISTS => {
   3235                 (409, "A category with the same name exists already.")
   3236             }
   3237             MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_LOST_REDUCED => (
   3238                 409,
   3239                 "The update would have reduced the total amount of product lost, which is not allowed.",
   3240             ),
   3241             MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_LOST_EXCEEDS_STOCKS => (
   3242                 400,
   3243                 "The update would have mean that more stocks were lost than what remains from total inventory after sales, which is not allowed.",
   3244             ),
   3245             MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_STOCKED_REDUCED => (
   3246                 409,
   3247                 "The update would have reduced the total amount of product in stock, which is not allowed.",
   3248             ),
   3249             MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_SOLD_REDUCED => (
   3250                 409,
   3251                 "The update would have reduced the total amount of product sold, which is not allowed.",
   3252             ),
   3253             MERCHANT_PRIVATE_POST_PRODUCTS_LOCK_INSUFFICIENT_STOCKS => (
   3254                 410,
   3255                 "The lock request is for more products than we have left (unlocked) in stock.",
   3256             ),
   3257             MERCHANT_PRIVATE_DELETE_PRODUCTS_CONFLICTING_LOCK => (
   3258                 409,
   3259                 "The deletion request is for a product that is locked. The product cannot be deleted until the existing offer to expires.",
   3260             ),
   3261             MERCHANT_PRIVATE_PRODUCT_GROUP_CONFLICTING_NAME => (
   3262                 409,
   3263                 "The proposed name for the product group is already in use. You should select a different name.",
   3264             ),
   3265             MERCHANT_PRIVATE_MONEY_POT_CONFLICTING_NAME => (
   3266                 409,
   3267                 "The proposed name for the money pot is already in use. You should select a different name.",
   3268             ),
   3269             MERCHANT_PRIVATE_MONEY_POT_CONFLICTING_TOTAL => (
   3270                 409,
   3271                 "The total amount in the money pot is different from the amount required by the request. The client should fetch the current pot total and retry with the latest amount to succeed.",
   3272             ),
   3273             MERCHANT_PRIVATE_POST_RESERVES_UNSUPPORTED_WIRE_METHOD => (
   3274                 409,
   3275                 "The requested wire method is not supported by the exchange.",
   3276             ),
   3277             MERCHANT_PRIVATE_POST_RESERVES_REWARDS_NOT_ALLOWED => {
   3278                 (409, "The requested exchange does not allow rewards.")
   3279             }
   3280             MERCHANT_PRIVATE_DELETE_RESERVES_NO_SUCH_RESERVE => (
   3281                 404,
   3282                 "The reserve could not be deleted because it is unknown.",
   3283             ),
   3284             MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_RESERVE_EXPIRED => (
   3285                 410,
   3286                 "The reserve that was used to fund the rewards has expired.",
   3287             ),
   3288             MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_RESERVE_UNKNOWN => (
   3289                 503,
   3290                 "The reserve that was used to fund the rewards was not found in the DB.",
   3291             ),
   3292             MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_INSUFFICIENT_FUNDS => (
   3293                 0,
   3294                 "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.",
   3295             ),
   3296             MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_RESERVE_NOT_FOUND => (
   3297                 503,
   3298                 "The backend failed to find a reserve needed to authorize the reward.",
   3299             ),
   3300             MERCHANT_PRIVATE_GET_ORDERS_ID_AMOUNT_ARITHMETIC_FAILURE => (
   3301                 200,
   3302                 "The merchant backend encountered a failure in computing the deposit total.",
   3303             ),
   3304             MERCHANT_PRIVATE_POST_TEMPLATES_CONFLICT_TEMPLATE_EXISTS => {
   3305                 (409, "The template ID already exists.")
   3306             }
   3307             MERCHANT_PRIVATE_POST_OTP_DEVICES_CONFLICT_OTP_DEVICE_EXISTS => {
   3308                 (409, "The OTP device ID already exists.")
   3309             }
   3310             MERCHANT_POST_USING_TEMPLATES_AMOUNT_CONFLICT_TEMPLATES_CONTRACT_AMOUNT => (
   3311                 409,
   3312                 "Amount given in the using template and in the template contract. There is a conflict.",
   3313             ),
   3314             MERCHANT_POST_USING_TEMPLATES_SUMMARY_CONFLICT_TEMPLATES_CONTRACT_SUBJECT => (
   3315                 409,
   3316                 "Subject given in the using template and in the template contract. There is a conflict.",
   3317             ),
   3318             MERCHANT_POST_USING_TEMPLATES_NO_AMOUNT => (
   3319                 409,
   3320                 "Amount not given in the using template and in the template contract. There is a conflict.",
   3321             ),
   3322             MERCHANT_POST_USING_TEMPLATES_NO_SUMMARY => (
   3323                 409,
   3324                 "Subject not given in the using template and in the template contract. There is a conflict.",
   3325             ),
   3326             MERCHANT_POST_USING_TEMPLATES_WRONG_TYPE => (
   3327                 409,
   3328                 "The selected template has a different type than the one specified in the request of the client. This may happen if the template was updated since the last time the client fetched it. The client should re-fetch the current template and send a request of the correct type.",
   3329             ),
   3330             MERCHANT_POST_USING_TEMPLATES_WRONG_PRODUCT => (
   3331                 409,
   3332                 "The selected template does not allow one of the specified products to be included in the order. This may happen if the template was updated since the last time the client fetched it. The client should re-fetch the current template and send a request of the correct type.",
   3333             ),
   3334             MERCHANT_POST_USING_TEMPLATES_NO_CURRENCY => (
   3335                 409,
   3336                 "The selected combination of products does not allow the backend to compute a price for the order in any of the supported currencies. This may happen if the template was updated since the last time the client fetched it or if the wallet assembled an unsupported combination of products. The site administrator might want to specify additional prices for products, while the client should re-fetch the current template and send a request with a combination of products for which prices exist in the same currency.",
   3337             ),
   3338             MERCHANT_PRIVATE_POST_WEBHOOKS_CONFLICT_WEBHOOK_EXISTS => {
   3339                 (409, "The webhook ID elready exists.")
   3340             }
   3341             MERCHANT_PRIVATE_POST_PENDING_WEBHOOKS_CONFLICT_PENDING_WEBHOOK_EXISTS => {
   3342                 (409, "The webhook serial elready exists.")
   3343             }
   3344             AUDITOR_GENERIC_UNAUTHORIZED => (
   3345                 401,
   3346                 "The auditor refused the connection due to a lack of authorization.",
   3347             ),
   3348             AUDITOR_GENERIC_METHOD_NOT_ALLOWED => (405, "This method is not allowed here."),
   3349             AUDITOR_DEPOSIT_CONFIRMATION_SIGNATURE_INVALID => (
   3350                 403,
   3351                 "The signature from the exchange on the deposit confirmation is invalid.",
   3352             ),
   3353             AUDITOR_EXCHANGE_SIGNING_KEY_REVOKED => (
   3354                 410,
   3355                 "The exchange key used for the signature on the deposit confirmation was revoked.",
   3356             ),
   3357             AUDITOR_RESOURCE_NOT_FOUND => (404, "The requested resource could not be found."),
   3358             AUDITOR_URI_MISSING_PATH_COMPONENT => (400, "The URI is missing a path component."),
   3359             BANK_SAME_ACCOUNT => (
   3360                 400,
   3361                 "Wire transfer attempted with credit and debit party being the same bank account.",
   3362             ),
   3363             BANK_UNALLOWED_DEBIT => (
   3364                 409,
   3365                 "Wire transfer impossible, due to financial limitation of the party that attempted the payment.",
   3366             ),
   3367             BANK_NEGATIVE_NUMBER_AMOUNT => (
   3368                 400,
   3369                 "Negative numbers are not allowed (as value and/or fraction) to instantiate an amount object.",
   3370             ),
   3371             BANK_NUMBER_TOO_BIG => (
   3372                 400,
   3373                 "A too big number was used (as value and/or fraction) to instantiate an amount object.",
   3374             ),
   3375             BANK_UNKNOWN_ACCOUNT => (
   3376                 404,
   3377                 "The bank account referenced in the requested operation was not found.",
   3378             ),
   3379             BANK_TRANSACTION_NOT_FOUND => (
   3380                 404,
   3381                 "The transaction referenced in the requested operation (typically a reject operation), was not found.",
   3382             ),
   3383             BANK_BAD_FORMAT_AMOUNT => (400, "Bank received a malformed amount string."),
   3384             BANK_REJECT_NO_RIGHTS => (
   3385                 403,
   3386                 "The client does not own the account credited by the transaction which is to be rejected, so it has no rights do reject it.",
   3387             ),
   3388             BANK_UNMANAGED_EXCEPTION => (
   3389                 500,
   3390                 "This error code is returned when no known exception types captured the exception.",
   3391             ),
   3392             BANK_SOFT_EXCEPTION => (
   3393                 500,
   3394                 "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.",
   3395             ),
   3396             BANK_TRANSFER_REQUEST_UID_REUSED => (
   3397                 409,
   3398                 "The request UID for a request to transfer funds has already been used, but with different details for the transfer.",
   3399             ),
   3400             BANK_WITHDRAWAL_OPERATION_RESERVE_SELECTION_CONFLICT => (
   3401                 409,
   3402                 "The withdrawal operation already has a reserve selected.  The current request conflicts with the existing selection.",
   3403             ),
   3404             BANK_DUPLICATE_RESERVE_PUB_SUBJECT => (
   3405                 409,
   3406                 "The wire transfer subject duplicates an existing reserve public key. But wire transfer subjects must be unique.",
   3407             ),
   3408             BANK_ANCIENT_TRANSACTION_GONE => (
   3409                 410,
   3410                 "The client requested a transaction that is so far in the past, that it has been forgotten by the bank.",
   3411             ),
   3412             BANK_ABORT_CONFIRM_CONFLICT => (
   3413                 409,
   3414                 "The client attempted to abort a transaction that was already confirmed.",
   3415             ),
   3416             BANK_CONFIRM_ABORT_CONFLICT => (
   3417                 409,
   3418                 "The client attempted to confirm a transaction that was already aborted.",
   3419             ),
   3420             BANK_REGISTER_CONFLICT => (
   3421                 409,
   3422                 "The client attempted to register an account with the same name.",
   3423             ),
   3424             BANK_POST_WITHDRAWAL_OPERATION_REQUIRED => (
   3425                 400,
   3426                 "The client attempted to confirm a withdrawal operation before the wallet posted the required details.",
   3427             ),
   3428             BANK_RESERVED_USERNAME_CONFLICT => (
   3429                 409,
   3430                 "The client tried to register a new account under a reserved username (like 'admin' for example).",
   3431             ),
   3432             BANK_REGISTER_USERNAME_REUSE => (
   3433                 409,
   3434                 "The client tried to register a new account with an username already in use.",
   3435             ),
   3436             BANK_REGISTER_PAYTO_URI_REUSE => (
   3437                 409,
   3438                 "The client tried to register a new account with a payto:// URI already in use.",
   3439             ),
   3440             BANK_ACCOUNT_BALANCE_NOT_ZERO => (
   3441                 409,
   3442                 "The client tried to delete an account with a non null balance.",
   3443             ),
   3444             BANK_UNKNOWN_CREDITOR => (
   3445                 409,
   3446                 "The client tried to create a transaction or an operation that credit an unknown account.",
   3447             ),
   3448             BANK_UNKNOWN_DEBTOR => (
   3449                 409,
   3450                 "The client tried to create a transaction or an operation that debit an unknown account.",
   3451             ),
   3452             BANK_ACCOUNT_IS_EXCHANGE => (
   3453                 409,
   3454                 "The client tried to perform an action prohibited for exchange accounts.",
   3455             ),
   3456             BANK_ACCOUNT_IS_NOT_EXCHANGE => (
   3457                 409,
   3458                 "The client tried to perform an action reserved for exchange accounts.",
   3459             ),
   3460             BANK_BAD_CONVERSION => (409, "Received currency conversion is wrong."),
   3461             BANK_MISSING_TAN_INFO => (
   3462                 409,
   3463                 "The account referenced in this operation is missing tan info for the chosen channel.",
   3464             ),
   3465             BANK_CONFIRM_INCOMPLETE => (
   3466                 409,
   3467                 "The client attempted to confirm a transaction with incomplete info.",
   3468             ),
   3469             BANK_TAN_RATE_LIMITED => (
   3470                 429,
   3471                 "The request rate is too high. The server is refusing requests to guard against brute-force attacks.",
   3472             ),
   3473             BANK_TAN_CHANNEL_NOT_SUPPORTED => (501, "This TAN channel is not supported."),
   3474             BANK_TAN_CHANNEL_SCRIPT_FAILED => (
   3475                 500,
   3476                 "Failed to send TAN using the helper script. Either script is not found, or script timeout, or script terminated with a non-successful result.",
   3477             ),
   3478             BANK_TAN_CHALLENGE_FAILED => {
   3479                 (403, "The client's response to the challenge was invalid.")
   3480             }
   3481             BANK_NON_ADMIN_PATCH_LEGAL_NAME => (
   3482                 409,
   3483                 "A non-admin user has tried to change their legal name.",
   3484             ),
   3485             BANK_NON_ADMIN_PATCH_DEBT_LIMIT => (
   3486                 409,
   3487                 "A non-admin user has tried to change their debt limit.",
   3488             ),
   3489             BANK_NON_ADMIN_PATCH_MISSING_OLD_PASSWORD => (
   3490                 409,
   3491                 "A non-admin user has tried to change their password whihout providing the current one.",
   3492             ),
   3493             BANK_PATCH_BAD_OLD_PASSWORD => (
   3494                 409,
   3495                 "Provided old password does not match current password.",
   3496             ),
   3497             BANK_PATCH_ADMIN_EXCHANGE => (409, "An admin user has tried to become an exchange."),
   3498             BANK_NON_ADMIN_PATCH_CASHOUT => (
   3499                 409,
   3500                 "A non-admin user has tried to change their cashout account.",
   3501             ),
   3502             BANK_NON_ADMIN_PATCH_CONTACT => (
   3503                 409,
   3504                 "A non-admin user has tried to change their contact info.",
   3505             ),
   3506             BANK_ADMIN_CREDITOR => (
   3507                 409,
   3508                 "The client tried to create a transaction that credit the admin account.",
   3509             ),
   3510             BANK_CHALLENGE_NOT_FOUND => (404, "The referenced challenge was not found."),
   3511             BANK_TAN_CHALLENGE_EXPIRED => (409, "The referenced challenge has expired."),
   3512             BANK_NON_ADMIN_SET_TAN_CHANNEL => (
   3513                 409,
   3514                 "A non-admin user has tried to create an account with 2fa.",
   3515             ),
   3516             BANK_NON_ADMIN_SET_MIN_CASHOUT => (
   3517                 409,
   3518                 "A non-admin user has tried to set their minimum cashout amount.",
   3519             ),
   3520             BANK_CONVERSION_AMOUNT_TO_SMALL => (
   3521                 409,
   3522                 "Amount of currency conversion it less than the minimum allowed.",
   3523             ),
   3524             BANK_AMOUNT_DIFFERS => (409, "Specified amount will not work for this withdrawal."),
   3525             BANK_AMOUNT_REQUIRED => (409, "The backend requires an amount to be specified."),
   3526             BANK_PASSWORD_TOO_SHORT => (409, "Provided password is too short."),
   3527             BANK_PASSWORD_TOO_LONG => (409, "Provided password is too long."),
   3528             BANK_ACCOUNT_LOCKED => (
   3529                 403,
   3530                 "Bank account is locked and cannot authenticate using his password.",
   3531             ),
   3532             BANK_UPDATE_ABORT_CONFLICT => (
   3533                 409,
   3534                 "The client attempted to update a transaction' details that was already aborted.",
   3535             ),
   3536             BANK_TRANSFER_WTID_REUSED => (
   3537                 409,
   3538                 "The wtid for a request to transfer funds has already been used, but with a different request unpaid.",
   3539             ),
   3540             BANK_NON_ADMIN_SET_CONVERSION_RATE_CLASS => (
   3541                 409,
   3542                 "A non-admin user has tried to set their conversion rate class",
   3543             ),
   3544             BANK_CONVERSION_RATE_CLASS_UNKNOWN => {
   3545                 (409, "The referenced conversion rate class was not found")
   3546             }
   3547             BANK_NAME_REUSE => (409, "The client tried to use an already taken name."),
   3548             BANK_UNSUPPORTED_SUBJECT_FORMAT => (409, "This subject format is not supported."),
   3549             BANK_DERIVATION_REUSE => (409, "The derived subject is already used."),
   3550             BANK_BAD_SIGNATURE => (409, "The provided signature is invalid."),
   3551             BANK_OLD_TIMESTAMP => (409, "The provided timestamp is too old."),
   3552             BANK_TRANSFER_MAPPING_REUSED => (
   3553                 409,
   3554                 "The authorization_pub for a request to transfer funds has already been used for another non recurrent transfer.",
   3555             ),
   3556             BANK_TRANSFER_MAPPING_UNKNOWN => (
   3557                 409,
   3558                 "The authorization_pub for a request to transfer funds is not currently registered.",
   3559             ),
   3560             SYNC_ACCOUNT_UNKNOWN => (
   3561                 404,
   3562                 "The sync service failed find the account in its database.",
   3563             ),
   3564             SYNC_BAD_IF_NONE_MATCH => (
   3565                 400,
   3566                 "The SHA-512 hash provided in the If-None-Match header is malformed.",
   3567             ),
   3568             SYNC_BAD_IF_MATCH => (
   3569                 400,
   3570                 "The SHA-512 hash provided in the If-Match header is malformed or missing.",
   3571             ),
   3572             SYNC_BAD_SYNC_SIGNATURE => (
   3573                 400,
   3574                 "The signature provided in the \"Sync-Signature\" header is malformed or missing.",
   3575             ),
   3576             SYNC_INVALID_SIGNATURE => (
   3577                 403,
   3578                 "The signature provided in the \"Sync-Signature\" header does not match the account, old or new Etags.",
   3579             ),
   3580             SYNC_MALFORMED_CONTENT_LENGTH => (
   3581                 400,
   3582                 "The \"Content-length\" field for the upload is not a number.",
   3583             ),
   3584             SYNC_EXCESSIVE_CONTENT_LENGTH => (
   3585                 413,
   3586                 "The \"Content-length\" field for the upload is too big based on the server's terms of service.",
   3587             ),
   3588             SYNC_OUT_OF_MEMORY_ON_CONTENT_LENGTH => (
   3589                 413,
   3590                 "The server is out of memory to handle the upload. Trying again later may succeed.",
   3591             ),
   3592             SYNC_INVALID_UPLOAD => (400, "The uploaded data does not match the Etag."),
   3593             SYNC_PAYMENT_GENERIC_TIMEOUT => (
   3594                 408,
   3595                 "HTTP server experienced a timeout while awaiting promised payment.",
   3596             ),
   3597             SYNC_PAYMENT_CREATE_BACKEND_ERROR => (
   3598                 500,
   3599                 "Sync could not setup the payment request with its own backend.",
   3600             ),
   3601             SYNC_PREVIOUS_BACKUP_UNKNOWN => (
   3602                 404,
   3603                 "The sync service failed find the backup to be updated in its database.",
   3604             ),
   3605             SYNC_MISSING_CONTENT_LENGTH => (
   3606                 400,
   3607                 "The \"Content-length\" field for the upload is missing.",
   3608             ),
   3609             SYNC_GENERIC_BACKEND_ERROR => (
   3610                 502,
   3611                 "Sync had problems communicating with its payment backend.",
   3612             ),
   3613             SYNC_GENERIC_BACKEND_TIMEOUT => (
   3614                 504,
   3615                 "Sync experienced a timeout communicating with its payment backend.",
   3616             ),
   3617             WALLET_EXCHANGE_PROTOCOL_VERSION_INCOMPATIBLE => (
   3618                 501,
   3619                 "The wallet does not implement a version of the exchange protocol that is compatible with the protocol version of the exchange.",
   3620             ),
   3621             WALLET_UNEXPECTED_EXCEPTION => (
   3622                 500,
   3623                 "The wallet encountered an unexpected exception.  This is likely a bug in the wallet implementation.",
   3624             ),
   3625             WALLET_RECEIVED_MALFORMED_RESPONSE => (
   3626                 0,
   3627                 "The wallet received a response from a server, but the response can't be parsed.",
   3628             ),
   3629             WALLET_NETWORK_ERROR => (
   3630                 0,
   3631                 "The wallet tried to make a network request, but it received no response.",
   3632             ),
   3633             WALLET_HTTP_REQUEST_THROTTLED => (
   3634                 0,
   3635                 "The wallet tried to make a network request, but it was throttled.",
   3636             ),
   3637             WALLET_UNEXPECTED_REQUEST_ERROR => (
   3638                 0,
   3639                 "The wallet made a request to a service, but received an error response it does not know how to handle.",
   3640             ),
   3641             WALLET_EXCHANGE_DENOMINATIONS_INSUFFICIENT => (
   3642                 0,
   3643                 "The denominations offered by the exchange are insufficient.  Likely the exchange is badly configured or not maintained.",
   3644             ),
   3645             WALLET_CORE_API_OPERATION_UNKNOWN => (
   3646                 0,
   3647                 "The wallet does not support the operation requested by a client.",
   3648             ),
   3649             WALLET_INVALID_TALER_PAY_URI => (0, "The given taler://pay URI is invalid."),
   3650             WALLET_EXCHANGE_COIN_SIGNATURE_INVALID => (
   3651                 0,
   3652                 "The signature on a coin by the exchange's denomination key is invalid after unblinding it.",
   3653             ),
   3654             WALLET_CORE_NOT_AVAILABLE => (0, "The wallet core service is not available."),
   3655             WALLET_WITHDRAWAL_OPERATION_ABORTED_BY_BANK => (
   3656                 0,
   3657                 "The bank has aborted a withdrawal operation, and thus a withdrawal can't complete.",
   3658             ),
   3659             WALLET_HTTP_REQUEST_GENERIC_TIMEOUT => {
   3660                 (0, "An HTTP request made by the wallet timed out.")
   3661             }
   3662             WALLET_ORDER_ALREADY_CLAIMED => {
   3663                 (0, "The order has already been claimed by another wallet.")
   3664             }
   3665             WALLET_WITHDRAWAL_GROUP_INCOMPLETE => (
   3666                 0,
   3667                 "A group of withdrawal operations (typically for the same reserve at the same exchange) has errors and will be tried again later.",
   3668             ),
   3669             WALLET_REWARD_COIN_SIGNATURE_INVALID => (
   3670                 0,
   3671                 "The signature on a coin by the exchange's denomination key (obtained through the merchant via a reward) is invalid after unblinding it.",
   3672             ),
   3673             WALLET_BANK_INTEGRATION_PROTOCOL_VERSION_INCOMPATIBLE => (
   3674                 0,
   3675                 "The wallet does not implement a version of the bank integration API that is compatible with the version offered by the bank.",
   3676             ),
   3677             WALLET_CONTRACT_TERMS_BASE_URL_MISMATCH => (
   3678                 0,
   3679                 "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.",
   3680             ),
   3681             WALLET_CONTRACT_TERMS_SIGNATURE_INVALID => (
   3682                 0,
   3683                 "The merchant's signature on the contract terms is invalid.",
   3684             ),
   3685             WALLET_CONTRACT_TERMS_MALFORMED => {
   3686                 (0, "The contract terms given by the merchant are malformed.")
   3687             }
   3688             WALLET_PENDING_OPERATION_FAILED => (
   3689                 0,
   3690                 "A pending operation failed, and thus the request can't be completed.",
   3691             ),
   3692             WALLET_PAY_MERCHANT_SERVER_ERROR => (
   3693                 0,
   3694                 "A payment was attempted, but the merchant had an internal server error (5xx).",
   3695             ),
   3696             WALLET_CRYPTO_WORKER_ERROR => (0, "The crypto worker failed."),
   3697             WALLET_CRYPTO_WORKER_BAD_REQUEST => (0, "The crypto worker received a bad request."),
   3698             WALLET_WITHDRAWAL_KYC_REQUIRED => {
   3699                 (0, "A KYC step is required before withdrawal can proceed.")
   3700             }
   3701             WALLET_DEPOSIT_GROUP_INSUFFICIENT_BALANCE => (
   3702                 0,
   3703                 "The wallet does not have sufficient balance to create a deposit group.",
   3704             ),
   3705             WALLET_PEER_PUSH_PAYMENT_INSUFFICIENT_BALANCE => (
   3706                 0,
   3707                 "The wallet does not have sufficient balance to create a peer push payment.",
   3708             ),
   3709             WALLET_PEER_PULL_PAYMENT_INSUFFICIENT_BALANCE => (
   3710                 0,
   3711                 "The wallet does not have sufficient balance to pay for an invoice.",
   3712             ),
   3713             WALLET_REFRESH_GROUP_INCOMPLETE => (
   3714                 0,
   3715                 "A group of refresh operations has errors and will be tried again later.",
   3716             ),
   3717             WALLET_EXCHANGE_BASE_URL_MISMATCH => (
   3718                 0,
   3719                 "The exchange's self-reported base URL does not match the one that the wallet is using.",
   3720             ),
   3721             WALLET_ORDER_ALREADY_PAID => (0, "The order has already been paid by another wallet."),
   3722             WALLET_EXCHANGE_UNAVAILABLE => (
   3723                 0,
   3724                 "An exchange that is required for some request is currently not available.",
   3725             ),
   3726             WALLET_EXCHANGE_ENTRY_USED => (
   3727                 0,
   3728                 "An exchange entry is still used by the exchange, thus it can't be deleted without purging.",
   3729             ),
   3730             WALLET_DB_UNAVAILABLE => (
   3731                 0,
   3732                 "The wallet database is unavailable and the wallet thus is not operational.",
   3733             ),
   3734             WALLET_TALER_URI_MALFORMED => (0, "A taler:// URI is malformed and can't be parsed."),
   3735             WALLET_CORE_REQUEST_CANCELLED => (
   3736                 0,
   3737                 "A wallet-core request was cancelled and thus can't provide a response.",
   3738             ),
   3739             WALLET_EXCHANGE_TOS_NOT_ACCEPTED => (
   3740                 0,
   3741                 "A wallet-core request failed because the user needs to first accept the exchange's terms of service.",
   3742             ),
   3743             WALLET_EXCHANGE_ENTRY_UPDATE_CONFLICT => (
   3744                 0,
   3745                 "An exchange entry could not be updated, as the exchange's new details conflict with the new details.",
   3746             ),
   3747             WALLET_EXCHANGE_ENTRY_OUTDATED => (
   3748                 0,
   3749                 "The wallet's information about the exchange is outdated.",
   3750             ),
   3751             WALLET_PAY_MERCHANT_KYC_MISSING => (
   3752                 0,
   3753                 "The merchant needs to do KYC first, the payment could not be completed.",
   3754             ),
   3755             WALLET_PEER_PULL_DEBIT_PURSE_GONE => (
   3756                 0,
   3757                 "A peer-pull-debit transaction was aborted because the exchange reported the purse as gone.",
   3758             ),
   3759             WALLET_TRANSACTION_ABORTED_BY_USER => (
   3760                 0,
   3761                 "A transaction was aborted on explicit request by the user.",
   3762             ),
   3763             WALLET_TRANSACTION_ABANDONED_BY_USER => (
   3764                 0,
   3765                 "A transaction was abandoned on explicit request by the user.",
   3766             ),
   3767             WALLET_PAY_MERCHANT_ORDER_GONE => (
   3768                 0,
   3769                 "A payment was attempted, but the merchant claims the order is gone (likely expired).",
   3770             ),
   3771             WALLET_EXCHANGE_ENTRY_NOT_FOUND => (
   3772                 0,
   3773                 "The wallet does not have an entry for the requested exchange.",
   3774             ),
   3775             WALLET_REQUEST_TRANSACTION_STATE_UNSUPPORTED => (
   3776                 0,
   3777                 "The wallet is not able to process the request due to the transaction's state.",
   3778             ),
   3779             WALLET_TRANSACTION_PROTOCOL_VIOLATION => (
   3780                 0,
   3781                 "A transaction could not be processed due to an unrecoverable protocol violation.",
   3782             ),
   3783             WALLET_CORE_API_BAD_REQUEST => {
   3784                 (0, "A parameter in the request is malformed or missing.")
   3785             }
   3786             WALLET_MERCHANT_ORDER_NOT_FOUND => (
   3787                 0,
   3788                 "The order could not be found. Maybe the merchant deleted it.",
   3789             ),
   3790             ANASTASIS_GENERIC_BACKEND_TIMEOUT => {
   3791                 (504, "We encountered a timeout with our payment backend.")
   3792             }
   3793             ANASTASIS_GENERIC_INVALID_PAYMENT_REQUEST => (
   3794                 0,
   3795                 "The backend requested payment, but the request is malformed.",
   3796             ),
   3797             ANASTASIS_GENERIC_BACKEND_ERROR => (
   3798                 502,
   3799                 "The backend got an unexpected reply from the payment processor.",
   3800             ),
   3801             ANASTASIS_GENERIC_MISSING_CONTENT_LENGTH => (
   3802                 400,
   3803                 "The \"Content-length\" field for the upload is missing.",
   3804             ),
   3805             ANASTASIS_GENERIC_MALFORMED_CONTENT_LENGTH => (
   3806                 400,
   3807                 "The \"Content-length\" field for the upload is malformed.",
   3808             ),
   3809             ANASTASIS_GENERIC_ORDER_CREATE_BACKEND_ERROR => (
   3810                 502,
   3811                 "The backend failed to setup an order with the payment processor.",
   3812             ),
   3813             ANASTASIS_GENERIC_PAYMENT_CHECK_UNAUTHORIZED => (
   3814                 500,
   3815                 "The backend was not authorized to check for payment with the payment processor.",
   3816             ),
   3817             ANASTASIS_GENERIC_PAYMENT_CHECK_START_FAILED => (
   3818                 500,
   3819                 "The backend could not check payment status with the payment processor.",
   3820             ),
   3821             ANASTASIS_GENERIC_PROVIDER_UNREACHABLE => {
   3822                 (0, "The Anastasis provider could not be reached.")
   3823             }
   3824             ANASTASIS_PAYMENT_GENERIC_TIMEOUT => (
   3825                 408,
   3826                 "HTTP server experienced a timeout while awaiting promised payment.",
   3827             ),
   3828             ANASTASIS_TRUTH_UNKNOWN => (404, "The key share is unknown to the provider."),
   3829             ANASTASIS_TRUTH_AUTHORIZATION_METHOD_NO_LONGER_SUPPORTED => (
   3830                 500,
   3831                 "The authorization method used for the key share is no longer supported by the provider.",
   3832             ),
   3833             ANASTASIS_TRUTH_CHALLENGE_RESPONSE_REQUIRED => {
   3834                 (403, "The client needs to respond to the challenge.")
   3835             }
   3836             ANASTASIS_TRUTH_CHALLENGE_FAILED => {
   3837                 (403, "The client's response to the challenge was invalid.")
   3838             }
   3839             ANASTASIS_TRUTH_CHALLENGE_UNKNOWN => (
   3840                 404,
   3841                 "The backend is not aware of having issued the provided challenge code. Either this is the wrong code, or it has expired.",
   3842             ),
   3843             ANASTASIS_TRUTH_AUTHORIZATION_START_FAILED => (
   3844                 500,
   3845                 "The backend failed to initiate the authorization process.",
   3846             ),
   3847             ANASTASIS_TRUTH_KEY_SHARE_GONE => (
   3848                 404,
   3849                 "The authorization succeeded, but the key share is no longer available.",
   3850             ),
   3851             ANASTASIS_TRUTH_ORDER_DISAPPEARED => (
   3852                 502,
   3853                 "The backend forgot the order we asked the client to pay for",
   3854             ),
   3855             ANASTASIS_TRUTH_BACKEND_EXCHANGE_BAD => (
   3856                 502,
   3857                 "The backend itself reported a bad exchange interaction.",
   3858             ),
   3859             ANASTASIS_TRUTH_UNEXPECTED_PAYMENT_STATUS => (
   3860                 500,
   3861                 "The backend reported a payment status we did not expect.",
   3862             ),
   3863             ANASTASIS_TRUTH_PAYMENT_CREATE_BACKEND_ERROR => {
   3864                 (502, "The backend failed to setup the order for payment.")
   3865             }
   3866             ANASTASIS_TRUTH_DECRYPTION_FAILED => (
   3867                 400,
   3868                 "The decryption of the key share failed with the provided key.",
   3869             ),
   3870             ANASTASIS_TRUTH_RATE_LIMITED => (
   3871                 429,
   3872                 "The request rate is too high. The server is refusing requests to guard against brute-force attacks.",
   3873             ),
   3874             ANASTASIS_TRUTH_CHALLENGE_WRONG_METHOD => (
   3875                 400,
   3876                 "A request to issue a challenge is not valid for this authentication method.",
   3877             ),
   3878             ANASTASIS_TRUTH_UPLOAD_UUID_EXISTS => (
   3879                 409,
   3880                 "The backend failed to store the key share because the UUID is already in use.",
   3881             ),
   3882             ANASTASIS_TRUTH_UPLOAD_METHOD_NOT_SUPPORTED => (
   3883                 400,
   3884                 "The backend failed to store the key share because the authorization method is not supported.",
   3885             ),
   3886             ANASTASIS_SMS_PHONE_INVALID => (
   3887                 409,
   3888                 "The provided phone number is not an acceptable number.",
   3889             ),
   3890             ANASTASIS_SMS_HELPER_EXEC_FAILED => {
   3891                 (500, "Failed to run the SMS transmission helper process.")
   3892             }
   3893             ANASTASIS_SMS_HELPER_COMMAND_FAILED => (
   3894                 500,
   3895                 "Provider failed to send SMS. Helper terminated with a non-successful result.",
   3896             ),
   3897             ANASTASIS_EMAIL_INVALID => (
   3898                 409,
   3899                 "The provided email address is not an acceptable address.",
   3900             ),
   3901             ANASTASIS_EMAIL_HELPER_EXEC_FAILED => {
   3902                 (500, "Failed to run the E-mail transmission helper process.")
   3903             }
   3904             ANASTASIS_EMAIL_HELPER_COMMAND_FAILED => (
   3905                 500,
   3906                 "Provider failed to send E-mail. Helper terminated with a non-successful result.",
   3907             ),
   3908             ANASTASIS_POST_INVALID => (
   3909                 409,
   3910                 "The provided postal address is not an acceptable address.",
   3911             ),
   3912             ANASTASIS_POST_HELPER_EXEC_FAILED => {
   3913                 (500, "Failed to run the mail transmission helper process.")
   3914             }
   3915             ANASTASIS_POST_HELPER_COMMAND_FAILED => (
   3916                 500,
   3917                 "Provider failed to send mail. Helper terminated with a non-successful result.",
   3918             ),
   3919             ANASTASIS_IBAN_INVALID => (409, "The provided IBAN address is not an acceptable IBAN."),
   3920             ANASTASIS_IBAN_MISSING_TRANSFER => (
   3921                 403,
   3922                 "The provider has not yet received the IBAN wire transfer authorizing the disclosure of the key share.",
   3923             ),
   3924             ANASTASIS_TOTP_KEY_MISSING => (
   3925                 409,
   3926                 "The backend did not find a TOTP key in the data provided.",
   3927             ),
   3928             ANASTASIS_TOTP_KEY_INVALID => (
   3929                 409,
   3930                 "The key provided does not satisfy the format restrictions for an Anastasis TOTP key.",
   3931             ),
   3932             ANASTASIS_POLICY_BAD_IF_NONE_MATCH => {
   3933                 (400, "The given if-none-match header is malformed.")
   3934             }
   3935             ANASTASIS_POLICY_OUT_OF_MEMORY_ON_CONTENT_LENGTH => (
   3936                 413,
   3937                 "The server is out of memory to handle the upload. Trying again later may succeed.",
   3938             ),
   3939             ANASTASIS_POLICY_BAD_SIGNATURE => (
   3940                 400,
   3941                 "The signature provided in the \"Anastasis-Policy-Signature\" header is malformed or missing.",
   3942             ),
   3943             ANASTASIS_POLICY_BAD_IF_MATCH => (400, "The given if-match header is malformed."),
   3944             ANASTASIS_POLICY_INVALID_UPLOAD => (400, "The uploaded data does not match the Etag."),
   3945             ANASTASIS_POLICY_NOT_FOUND => (404, "The provider is unaware of the requested policy."),
   3946             ANASTASIS_REDUCER_ACTION_INVALID => (
   3947                 0,
   3948                 "The given action is invalid for the current state of the reducer.",
   3949             ),
   3950             ANASTASIS_REDUCER_STATE_INVALID => (0, "The given state of the reducer is invalid."),
   3951             ANASTASIS_REDUCER_INPUT_INVALID => (0, "The given input to the reducer is invalid."),
   3952             ANASTASIS_REDUCER_AUTHENTICATION_METHOD_NOT_SUPPORTED => (
   3953                 0,
   3954                 "The selected authentication method does not work for the Anastasis provider.",
   3955             ),
   3956             ANASTASIS_REDUCER_INPUT_INVALID_FOR_STATE => (
   3957                 0,
   3958                 "The given input and action do not work for the current state.",
   3959             ),
   3960             ANASTASIS_REDUCER_BACKEND_FAILURE => (
   3961                 0,
   3962                 "We experienced an unexpected failure interacting with the backend.",
   3963             ),
   3964             ANASTASIS_REDUCER_RESOURCE_MALFORMED => (
   3965                 0,
   3966                 "The contents of a resource file did not match our expectations.",
   3967             ),
   3968             ANASTASIS_REDUCER_RESOURCE_MISSING => (0, "A required resource file is missing."),
   3969             ANASTASIS_REDUCER_INPUT_REGEX_FAILED => {
   3970                 (0, "An input did not match the regular expression.")
   3971             }
   3972             ANASTASIS_REDUCER_INPUT_VALIDATION_FAILED => {
   3973                 (0, "An input did not match the custom validation logic.")
   3974             }
   3975             ANASTASIS_REDUCER_POLICY_LOOKUP_FAILED => (
   3976                 0,
   3977                 "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.",
   3978             ),
   3979             ANASTASIS_REDUCER_BACKUP_PROVIDER_FAILED => {
   3980                 (0, "Anastasis provider reported a fatal failure.")
   3981             }
   3982             ANASTASIS_REDUCER_PROVIDER_CONFIG_FAILED => (
   3983                 0,
   3984                 "Anastasis provider failed to respond to the configuration request.",
   3985             ),
   3986             ANASTASIS_REDUCER_POLICY_MALFORMED => (
   3987                 0,
   3988                 "The policy we downloaded is malformed. Must have been a client error while creating the backup.",
   3989             ),
   3990             ANASTASIS_REDUCER_NETWORK_FAILED => (
   3991                 0,
   3992                 "We failed to obtain the policy, likely due to a network issue.",
   3993             ),
   3994             ANASTASIS_REDUCER_SECRET_MALFORMED => {
   3995                 (0, "The recovered secret did not match the required syntax.")
   3996             }
   3997             ANASTASIS_REDUCER_CHALLENGE_DATA_TOO_BIG => (
   3998                 0,
   3999                 "The challenge data provided is too large for the available providers.",
   4000             ),
   4001             ANASTASIS_REDUCER_SECRET_TOO_BIG => (
   4002                 0,
   4003                 "The provided core secret is too large for some of the providers.",
   4004             ),
   4005             ANASTASIS_REDUCER_PROVIDER_INVALID_CONFIG => {
   4006                 (0, "The provider returned in invalid configuration.")
   4007             }
   4008             ANASTASIS_REDUCER_INTERNAL_ERROR => (
   4009                 0,
   4010                 "The reducer encountered an internal error, likely a bug that needs to be reported.",
   4011             ),
   4012             ANASTASIS_REDUCER_PROVIDERS_ALREADY_SYNCED => {
   4013                 (0, "The reducer already synchronized with all providers.")
   4014             }
   4015             DONAU_GENERIC_KEYS_MISSING => (
   4016                 503,
   4017                 "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.",
   4018             ),
   4019             DONAU_CHARITY_SIGNATURE_INVALID => {
   4020                 (403, "The signature of the charity key is not valid.")
   4021             }
   4022             DONAU_CHARITY_NOT_FOUND => (404, "The charity is unknown."),
   4023             DONAU_EXCEEDING_DONATION_LIMIT => (
   4024                 400,
   4025                 "The donation amount specified in the request exceeds the limit of the charity.",
   4026             ),
   4027             DONAU_GENERIC_DONATION_UNIT_UNKNOWN => (
   4028                 404,
   4029                 "The Donau is not aware of the donation unit requested for the operation.",
   4030             ),
   4031             DONAU_DONATION_UNIT_HELPER_UNAVAILABLE => (
   4032                 502,
   4033                 "The Donau failed to talk to the process responsible for its private donation unit keys or the helpers had no donation units (properly) configured.",
   4034             ),
   4035             DONAU_SIGNKEY_HELPER_UNAVAILABLE => (
   4036                 502,
   4037                 "The Donau failed to talk to the process responsible for its private signing keys.",
   4038             ),
   4039             DONAU_SIGNKEY_HELPER_BUG => (
   4040                 500,
   4041                 "The response from the online signing key helper process was malformed.",
   4042             ),
   4043             DONAU_GENERIC_WRONG_NUMBER_OF_SEGMENTS => (
   4044                 404,
   4045                 "The number of segments included in the URI does not match the number of segments expected by the endpoint.",
   4046             ),
   4047             DONAU_DONATION_RECEIPT_SIGNATURE_INVALID => {
   4048                 (403, "The signature of the donation receipt is not valid.")
   4049             }
   4050             DONAU_DONOR_IDENTIFIER_NONCE_REUSE => (
   4051                 409,
   4052                 "The client reused a unique donor identifier nonce, which is not allowed.",
   4053             ),
   4054             DONAU_CHARITY_PUB_EXISTS => (
   4055                 404,
   4056                 "A charity with the same public key is already registered.",
   4057             ),
   4058             LIBEUFIN_NEXUS_GENERIC_ERROR => (
   4059                 0,
   4060                 "A generic error happened in the LibEuFin nexus.  See the enclose details JSON for more information.",
   4061             ),
   4062             LIBEUFIN_NEXUS_UNCAUGHT_EXCEPTION => (
   4063                 500,
   4064                 "An uncaught exception happened in the LibEuFin nexus service.",
   4065             ),
   4066             LIBEUFIN_SANDBOX_GENERIC_ERROR => (
   4067                 0,
   4068                 "A generic error happened in the LibEuFin sandbox.  See the enclose details JSON for more information.",
   4069             ),
   4070             LIBEUFIN_SANDBOX_UNCAUGHT_EXCEPTION => (
   4071                 500,
   4072                 "An uncaught exception happened in the LibEuFin sandbox service.",
   4073             ),
   4074             TALDIR_METHOD_NOT_SUPPORTED => (
   4075                 404,
   4076                 "This validation method is not supported by the service.",
   4077             ),
   4078             TALDIR_REGISTER_RATE_LIMITED => (
   4079                 429,
   4080                 "Number of allowed attempts for initiating a challenge exceeded.",
   4081             ),
   4082             CHALLENGER_GENERIC_CLIENT_UNKNOWN => (404, "The client is unknown or unauthorized."),
   4083             CHALLENGER_GENERIC_CLIENT_FORBIDDEN_BAD_REDIRECT_URI => (
   4084                 403,
   4085                 "The client is not authorized to use the given redirect URI.",
   4086             ),
   4087             CHALLENGER_HELPER_EXEC_FAILED => (
   4088                 500,
   4089                 "The service failed to execute its helper process to send the challenge.",
   4090             ),
   4091             CHALLENGER_GRANT_UNKNOWN => (
   4092                 404,
   4093                 "The grant is unknown to the service (it could also have expired).",
   4094             ),
   4095             CHALLENGER_CLIENT_FORBIDDEN_BAD_CODE => {
   4096                 (403, "The code given is not even well-formed.")
   4097             }
   4098             CHALLENGER_GENERIC_VALIDATION_UNKNOWN => (
   4099                 404,
   4100                 "The service is not aware of the referenced validation process.",
   4101             ),
   4102             CHALLENGER_CLIENT_FORBIDDEN_INVALID_CODE => (403, "The code given is not valid."),
   4103             CHALLENGER_TOO_MANY_ATTEMPTS => (
   4104                 429,
   4105                 "Too many attempts have been made, validation is temporarily disabled for this address.",
   4106             ),
   4107             CHALLENGER_INVALID_PIN => (403, "The PIN code provided is incorrect."),
   4108             CHALLENGER_MISSING_ADDRESS => (
   4109                 409,
   4110                 "The token cannot be valid as no address was ever provided by the client.",
   4111             ),
   4112             CHALLENGER_CLIENT_FORBIDDEN_READ_ONLY => (
   4113                 403,
   4114                 "The client is not allowed to change the address being validated.",
   4115             ),
   4116             END => (0, "End of error code range."),
   4117         }
   4118     }
   4119 }