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