exchange

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

taler_error_codes.c (197431B)


      1 /*
      2      This file is part of GNU Taler
      3      Copyright (C) 2012-2020 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 #include <gnunet/gnunet_util_lib.h>
     24 #include <taler/taler_error_codes.h>
     25 #include <stddef.h>
     26 #include <microhttpd.h>
     27 #include <gettext.h>
     28 
     29 /**
     30  * MHD does not define our value for 0 (client-side generated code).
     31  */
     32 #define MHD_HTTP_UNINITIALIZED 0
     33 
     34 /**
     35  * A pair containing an error code and its hint.
     36  */
     37 struct ErrorCodeAndHint
     38 {
     39   /**
     40    * The error code.
     41    */
     42   enum TALER_ErrorCode ec;
     43 
     44   /**
     45    * The hint.
     46    */
     47   const char *hint;
     48 
     49   /**
     50    * The HTTP status code.
     51    */
     52   unsigned int http_code;
     53 };
     54 
     55 
     56 /**
     57  * The list of all error codes with their hints.
     58  */
     59 static const struct ErrorCodeAndHint code_hint_pairs[] = {
     60 
     61   {
     62     /* 0 */
     63     .ec = TALER_EC_NONE,
     64     .hint = "Special code to indicate success (no error).",
     65     .http_code = MHD_HTTP_UNINITIALIZED
     66   },
     67 
     68   {
     69     /* 1 */
     70     .ec = TALER_EC_INVALID,
     71     .hint =
     72       "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.",
     73     .http_code = MHD_HTTP_UNINITIALIZED
     74   },
     75 
     76   {
     77     /* 2 */
     78     .ec = TALER_EC_GENERIC_CLIENT_INTERNAL_ERROR,
     79     .hint =
     80       "An internal failure occurred on the client side. Details should be in the local logs. Check whether the latest available version is in use or file a report with the developers.",
     81     .http_code = MHD_HTTP_UNINITIALIZED
     82   },
     83 
     84   {
     85     /* 3 */
     86     .ec = TALER_EC_GENERIC_CLIENT_UNSUPPORTED_PROTOCOL_VERSION,
     87     .hint =
     88       "The client does not support the protocol version advertised by the server.",
     89     .http_code = MHD_HTTP_UNINITIALIZED
     90   },
     91 
     92   {
     93     /* 10 */
     94     .ec = TALER_EC_GENERIC_INVALID_RESPONSE,
     95     .hint =
     96       "The response received from the server was not in the expected format. Most likely, the server does not speak the GNU Taler protocol. Check the URL and the network connection to the server.",
     97     .http_code = MHD_HTTP_UNINITIALIZED
     98   },
     99 
    100   {
    101     /* 11 */
    102     .ec = TALER_EC_GENERIC_TIMEOUT,
    103     .hint =
    104       "The operation timed out. Trying again might help. Check the network connection.",
    105     .http_code = MHD_HTTP_UNINITIALIZED
    106   },
    107 
    108   {
    109     /* 12 */
    110     .ec = TALER_EC_GENERIC_VERSION_MALFORMED,
    111     .hint =
    112       "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.",
    113     .http_code = MHD_HTTP_UNINITIALIZED
    114   },
    115 
    116   {
    117     /* 13 */
    118     .ec = TALER_EC_GENERIC_REPLY_MALFORMED,
    119     .hint =
    120       "The service returned a response in the correct data format, but its content did not satisfy the protocol. File a bug report.",
    121     .http_code = MHD_HTTP_UNINITIALIZED
    122   },
    123 
    124   {
    125     /* 14 */
    126     .ec = TALER_EC_GENERIC_CONFIGURATION_INVALID,
    127     .hint =
    128       "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.",
    129     .http_code = MHD_HTTP_UNINITIALIZED
    130   },
    131 
    132   {
    133     /* 15 */
    134     .ec = TALER_EC_GENERIC_UNEXPECTED_REQUEST_ERROR,
    135     .hint =
    136       "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.",
    137     .http_code = MHD_HTTP_UNINITIALIZED
    138   },
    139 
    140   {
    141     /* 16 */
    142     .ec = TALER_EC_GENERIC_TOKEN_PERMISSION_INSUFFICIENT,
    143     .hint =
    144       "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.",
    145     .http_code = MHD_HTTP_FORBIDDEN
    146   },
    147 
    148   {
    149     /* 20 */
    150     .ec = TALER_EC_GENERIC_METHOD_INVALID,
    151     .hint =
    152       "The HTTP method used is invalid for this endpoint. This is likely a bug in the client implementation. Check whether the latest available version is in use or file a report with the developers.",
    153     .http_code = MHD_HTTP_METHOD_NOT_ALLOWED
    154   },
    155 
    156   {
    157     /* 21 */
    158     .ec = TALER_EC_GENERIC_ENDPOINT_UNKNOWN,
    159     .hint =
    160       "There is no endpoint defined for the URL provided by the client. Check whether the URL is correct or file a report with the client software developers.",
    161     .http_code = MHD_HTTP_NOT_FOUND
    162   },
    163 
    164   {
    165     /* 22 */
    166     .ec = TALER_EC_GENERIC_JSON_INVALID,
    167     .hint =
    168       "The JSON in the client's request was malformed. This is likely a bug in the client implementation. Check whether the latest available version is in use or file a report with the developers.",
    169     .http_code = MHD_HTTP_BAD_REQUEST
    170   },
    171 
    172   {
    173     /* 23 */
    174     .ec = TALER_EC_GENERIC_HTTP_HEADERS_MALFORMED,
    175     .hint =
    176       "Some of the HTTP headers provided by the client were malformed, so the server could not handle the request. This is likely a bug in the client implementation. Check whether the latest available version is in use or file a report with the developers.",
    177     .http_code = MHD_HTTP_BAD_REQUEST
    178   },
    179 
    180   {
    181     /* 24 */
    182     .ec = TALER_EC_GENERIC_PAYTO_URI_MALFORMED,
    183     .hint =
    184       "The `payto://` URI provided by the client is malformed. Check that it uses the syntax specified by RFC 8905 and that the bank account number is correct.",
    185     .http_code = MHD_HTTP_BAD_REQUEST
    186   },
    187 
    188   {
    189     /* 25 */
    190     .ec = TALER_EC_GENERIC_PARAMETER_MISSING,
    191     .hint =
    192       "A required parameter in the request was missing. This is likely a bug in the client implementation. Check whether the latest available version is in use or file a report with the developers.",
    193     .http_code = MHD_HTTP_BAD_REQUEST
    194   },
    195 
    196   {
    197     /* 26 */
    198     .ec = TALER_EC_GENERIC_PARAMETER_MALFORMED,
    199     .hint =
    200       "A parameter in the request was malformed. This is likely a bug in the client implementation. Check whether the latest available version is in use or file a report with the developers.",
    201     .http_code = MHD_HTTP_BAD_REQUEST
    202   },
    203 
    204   {
    205     /* 27 */
    206     .ec = TALER_EC_GENERIC_RESERVE_PUB_MALFORMED,
    207     .hint = "The reserve public key was malformed.",
    208     .http_code = MHD_HTTP_BAD_REQUEST
    209   },
    210 
    211   {
    212     /* 28 */
    213     .ec = TALER_EC_GENERIC_COMPRESSION_INVALID,
    214     .hint =
    215       "The body in the request could not be decompressed by the server. This is likely a bug in the client implementation. Check whether the latest available version is in use or file a report with the developers.",
    216     .http_code = MHD_HTTP_BAD_REQUEST
    217   },
    218 
    219   {
    220     /* 29 */
    221     .ec = TALER_EC_GENERIC_PATH_SEGMENT_MALFORMED,
    222     .hint =
    223       "A segment in the path of the URL provided by the client is malformed. Check that the URL uses the correct encoding.",
    224     .http_code = MHD_HTTP_BAD_REQUEST
    225   },
    226 
    227   {
    228     /* 30 */
    229     .ec = TALER_EC_GENERIC_CURRENCY_MISMATCH,
    230     .hint =
    231       "The currency involved in the operation is not acceptable for this server. Check the configuration and ensure that the currency specified for the service provider is supported by that provider.",
    232     .http_code = MHD_HTTP_BAD_REQUEST
    233   },
    234 
    235   {
    236     /* 31 */
    237     .ec = TALER_EC_GENERIC_URI_TOO_LONG,
    238     .hint =
    239       "The URI is longer than the longest URI the HTTP server is willing to parse. If this was a legitimate request, the server administrator or software developers may need to increase the limit.",
    240     .http_code = MHD_HTTP_URI_TOO_LONG
    241   },
    242 
    243   {
    244     /* 32 */
    245     .ec = TALER_EC_GENERIC_UPLOAD_EXCEEDS_LIMIT,
    246     .hint =
    247       "The body is too large for the endpoint. If this was a legitimate request, the server administrator or software developers may need to increase the limit.",
    248     .http_code = MHD_HTTP_CONTENT_TOO_LARGE
    249   },
    250 
    251   {
    252     /* 33 */
    253     .ec = TALER_EC_GENERIC_PARAMETER_EXTRA,
    254     .hint =
    255       "A parameter that must not be present was included in the request. This is likely a bug in the client implementation. Check whether the latest available version is in use or file a report with the developers.",
    256     .http_code = MHD_HTTP_BAD_REQUEST
    257   },
    258 
    259   {
    260     /* 40 */
    261     .ec = TALER_EC_GENERIC_UNAUTHORIZED,
    262     .hint =
    263       "The service refused the request due to lack of proper authorization. Accessing this endpoint requires an access token from the account owner.",
    264     .http_code = MHD_HTTP_UNAUTHORIZED
    265   },
    266 
    267   {
    268     /* 41 */
    269     .ec = TALER_EC_GENERIC_TOKEN_UNKNOWN,
    270     .hint =
    271       "The service refused the request because the given authorization token is unknown. The client should request a valid access token from the account owner.",
    272     .http_code = MHD_HTTP_UNAUTHORIZED
    273   },
    274 
    275   {
    276     /* 42 */
    277     .ec = TALER_EC_GENERIC_TOKEN_EXPIRED,
    278     .hint =
    279       "The service refused the request because the given authorization token expired. The client should request a fresh authorization token from the account owner.",
    280     .http_code = MHD_HTTP_UNAUTHORIZED
    281   },
    282 
    283   {
    284     /* 43 */
    285     .ec = TALER_EC_GENERIC_TOKEN_MALFORMED,
    286     .hint =
    287       "The service refused the request because the given authorization token is invalid or malformed. The client should check that it has the correct credentials.",
    288     .http_code = MHD_HTTP_UNAUTHORIZED
    289   },
    290 
    291   {
    292     /* 44 */
    293     .ec = TALER_EC_GENERIC_FORBIDDEN,
    294     .hint =
    295       "The service refused the request because the client lacks the required rights on the resource. The client may need different credentials to perform this operation.",
    296     .http_code = MHD_HTTP_FORBIDDEN
    297   },
    298 
    299   {
    300     /* 50 */
    301     .ec = TALER_EC_GENERIC_DB_SETUP_FAILED,
    302     .hint =
    303       "The service failed to initialize its connection to the database. The system administrator should check that the service has permission to access the database and that the database is running.",
    304     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    305   },
    306 
    307   {
    308     /* 51 */
    309     .ec = TALER_EC_GENERIC_DB_START_FAILED,
    310     .hint =
    311       "The service encountered an error while starting the database transaction. The system administrator should check that the database is running.",
    312     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    313   },
    314 
    315   {
    316     /* 52 */
    317     .ec = TALER_EC_GENERIC_DB_STORE_FAILED,
    318     .hint =
    319       "The service failed to store information in its database. The system administrator should check that the database is running and review the service logs.",
    320     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    321   },
    322 
    323   {
    324     /* 53 */
    325     .ec = TALER_EC_GENERIC_DB_FETCH_FAILED,
    326     .hint =
    327       "The service failed to fetch information from its database. The system administrator should check that the database is running and review the service logs.",
    328     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    329   },
    330 
    331   {
    332     /* 54 */
    333     .ec = TALER_EC_GENERIC_DB_COMMIT_FAILED,
    334     .hint =
    335       "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.",
    336     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    337   },
    338 
    339   {
    340     /* 55 */
    341     .ec = TALER_EC_GENERIC_DB_SOFT_FAILURE,
    342     .hint =
    343       "The service encountered an error while committing the database transaction; despite repeated retries, a conflicting transaction persisted. This indicates a serialization error. It may be caused by conflicting concurrent transactions or a missing index. Check that the latest available version is being used and file a report with the developers if the problem persists.",
    344     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    345   },
    346 
    347   {
    348     /* 56 */
    349     .ec = TALER_EC_GENERIC_DB_INVARIANT_FAILURE,
    350     .hint =
    351       "The service's database is inconsistent and violates service-internal invariants. Check whether the latest available version is in use or file a report with the developers.",
    352     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    353   },
    354 
    355   {
    356     /* 60 */
    357     .ec = TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE,
    358     .hint =
    359       "The HTTP server experienced an internal invariant failure (bug). Check whether the latest available version is in use or file a report with the developers.",
    360     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    361   },
    362 
    363   {
    364     /* 61 */
    365     .ec = TALER_EC_GENERIC_FAILED_COMPUTE_JSON_HASH,
    366     .hint =
    367       "The service could not compute a cryptographic hash over a JSON value. Check whether the latest available version is in use or file a report with the developers.",
    368     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    369   },
    370 
    371   {
    372     /* 62 */
    373     .ec = TALER_EC_GENERIC_FAILED_COMPUTE_AMOUNT,
    374     .hint =
    375       "The service could not compute an amount. Check whether the latest available version is in use or file a report with the developers.",
    376     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    377   },
    378 
    379   {
    380     /* 70 */
    381     .ec = TALER_EC_GENERIC_PARSER_OUT_OF_MEMORY,
    382     .hint =
    383       "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.",
    384     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    385   },
    386 
    387   {
    388     /* 71 */
    389     .ec = TALER_EC_GENERIC_ALLOCATION_FAILURE,
    390     .hint =
    391       "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.",
    392     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    393   },
    394 
    395   {
    396     /* 72 */
    397     .ec = TALER_EC_GENERIC_JSON_ALLOCATION_FAILURE,
    398     .hint =
    399       "The HTTP server failed to allocate memory for building a JSON response. Restarting services periodically can help, especially if Postgres is using excessive amounts of memory. Ask the system administrator to investigate.",
    400     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    401   },
    402 
    403   {
    404     /* 73 */
    405     .ec = TALER_EC_GENERIC_CURL_ALLOCATION_FAILURE,
    406     .hint =
    407       "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.",
    408     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    409   },
    410 
    411   {
    412     /* 74 */
    413     .ec = TALER_EC_GENERIC_FAILED_TO_LOAD_TEMPLATE,
    414     .hint =
    415       "The backend could not locate a required template to generate an HTML response. The system administrator should check whether the resource files are installed in the correct location and readable by the service.",
    416     .http_code = MHD_HTTP_NOT_ACCEPTABLE
    417   },
    418 
    419   {
    420     /* 75 */
    421     .ec = TALER_EC_GENERIC_FAILED_TO_EXPAND_TEMPLATE,
    422     .hint =
    423       "The backend could not expand the template to generate an HTML response. The system administrator should investigate the logs and check whether the templates are well-formed.",
    424     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    425   },
    426 
    427   {
    428     /* 76 */
    429     .ec = TALER_EC_GENERIC_FEATURE_NOT_IMPLEMENTED,
    430     .hint =
    431       "The requested feature is not implemented by the server. The system administrator of the server may try to update the software or build it with other options to enable the feature.",
    432     .http_code = MHD_HTTP_NOT_IMPLEMENTED
    433   },
    434 
    435   {
    436     /* 77 */
    437     .ec = TALER_EC_GENERIC_OS_RESOURCE_ALLOCATION_FAILURE,
    438     .hint =
    439       "The operating system failed to allocate required resources. Restarting services periodically can help, especially if Postgres is using excessive amounts of memory. Check with the system administrator to investigate.",
    440     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    441   },
    442 
    443   {
    444     /* 78 */
    445     .ec = TALER_EC_GENERIC_REQUESTED_FORMAT_UNSUPPORTED,
    446     .hint =
    447       "The requested content type is not supported by the server. The client should try requesting a different format.",
    448     .http_code = MHD_HTTP_NOT_ACCEPTABLE
    449   },
    450 
    451   {
    452     /* 1000 */
    453     .ec = TALER_EC_EXCHANGE_GENERIC_BAD_CONFIGURATION,
    454     .hint = "Exchange is badly configured and thus cannot operate.",
    455     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    456   },
    457 
    458   {
    459     /* 1001 */
    460     .ec = TALER_EC_EXCHANGE_GENERIC_OPERATION_UNKNOWN,
    461     .hint = "The specified operation is unknown for this endpoint.",
    462     .http_code = MHD_HTTP_NOT_FOUND
    463   },
    464 
    465   {
    466     /* 1002 */
    467     .ec = TALER_EC_EXCHANGE_GENERIC_WRONG_NUMBER_OF_SEGMENTS,
    468     .hint =
    469       "The number of segments included in the URI does not match the number of segments expected by the endpoint.",
    470     .http_code = MHD_HTTP_NOT_FOUND
    471   },
    472 
    473   {
    474     /* 1003 */
    475     .ec = TALER_EC_EXCHANGE_GENERIC_COIN_CONFLICTING_DENOMINATION_KEY,
    476     .hint =
    477       "The same coin was already used with a different denomination previously.",
    478     .http_code = MHD_HTTP_CONFLICT
    479   },
    480 
    481   {
    482     /* 1004 */
    483     .ec = TALER_EC_EXCHANGE_GENERIC_COINS_INVALID_COIN_PUB,
    484     .hint =
    485       "The public key given to the `/coins/` endpoint of the exchange was malformed.",
    486     .http_code = MHD_HTTP_BAD_REQUEST
    487   },
    488 
    489   {
    490     /* 1005 */
    491     .ec = TALER_EC_EXCHANGE_GENERIC_DENOMINATION_KEY_UNKNOWN,
    492     .hint =
    493       "The exchange is not aware of the denomination key the wallet requested for the operation.",
    494     .http_code = MHD_HTTP_NOT_FOUND
    495   },
    496 
    497   {
    498     /* 1006 */
    499     .ec = TALER_EC_EXCHANGE_DENOMINATION_SIGNATURE_INVALID,
    500     .hint = "The signature of the denomination key over the coin is not valid.",
    501     .http_code = MHD_HTTP_FORBIDDEN
    502   },
    503 
    504   {
    505     /* 1007 */
    506     .ec = TALER_EC_EXCHANGE_GENERIC_KEYS_MISSING,
    507     .hint =
    508       "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.",
    509     .http_code = MHD_HTTP_SERVICE_UNAVAILABLE
    510   },
    511 
    512   {
    513     /* 1008 */
    514     .ec = TALER_EC_EXCHANGE_GENERIC_DENOMINATION_VALIDITY_IN_FUTURE,
    515     .hint = "Validity period of the denomination lies in the future.",
    516     .http_code = MHD_HTTP_PRECONDITION_FAILED
    517   },
    518 
    519   {
    520     /* 1009 */
    521     .ec = TALER_EC_EXCHANGE_GENERIC_DENOMINATION_EXPIRED,
    522     .hint =
    523       "The denomination key of the coin has passed its expiration time for the requested operation.",
    524     .http_code = MHD_HTTP_GONE
    525   },
    526 
    527   {
    528     /* 1010 */
    529     .ec = TALER_EC_EXCHANGE_GENERIC_DENOMINATION_REVOKED,
    530     .hint = "Denomination key of the coin has been revoked.",
    531     .http_code = MHD_HTTP_GONE
    532   },
    533 
    534   {
    535     /* 1011 */
    536     .ec = TALER_EC_EXCHANGE_GENERIC_SECMOD_TIMEOUT,
    537     .hint =
    538       "An operation where the exchange interacted with a security module timed out.",
    539     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    540   },
    541 
    542   {
    543     /* 1012 */
    544     .ec = TALER_EC_EXCHANGE_GENERIC_INSUFFICIENT_FUNDS,
    545     .hint =
    546       "The coin did not have sufficient residual value for the operation. The `history` in this response provides the coin's `residual_value`, which may be less than its `original_value`.",
    547     .http_code = MHD_HTTP_CONFLICT
    548   },
    549 
    550   {
    551     /* 1013 */
    552     .ec = TALER_EC_EXCHANGE_GENERIC_COIN_HISTORY_COMPUTATION_FAILED,
    553     .hint =
    554       "The exchange had an internal error reconstructing the transaction history of the coin that was being processed.",
    555     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    556   },
    557 
    558   {
    559     /* 1014 */
    560     .ec = TALER_EC_EXCHANGE_GENERIC_HISTORY_DB_ERROR_INSUFFICIENT_FUNDS,
    561     .hint =
    562       "The exchange failed to obtain the transaction history of the given coin from the database while generating an insufficient funds errors.",
    563     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    564   },
    565 
    566   {
    567     /* 1015 */
    568     .ec = TALER_EC_EXCHANGE_GENERIC_COIN_CONFLICTING_AGE_HASH,
    569     .hint =
    570       "The same coin was already used with a different age hash previously.",
    571     .http_code = MHD_HTTP_CONFLICT
    572   },
    573 
    574   {
    575     /* 1016 */
    576     .ec = TALER_EC_EXCHANGE_GENERIC_INVALID_DENOMINATION_CIPHER_FOR_OPERATION,
    577     .hint =
    578       "The requested operation is not valid for the cipher used by the selected denomination.",
    579     .http_code = MHD_HTTP_BAD_REQUEST
    580   },
    581 
    582   {
    583     /* 1017 */
    584     .ec = TALER_EC_EXCHANGE_GENERIC_CIPHER_MISMATCH,
    585     .hint =
    586       "The provided arguments for the operation use inconsistent ciphers.",
    587     .http_code = MHD_HTTP_BAD_REQUEST
    588   },
    589 
    590   {
    591     /* 1018 */
    592     .ec = TALER_EC_EXCHANGE_GENERIC_NEW_DENOMS_ARRAY_SIZE_EXCESSIVE,
    593     .hint =
    594       "The number of denominations specified in the request exceeds the limit of the exchange.",
    595     .http_code = MHD_HTTP_BAD_REQUEST
    596   },
    597 
    598   {
    599     /* 1019 */
    600     .ec = TALER_EC_EXCHANGE_GENERIC_COIN_UNKNOWN,
    601     .hint = "The coin is not known to the exchange (yet).",
    602     .http_code = MHD_HTTP_NOT_FOUND
    603   },
    604 
    605   {
    606     /* 1020 */
    607     .ec = TALER_EC_EXCHANGE_GENERIC_CLOCK_SKEW,
    608     .hint =
    609       "The time at the server is too far off from the time specified in the request. Most likely the client system time is wrong.",
    610     .http_code = MHD_HTTP_BAD_REQUEST
    611   },
    612 
    613   {
    614     /* 1021 */
    615     .ec = TALER_EC_EXCHANGE_GENERIC_AMOUNT_EXCEEDS_DENOMINATION_VALUE,
    616     .hint =
    617       "The specified amount for the coin is higher than the value of the denomination of the coin.",
    618     .http_code = MHD_HTTP_BAD_REQUEST
    619   },
    620 
    621   {
    622     /* 1022 */
    623     .ec = TALER_EC_EXCHANGE_GENERIC_GLOBAL_FEES_MISSING,
    624     .hint = "The exchange was not properly configured with global fees.",
    625     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    626   },
    627 
    628   {
    629     /* 1023 */
    630     .ec = TALER_EC_EXCHANGE_GENERIC_WIRE_FEES_MISSING,
    631     .hint = "The exchange was not properly configured with wire fees.",
    632     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    633   },
    634 
    635   {
    636     /* 1024 */
    637     .ec = TALER_EC_EXCHANGE_GENERIC_PURSE_PUB_MALFORMED,
    638     .hint = "The purse public key was malformed.",
    639     .http_code = MHD_HTTP_BAD_REQUEST
    640   },
    641 
    642   {
    643     /* 1025 */
    644     .ec = TALER_EC_EXCHANGE_GENERIC_PURSE_UNKNOWN,
    645     .hint = "The purse is unknown.",
    646     .http_code = MHD_HTTP_NOT_FOUND
    647   },
    648 
    649   {
    650     /* 1026 */
    651     .ec = TALER_EC_EXCHANGE_GENERIC_PURSE_EXPIRED,
    652     .hint = "The purse has expired.",
    653     .http_code = MHD_HTTP_GONE
    654   },
    655 
    656   {
    657     /* 1027 */
    658     .ec = TALER_EC_EXCHANGE_GENERIC_RESERVE_UNKNOWN,
    659     .hint =
    660       "The exchange has no information about the `reserve_pub` that was provided.",
    661     .http_code = MHD_HTTP_NOT_FOUND
    662   },
    663 
    664   {
    665     /* 1028 */
    666     .ec = TALER_EC_EXCHANGE_GENERIC_KYC_REQUIRED,
    667     .hint =
    668       "The exchange is not allowed to proceed with the operation until the client has satisfied a KYC check.",
    669     .http_code = MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS
    670   },
    671 
    672   {
    673     /* 1029 */
    674     .ec =
    675       TALER_EC_EXCHANGE_PURSE_DEPOSIT_COIN_CONFLICTING_ATTEST_VS_AGE_COMMITMENT,
    676     .hint =
    677       "The provided age commitment and attestation are inconsistent: either both must be provided or neither may be provided.",
    678     .http_code = MHD_HTTP_BAD_REQUEST
    679   },
    680 
    681   {
    682     /* 1030 */
    683     .ec = TALER_EC_EXCHANGE_PURSE_DEPOSIT_COIN_AGE_ATTESTATION_FAILURE,
    684     .hint =
    685       "The provided attestation for the minimum age could not be verified by the exchange.",
    686     .http_code = MHD_HTTP_BAD_REQUEST
    687   },
    688 
    689   {
    690     /* 1031 */
    691     .ec = TALER_EC_EXCHANGE_GENERIC_PURSE_DELETED,
    692     .hint = "The purse was deleted.",
    693     .http_code = MHD_HTTP_GONE
    694   },
    695 
    696   {
    697     /* 1032 */
    698     .ec = TALER_EC_EXCHANGE_GENERIC_AML_OFFICER_PUB_MALFORMED,
    699     .hint = "The public key of the AML officer in the URL was malformed.",
    700     .http_code = MHD_HTTP_BAD_REQUEST
    701   },
    702 
    703   {
    704     /* 1033 */
    705     .ec = TALER_EC_EXCHANGE_GENERIC_AML_OFFICER_GET_SIGNATURE_INVALID,
    706     .hint =
    707       "The signature affirming the GET request of the AML officer is invalid.",
    708     .http_code = MHD_HTTP_FORBIDDEN
    709   },
    710 
    711   {
    712     /* 1034 */
    713     .ec = TALER_EC_EXCHANGE_GENERIC_AML_OFFICER_ACCESS_DENIED,
    714     .hint = "The specified AML officer does not have access at this time.",
    715     .http_code = MHD_HTTP_FORBIDDEN
    716   },
    717 
    718   {
    719     /* 1035 */
    720     .ec = TALER_EC_EXCHANGE_GENERIC_AML_PENDING,
    721     .hint =
    722       "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.",
    723     .http_code = MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS
    724   },
    725 
    726   {
    727     /* 1036 */
    728     .ec = TALER_EC_EXCHANGE_GENERIC_AML_FROZEN,
    729     .hint =
    730       "The requested operation is denied as the account was frozen on suspicion of money laundering. Please contact the exchange operator.",
    731     .http_code = MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS
    732   },
    733 
    734   {
    735     /* 1037 */
    736     .ec = TALER_EC_EXCHANGE_GENERIC_KYC_CONVERTER_FAILED,
    737     .hint =
    738       "The exchange failed to start a KYC attribute conversion helper process. It is likely configured incorrectly.",
    739     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    740   },
    741 
    742   {
    743     /* 1038 */
    744     .ec = TALER_EC_EXCHANGE_GENERIC_KYC_FAILED,
    745     .hint =
    746       "The KYC operation failed. This could be because the KYC provider rejected the KYC data provided, or because the user aborted the KYC process.",
    747     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    748   },
    749 
    750   {
    751     /* 1039 */
    752     .ec = TALER_EC_EXCHANGE_GENERIC_KYC_FALLBACK_FAILED,
    753     .hint =
    754       "A fallback measure for a KYC operation failed. This is a bug. Users should contact the exchange operator.",
    755     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    756   },
    757 
    758   {
    759     /* 1040 */
    760     .ec = TALER_EC_EXCHANGE_GENERIC_KYC_FALLBACK_UNKNOWN,
    761     .hint =
    762       "The specified fallback measure for a KYC operation is unknown. This is a bug. Users should contact the exchange operator.",
    763     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    764   },
    765 
    766   {
    767     /* 1041 */
    768     .ec = TALER_EC_EXCHANGE_GENERIC_BANK_ACCOUNT_UNKNOWN,
    769     .hint =
    770       "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 selected account is correct.",
    771     .http_code = MHD_HTTP_NOT_FOUND
    772   },
    773 
    774   {
    775     /* 1042 */
    776     .ec = TALER_EC_EXCHANGE_GENERIC_AML_PROGRAM_RECURSION_DETECTED,
    777     .hint =
    778       "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.",
    779     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    780   },
    781 
    782   {
    783     /* 1043 */
    784     .ec = TALER_EC_EXCHANGE_GENERIC_KYC_SANCTION_LIST_CHECK_FAILED,
    785     .hint =
    786       "A check against sanctions lists failed. This indicates an internal error in the sanctions-list processing logic. The exchange operator should investigate.",
    787     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    788   },
    789 
    790   {
    791     /* 1044 */
    792     .ec = TALER_EC_EXCHANGE_GENERIC_TYPST_TEMPLATE_FAILURE,
    793     .hint =
    794       "The process to generate a PDF from a template failed. A likely cause is a syntactic error in the template. This needs to be investigated by the exchange operator.",
    795     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    796   },
    797 
    798   {
    799     /* 1045 */
    800     .ec = TALER_EC_EXCHANGE_GENERIC_PDFTK_FAILURE,
    801     .hint =
    802       "A process to combine multiple PDFs into one larger document failed. A likely cause is a resource exhaustion problem on the server. This needs to be investigated by the exchange operator.",
    803     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    804   },
    805 
    806   {
    807     /* 1046 */
    808     .ec = TALER_EC_EXCHANGE_GENERIC_TYPST_CRASH,
    809     .hint =
    810       "The process to generate a PDF from a template crashed. A likely cause is a bug in the Typst software. This needs to be investigated by the exchange operator.",
    811     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    812   },
    813 
    814   {
    815     /* 1047 */
    816     .ec = TALER_EC_EXCHANGE_GENERIC_PDFTK_CRASH,
    817     .hint =
    818       "The process to combine multiple PDFs into a larger document crashed. A likely cause is a bug in the pdftk software. This needs to be investigated by the exchange operator.",
    819     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    820   },
    821 
    822   {
    823     /* 1048 */
    824     .ec = TALER_EC_EXCHANGE_GENERIC_NO_TYPST_OR_PDFTK,
    825     .hint =
    826       "One of the binaries needed to generate the PDF is not installed. If this feature is required, the system administrator should make sure Typst and pdftk are both installed.",
    827     .http_code = MHD_HTTP_NOT_IMPLEMENTED
    828   },
    829 
    830   {
    831     /* 1049 */
    832     .ec = TALER_EC_EXCHANGE_GENERIC_TARGET_ACCOUNT_UNKNOWN,
    833     .hint =
    834       "The exchange is not aware of the given target account. The specified account is not a customer of this service.",
    835     .http_code = MHD_HTTP_NOT_FOUND
    836   },
    837 
    838   {
    839     /* 1050 */
    840     .ec = TALER_EC_EXCHANGE_GENERIC_AML_OFFICER_READ_ONLY,
    841     .hint =
    842       "The specified AML officer does not have write access at this time.",
    843     .http_code = MHD_HTTP_CONFLICT
    844   },
    845 
    846   {
    847     /* 1100 */
    848     .ec = TALER_EC_EXCHANGE_DEPOSITS_GET_NOT_FOUND,
    849     .hint =
    850       "The exchange did not find information about the specified transaction in the database.",
    851     .http_code = MHD_HTTP_NOT_FOUND
    852   },
    853 
    854   {
    855     /* 1101 */
    856     .ec = TALER_EC_EXCHANGE_DEPOSITS_GET_INVALID_H_WIRE,
    857     .hint = "The wire hash given to the `/deposits/` handler was malformed.",
    858     .http_code = MHD_HTTP_BAD_REQUEST
    859   },
    860 
    861   {
    862     /* 1102 */
    863     .ec = TALER_EC_EXCHANGE_DEPOSITS_GET_INVALID_MERCHANT_PUB,
    864     .hint = "The merchant key given to the `/deposits/` handler was malformed.",
    865     .http_code = MHD_HTTP_BAD_REQUEST
    866   },
    867 
    868   {
    869     /* 1103 */
    870     .ec = TALER_EC_EXCHANGE_DEPOSITS_GET_INVALID_H_CONTRACT_TERMS,
    871     .hint =
    872       "The hash of the contract terms given to the `/deposits/` handler was malformed.",
    873     .http_code = MHD_HTTP_BAD_REQUEST
    874   },
    875 
    876   {
    877     /* 1104 */
    878     .ec = TALER_EC_EXCHANGE_DEPOSITS_GET_INVALID_COIN_PUB,
    879     .hint =
    880       "The coin public key given to the `/deposits/` handler was malformed.",
    881     .http_code = MHD_HTTP_BAD_REQUEST
    882   },
    883 
    884   {
    885     /* 1105 */
    886     .ec = TALER_EC_EXCHANGE_DEPOSITS_GET_INVALID_SIGNATURE_BY_EXCHANGE,
    887     .hint =
    888       "The signature returned by the exchange in a `/deposits/` request was malformed.",
    889     .http_code = MHD_HTTP_UNINITIALIZED
    890   },
    891 
    892   {
    893     /* 1106 */
    894     .ec = TALER_EC_EXCHANGE_DEPOSITS_GET_MERCHANT_SIGNATURE_INVALID,
    895     .hint = "The signature of the merchant is invalid.",
    896     .http_code = MHD_HTTP_FORBIDDEN
    897   },
    898 
    899   {
    900     /* 1107 */
    901     .ec = TALER_EC_EXCHANGE_DEPOSITS_POLICY_NOT_ACCEPTED,
    902     .hint = "The provided policy data was not accepted.",
    903     .http_code = MHD_HTTP_BAD_REQUEST
    904   },
    905 
    906   {
    907     /* 1150 */
    908     .ec = TALER_EC_EXCHANGE_WITHDRAW_INSUFFICIENT_FUNDS,
    909     .hint =
    910       "The given reserve does not have sufficient funds to admit the requested withdrawal operation at this time. The response includes the current `balance` of the reserve and the transaction `history` that led to this balance.",
    911     .http_code = MHD_HTTP_CONFLICT
    912   },
    913 
    914   {
    915     /* 1151 */
    916     .ec = TALER_EC_EXCHANGE_AGE_WITHDRAW_INSUFFICIENT_FUNDS,
    917     .hint =
    918       "The given reserve does not have sufficient funds to admit the requested age-withdrawal operation at this time. The response includes the current `balance` of the reserve and the transaction `history` that led to this balance.",
    919     .http_code = MHD_HTTP_CONFLICT
    920   },
    921 
    922   {
    923     /* 1152 */
    924     .ec = TALER_EC_EXCHANGE_WITHDRAW_AMOUNT_FEE_OVERFLOW,
    925     .hint =
    926       "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.",
    927     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    928   },
    929 
    930   {
    931     /* 1153 */
    932     .ec = TALER_EC_EXCHANGE_WITHDRAW_SIGNATURE_FAILED,
    933     .hint =
    934       "The exchange failed to create the signature using the denomination key.",
    935     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    936   },
    937 
    938   {
    939     /* 1154 */
    940     .ec = TALER_EC_EXCHANGE_WITHDRAW_RESERVE_SIGNATURE_INVALID,
    941     .hint = "The signature of the reserve is not valid.",
    942     .http_code = MHD_HTTP_FORBIDDEN
    943   },
    944 
    945   {
    946     /* 1155 */
    947     .ec = TALER_EC_EXCHANGE_RESERVE_HISTORY_ERROR_INSUFFICIENT_FUNDS,
    948     .hint =
    949       "Computing the reserve history resulted in a negative overall balance, which should be impossible.",
    950     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
    951   },
    952 
    953   {
    954     /* 1156 */
    955     .ec = TALER_EC_EXCHANGE_GET_RESERVE_HISTORY_ERROR_INSUFFICIENT_BALANCE,
    956     .hint =
    957       "The reserve did not have sufficient funds in it to pay for a full reserve history statement.",
    958     .http_code = MHD_HTTP_CONFLICT
    959   },
    960 
    961   {
    962     /* 1158 */
    963     .ec = TALER_EC_EXCHANGE_WITHDRAW_DENOMINATION_KEY_LOST,
    964     .hint = "Withdraw period of the coin to be withdrawn is in the past.",
    965     .http_code = MHD_HTTP_GONE
    966   },
    967 
    968   {
    969     /* 1159 */
    970     .ec = TALER_EC_EXCHANGE_WITHDRAW_UNBLIND_FAILURE,
    971     .hint = "The client failed to unblind the blind signature.",
    972     .http_code = MHD_HTTP_UNINITIALIZED
    973   },
    974 
    975   {
    976     /* 1160 */
    977     .ec = TALER_EC_EXCHANGE_WITHDRAW_NONCE_REUSE,
    978     .hint = "The client reused a withdraw nonce, which is not allowed.",
    979     .http_code = MHD_HTTP_CONFLICT
    980   },
    981 
    982   {
    983     /* 1161 */
    984     .ec = TALER_EC_EXCHANGE_WITHDRAW_COMMITMENT_UNKNOWN,
    985     .hint =
    986       "The client provided an unknown commitment for an age-withdraw request.",
    987     .http_code = MHD_HTTP_BAD_REQUEST
    988   },
    989 
    990   {
    991     /* 1162 */
    992     .ec = TALER_EC_EXCHANGE_WITHDRAW_AMOUNT_OVERFLOW,
    993     .hint = "The total sum of amounts from the denominations did overflow.",
    994     .http_code = MHD_HTTP_BAD_REQUEST
    995   },
    996 
    997   {
    998     /* 1163 */
    999     .ec = TALER_EC_EXCHANGE_AGE_WITHDRAW_AMOUNT_INCORRECT,
   1000     .hint =
   1001       "The total sum of value and fees from the denominations differs from the committed amount with fees.",
   1002     .http_code = MHD_HTTP_BAD_REQUEST
   1003   },
   1004 
   1005   {
   1006     /* 1164 */
   1007     .ec = TALER_EC_EXCHANGE_WITHDRAW_REVEAL_INVALID_HASH,
   1008     .hint = "The original commitment differs from the calculated hash.",
   1009     .http_code = MHD_HTTP_BAD_REQUEST
   1010   },
   1011 
   1012   {
   1013     /* 1165 */
   1014     .ec = TALER_EC_EXCHANGE_WITHDRAW_MAXIMUM_AGE_TOO_LARGE,
   1015     .hint = "The maximum age in the commitment is too large for the reserve.",
   1016     .http_code = MHD_HTTP_CONFLICT
   1017   },
   1018 
   1019   {
   1020     /* 1166 */
   1021     .ec = TALER_EC_EXCHANGE_WITHDRAW_AGE_MASK_MISMATCH,
   1022     .hint =
   1023       "The denominations of an age-restricted withdraw request do not all use the same age mask. All denominations of an age-restricted withdraw must have the same age groups.",
   1024     .http_code = MHD_HTTP_BAD_REQUEST
   1025   },
   1026 
   1027   {
   1028     /* 1175 */
   1029     .ec = TALER_EC_EXCHANGE_WITHDRAW_IDEMPOTENT_PLANCHET,
   1030     .hint =
   1031       "The withdraw operation included the same planchet more than once. This is not allowed.",
   1032     .http_code = MHD_HTTP_BAD_REQUEST
   1033   },
   1034 
   1035   {
   1036     /* 1205 */
   1037     .ec = TALER_EC_EXCHANGE_DEPOSIT_COIN_SIGNATURE_INVALID,
   1038     .hint =
   1039       "The signature made by the coin over the deposit permission is not valid.",
   1040     .http_code = MHD_HTTP_FORBIDDEN
   1041   },
   1042 
   1043   {
   1044     /* 1206 */
   1045     .ec = TALER_EC_EXCHANGE_DEPOSIT_CONFLICTING_CONTRACT,
   1046     .hint =
   1047       "The same coin was already deposited for the same merchant and contract with other details.",
   1048     .http_code = MHD_HTTP_CONFLICT
   1049   },
   1050 
   1051   {
   1052     /* 1207 */
   1053     .ec = TALER_EC_EXCHANGE_DEPOSIT_NEGATIVE_VALUE_AFTER_FEE,
   1054     .hint =
   1055       "The stated value of the coin after the deposit fee is subtracted would be negative.",
   1056     .http_code = MHD_HTTP_BAD_REQUEST
   1057   },
   1058 
   1059   {
   1060     /* 1208 */
   1061     .ec = TALER_EC_EXCHANGE_DEPOSIT_REFUND_DEADLINE_AFTER_WIRE_DEADLINE,
   1062     .hint = "The stated refund deadline is after the wire deadline.",
   1063     .http_code = MHD_HTTP_BAD_REQUEST
   1064   },
   1065 
   1066   {
   1067     /* 1209 */
   1068     .ec = TALER_EC_EXCHANGE_DEPOSIT_WIRE_DEADLINE_IS_NEVER,
   1069     .hint = "The stated wire deadline is `never`, which is not allowed.",
   1070     .http_code = MHD_HTTP_BAD_REQUEST
   1071   },
   1072 
   1073   {
   1074     /* 1210 */
   1075     .ec = TALER_EC_EXCHANGE_DEPOSIT_INVALID_WIRE_FORMAT_JSON,
   1076     .hint =
   1077       "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 the exchange performs only basic sanity checking on the wire details; it cannot guarantee that the banking system can route funds to the specified address, even if this check succeeds.",
   1078     .http_code = MHD_HTTP_BAD_REQUEST
   1079   },
   1080 
   1081   {
   1082     /* 1211 */
   1083     .ec = TALER_EC_EXCHANGE_DEPOSIT_INVALID_WIRE_FORMAT_CONTRACT_HASH_CONFLICT,
   1084     .hint =
   1085       "The hash of the given wire address does not match the wire hash specified in the proposal data.",
   1086     .http_code = MHD_HTTP_BAD_REQUEST
   1087   },
   1088 
   1089   {
   1090     /* 1221 */
   1091     .ec = TALER_EC_EXCHANGE_DEPOSIT_INVALID_SIGNATURE_BY_EXCHANGE,
   1092     .hint = "The signature provided by the exchange is not valid.",
   1093     .http_code = MHD_HTTP_UNINITIALIZED
   1094   },
   1095 
   1096   {
   1097     /* 1222 */
   1098     .ec = TALER_EC_EXCHANGE_DEPOSIT_FEE_ABOVE_AMOUNT,
   1099     .hint =
   1100       "The deposited amount is smaller than the deposit fee, which would result in a negative contribution.",
   1101     .http_code = MHD_HTTP_BAD_REQUEST
   1102   },
   1103 
   1104   {
   1105     /* 1240 */
   1106     .ec = TALER_EC_EXCHANGE_EXTENSIONS_INVALID_FULFILLMENT,
   1107     .hint = "The proof of policy fulfillment was invalid.",
   1108     .http_code = MHD_HTTP_BAD_REQUEST
   1109   },
   1110 
   1111   {
   1112     /* 1251 */
   1113     .ec = TALER_EC_EXCHANGE_COIN_HISTORY_BAD_SIGNATURE,
   1114     .hint = "The coin history was requested with a bad signature.",
   1115     .http_code = MHD_HTTP_FORBIDDEN
   1116   },
   1117 
   1118   {
   1119     /* 1252 */
   1120     .ec = TALER_EC_EXCHANGE_RESERVE_HISTORY_BAD_SIGNATURE,
   1121     .hint = "The reserve history was requested with a bad signature.",
   1122     .http_code = MHD_HTTP_FORBIDDEN
   1123   },
   1124 
   1125   {
   1126     /* 1302 */
   1127     .ec = TALER_EC_EXCHANGE_MELT_FEES_EXCEED_CONTRIBUTION,
   1128     .hint =
   1129       "The exchange encountered melt fees exceeding the melted coin's contribution.",
   1130     .http_code = MHD_HTTP_BAD_REQUEST
   1131   },
   1132 
   1133   {
   1134     /* 1303 */
   1135     .ec = TALER_EC_EXCHANGE_MELT_COIN_SIGNATURE_INVALID,
   1136     .hint = "The signature made with the coin to be melted is invalid.",
   1137     .http_code = MHD_HTTP_FORBIDDEN
   1138   },
   1139 
   1140   {
   1141     /* 1305 */
   1142     .ec = TALER_EC_EXCHANGE_MELT_COIN_EXPIRED_NO_ZOMBIE,
   1143     .hint =
   1144       "The denomination of the given coin has passed its expiration date and is not a valid zombie (that is, it was not refreshed with the fresh coin being subjected to recoup).",
   1145     .http_code = MHD_HTTP_BAD_REQUEST
   1146   },
   1147 
   1148   {
   1149     /* 1306 */
   1150     .ec = TALER_EC_EXCHANGE_MELT_INVALID_SIGNATURE_BY_EXCHANGE,
   1151     .hint =
   1152       "The signature returned by the exchange in a melt request was malformed.",
   1153     .http_code = MHD_HTTP_UNINITIALIZED
   1154   },
   1155 
   1156   {
   1157     /* 1353 */
   1158     .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_COMMITMENT_VIOLATION,
   1159     .hint =
   1160       "The provided transfer keys do not match up with the original commitment.  Information about the original commitment is included in the response.",
   1161     .http_code = MHD_HTTP_CONFLICT
   1162   },
   1163 
   1164   {
   1165     /* 1354 */
   1166     .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_SIGNING_ERROR,
   1167     .hint =
   1168       "Failed to produce the blinded signatures over the coins to be returned.",
   1169     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   1170   },
   1171 
   1172   {
   1173     /* 1355 */
   1174     .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_SESSION_UNKNOWN,
   1175     .hint =
   1176       "The exchange is unaware of the refresh session specified in the request.",
   1177     .http_code = MHD_HTTP_NOT_FOUND
   1178   },
   1179 
   1180   {
   1181     /* 1356 */
   1182     .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_CNC_TRANSFER_ARRAY_SIZE_INVALID,
   1183     .hint =
   1184       "The size of the cut-and-choose dimension of the private transfer keys request does not match #TALER_CNC_KAPPA - 1.",
   1185     .http_code = MHD_HTTP_BAD_REQUEST
   1186   },
   1187 
   1188   {
   1189     /* 1358 */
   1190     .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_NEW_DENOMS_ARRAY_SIZE_MISMATCH,
   1191     .hint =
   1192       "The number of envelopes given does not match the number of denomination keys given.",
   1193     .http_code = MHD_HTTP_BAD_REQUEST
   1194   },
   1195 
   1196   {
   1197     /* 1359 */
   1198     .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_COST_CALCULATION_OVERFLOW,
   1199     .hint =
   1200       "The exchange encountered a numeric overflow totaling up the cost for the refresh operation.",
   1201     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   1202   },
   1203 
   1204   {
   1205     /* 1360 */
   1206     .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_AMOUNT_INSUFFICIENT,
   1207     .hint =
   1208       "The exchange's cost calculation shows that the melt amount is below the costs of the transaction.",
   1209     .http_code = MHD_HTTP_BAD_REQUEST
   1210   },
   1211 
   1212   {
   1213     /* 1361 */
   1214     .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_LINK_SIGNATURE_INVALID,
   1215     .hint = "The signature made with the coin over the link data is invalid.",
   1216     .http_code = MHD_HTTP_FORBIDDEN
   1217   },
   1218 
   1219   {
   1220     /* 1362 */
   1221     .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_INVALID_RCH,
   1222     .hint =
   1223       "The refresh session hash given to the `/refreshes/` handler was malformed.",
   1224     .http_code = MHD_HTTP_BAD_REQUEST
   1225   },
   1226 
   1227   {
   1228     /* 1363 */
   1229     .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_OPERATION_INVALID,
   1230     .hint = "The specified operation is invalid for this endpoint.",
   1231     .http_code = MHD_HTTP_BAD_REQUEST
   1232   },
   1233 
   1234   {
   1235     /* 1364 */
   1236     .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_AGE_RESTRICTION_NOT_SUPPORTED,
   1237     .hint =
   1238       "The client provided age commitment data, but age restriction is not supported on this server.",
   1239     .http_code = MHD_HTTP_BAD_REQUEST
   1240   },
   1241 
   1242   {
   1243     /* 1365 */
   1244     .ec = TALER_EC_EXCHANGE_REFRESHES_REVEAL_AGE_RESTRICTION_COMMITMENT_INVALID,
   1245     .hint =
   1246       "The client provided invalid age commitment data: missing, not an array, or  array of invalid size.",
   1247     .http_code = MHD_HTTP_BAD_REQUEST
   1248   },
   1249 
   1250   {
   1251     /* 1400 */
   1252     .ec = TALER_EC_EXCHANGE_LINK_COIN_UNKNOWN,
   1253     .hint =
   1254       "The coin specified in the link request is unknown to the exchange.",
   1255     .http_code = MHD_HTTP_NOT_FOUND
   1256   },
   1257 
   1258   {
   1259     /* 1450 */
   1260     .ec = TALER_EC_EXCHANGE_TRANSFERS_GET_WTID_MALFORMED,
   1261     .hint = "The public key given to the `/transfers/` handler was malformed.",
   1262     .http_code = MHD_HTTP_BAD_REQUEST
   1263   },
   1264 
   1265   {
   1266     /* 1451 */
   1267     .ec = TALER_EC_EXCHANGE_TRANSFERS_GET_WTID_NOT_FOUND,
   1268     .hint =
   1269       "The exchange did not find information about the specified wire transfer identifier in the database.",
   1270     .http_code = MHD_HTTP_NOT_FOUND
   1271   },
   1272 
   1273   {
   1274     /* 1452 */
   1275     .ec = TALER_EC_EXCHANGE_TRANSFERS_GET_WIRE_FEE_NOT_FOUND,
   1276     .hint =
   1277       "The exchange did not find information about the wire transfer fees it charged.",
   1278     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   1279   },
   1280 
   1281   {
   1282     /* 1453 */
   1283     .ec = TALER_EC_EXCHANGE_TRANSFERS_GET_WIRE_FEE_INCONSISTENT,
   1284     .hint =
   1285       "The exchange found a wire fee that was above the total transfer value (and thus could not have been charged).",
   1286     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   1287   },
   1288 
   1289   {
   1290     /* 1475 */
   1291     .ec = TALER_EC_EXCHANGE_PURSES_INVALID_WAIT_TARGET,
   1292     .hint = "The wait target of the URL was not in the set of expected values.",
   1293     .http_code = MHD_HTTP_BAD_REQUEST
   1294   },
   1295 
   1296   {
   1297     /* 1476 */
   1298     .ec = TALER_EC_EXCHANGE_PURSES_GET_INVALID_SIGNATURE_BY_EXCHANGE,
   1299     .hint =
   1300       "The signature on the purse status returned by the exchange was invalid.",
   1301     .http_code = MHD_HTTP_UNINITIALIZED
   1302   },
   1303 
   1304   {
   1305     /* 1500 */
   1306     .ec = TALER_EC_EXCHANGE_REFUND_COIN_NOT_FOUND,
   1307     .hint =
   1308       "The exchange has no information about the coin to be refunded. Without a transaction history, it cannot issue a refund. This is acceptable; the owner should refresh the coin directly without executing the refund.",
   1309     .http_code = MHD_HTTP_NOT_FOUND
   1310   },
   1311 
   1312   {
   1313     /* 1501 */
   1314     .ec = TALER_EC_EXCHANGE_REFUND_CONFLICT_DEPOSIT_INSUFFICIENT,
   1315     .hint =
   1316       "The refund request could not be processed because the coin's transaction history does not permit it: the refunds would exceed the deposit amount. The `history` in the response demonstrates this.",
   1317     .http_code = MHD_HTTP_CONFLICT
   1318   },
   1319 
   1320   {
   1321     /* 1502 */
   1322     .ec = TALER_EC_EXCHANGE_REFUND_DEPOSIT_NOT_FOUND,
   1323     .hint =
   1324       "The exchange knows about the coin to be refunded, but not about the specific `/deposit` operation. Therefore, it cannot issue a refund because it does not know whether this merchant public key is authorized to issue one.",
   1325     .http_code = MHD_HTTP_NOT_FOUND
   1326   },
   1327 
   1328   {
   1329     /* 1503 */
   1330     .ec = TALER_EC_EXCHANGE_REFUND_MERCHANT_ALREADY_PAID,
   1331     .hint =
   1332       "The exchange can no longer refund the customer or coin because the money was already transferred to the merchant. The refund deadline has passed.",
   1333     .http_code = MHD_HTTP_GONE
   1334   },
   1335 
   1336   {
   1337     /* 1504 */
   1338     .ec = TALER_EC_EXCHANGE_REFUND_FEE_TOO_LOW,
   1339     .hint =
   1340       "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.",
   1341     .http_code = MHD_HTTP_BAD_REQUEST
   1342   },
   1343 
   1344   {
   1345     /* 1505 */
   1346     .ec = TALER_EC_EXCHANGE_REFUND_FEE_ABOVE_AMOUNT,
   1347     .hint =
   1348       "The refunded amount is smaller than the refund fee, which would result in a negative refund.",
   1349     .http_code = MHD_HTTP_BAD_REQUEST
   1350   },
   1351 
   1352   {
   1353     /* 1506 */
   1354     .ec = TALER_EC_EXCHANGE_REFUND_MERCHANT_SIGNATURE_INVALID,
   1355     .hint = "The signature of the merchant is invalid.",
   1356     .http_code = MHD_HTTP_FORBIDDEN
   1357   },
   1358 
   1359   {
   1360     /* 1507 */
   1361     .ec = TALER_EC_EXCHANGE_REFUND_MERCHANT_SIGNING_FAILED,
   1362     .hint =
   1363       "Merchant backend failed to create the refund confirmation signature.",
   1364     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   1365   },
   1366 
   1367   {
   1368     /* 1508 */
   1369     .ec = TALER_EC_EXCHANGE_REFUND_INVALID_SIGNATURE_BY_EXCHANGE,
   1370     .hint =
   1371       "The signature returned by the exchange in a refund request was malformed.",
   1372     .http_code = MHD_HTTP_UNINITIALIZED
   1373   },
   1374 
   1375   {
   1376     /* 1509 */
   1377     .ec = TALER_EC_EXCHANGE_REFUND_INVALID_FAILURE_PROOF_BY_EXCHANGE,
   1378     .hint = "The failure proof returned by the exchange is incorrect.",
   1379     .http_code = MHD_HTTP_UNINITIALIZED
   1380   },
   1381 
   1382   {
   1383     /* 1510 */
   1384     .ec = TALER_EC_EXCHANGE_REFUND_INCONSISTENT_AMOUNT,
   1385     .hint =
   1386       "Conflicting refund granted before with different amount but same refund transaction ID.",
   1387     .http_code = MHD_HTTP_FAILED_DEPENDENCY
   1388   },
   1389 
   1390   {
   1391     /* 1550 */
   1392     .ec = TALER_EC_EXCHANGE_RECOUP_SIGNATURE_INVALID,
   1393     .hint = "The given coin signature is invalid for the request.",
   1394     .http_code = MHD_HTTP_FORBIDDEN
   1395   },
   1396 
   1397   {
   1398     /* 1551 */
   1399     .ec = TALER_EC_EXCHANGE_RECOUP_WITHDRAW_NOT_FOUND,
   1400     .hint =
   1401       "The exchange could not find the corresponding withdraw operation. The request is denied.",
   1402     .http_code = MHD_HTTP_NOT_FOUND
   1403   },
   1404 
   1405   {
   1406     /* 1552 */
   1407     .ec = TALER_EC_EXCHANGE_RECOUP_COIN_BALANCE_ZERO,
   1408     .hint = "The coin's remaining balance is zero.  The request is denied.",
   1409     .http_code = MHD_HTTP_FORBIDDEN
   1410   },
   1411 
   1412   {
   1413     /* 1553 */
   1414     .ec = TALER_EC_EXCHANGE_RECOUP_BLINDING_FAILED,
   1415     .hint = "The exchange failed to reproduce the coin's blinding.",
   1416     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   1417   },
   1418 
   1419   {
   1420     /* 1554 */
   1421     .ec = TALER_EC_EXCHANGE_RECOUP_COIN_BALANCE_NEGATIVE,
   1422     .hint = "The coin's remaining balance is zero.  The request is denied.",
   1423     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   1424   },
   1425 
   1426   {
   1427     /* 1555 */
   1428     .ec = TALER_EC_EXCHANGE_RECOUP_NOT_ELIGIBLE,
   1429     .hint = "The coin's denomination has not been revoked yet.",
   1430     .http_code = MHD_HTTP_GONE
   1431   },
   1432 
   1433   {
   1434     /* 1556 */
   1435     .ec = TALER_EC_EXCHANGE_RECOUP_WITHDRAW_BATCH_SIZE_MISMATCH,
   1436     .hint =
   1437       "The number of coins in the recoup request does not match the number of coins signed in the withdraw operation.",
   1438     .http_code = MHD_HTTP_BAD_REQUEST
   1439   },
   1440 
   1441   {
   1442     /* 1557 */
   1443     .ec = TALER_EC_EXCHANGE_RECOUP_WITHDRAW_COMMITMENT_MISMATCH,
   1444     .hint =
   1445       "The hash over the coins in the recoup request does not match the commitment of the withdraw operation.  At least one disclosed coin was not part of the operation.",
   1446     .http_code = MHD_HTTP_CONFLICT
   1447   },
   1448 
   1449   {
   1450     /* 1558 */
   1451     .ec = TALER_EC_EXCHANGE_RECOUP_WITHDRAW_DENOMINATION_MISMATCH,
   1452     .hint =
   1453       "The denomination of a disclosed coin differs from the denomination recorded for that position of the withdraw operation.",
   1454     .http_code = MHD_HTTP_CONFLICT
   1455   },
   1456 
   1457   {
   1458     /* 1575 */
   1459     .ec = TALER_EC_EXCHANGE_RECOUP_REFRESH_SIGNATURE_INVALID,
   1460     .hint = "The given coin signature is invalid for the request.",
   1461     .http_code = MHD_HTTP_FORBIDDEN
   1462   },
   1463 
   1464   {
   1465     /* 1576 */
   1466     .ec = TALER_EC_EXCHANGE_RECOUP_REFRESH_MELT_NOT_FOUND,
   1467     .hint =
   1468       "The exchange could not find the corresponding melt operation. The request is denied.",
   1469     .http_code = MHD_HTTP_NOT_FOUND
   1470   },
   1471 
   1472   {
   1473     /* 1578 */
   1474     .ec = TALER_EC_EXCHANGE_RECOUP_REFRESH_BLINDING_FAILED,
   1475     .hint = "The exchange failed to reproduce the coin's blinding.",
   1476     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   1477   },
   1478 
   1479   {
   1480     /* 1580 */
   1481     .ec = TALER_EC_EXCHANGE_RECOUP_REFRESH_NOT_ELIGIBLE,
   1482     .hint = "The coin's denomination has not been revoked yet.",
   1483     .http_code = MHD_HTTP_GONE
   1484   },
   1485 
   1486   {
   1487     /* 1581 */
   1488     .ec = TALER_EC_EXCHANGE_RECOUP_REFRESH_BATCH_SIZE_MISMATCH,
   1489     .hint =
   1490       "The number of coins in the recoup request does not match the number of coins signed in the refresh operation.",
   1491     .http_code = MHD_HTTP_BAD_REQUEST
   1492   },
   1493 
   1494   {
   1495     /* 1582 */
   1496     .ec = TALER_EC_EXCHANGE_RECOUP_REFRESH_COMMITMENT_MISMATCH,
   1497     .hint =
   1498       "The hash over the coins in the recoup request does not match the commitment of the refresh operation.  At least one disclosed coin was not part of the operation.",
   1499     .http_code = MHD_HTTP_CONFLICT
   1500   },
   1501 
   1502   {
   1503     /* 1583 */
   1504     .ec = TALER_EC_EXCHANGE_RECOUP_REFRESH_DENOMINATION_MISMATCH,
   1505     .hint =
   1506       "The denomination of a disclosed coin differs from the denomination recorded for that position of the refresh operation.",
   1507     .http_code = MHD_HTTP_CONFLICT
   1508   },
   1509 
   1510   {
   1511     /* 1600 */
   1512     .ec = TALER_EC_EXCHANGE_KEYS_TIMETRAVEL_FORBIDDEN,
   1513     .hint =
   1514       "This exchange does not allow clients to request `/keys` for times other than the current exchange time.",
   1515     .http_code = MHD_HTTP_FORBIDDEN
   1516   },
   1517 
   1518   {
   1519     /* 1650 */
   1520     .ec = TALER_EC_EXCHANGE_WIRE_SIGNATURE_INVALID,
   1521     .hint = "A signature in the server's response was malformed.",
   1522     .http_code = MHD_HTTP_UNINITIALIZED
   1523   },
   1524 
   1525   {
   1526     /* 1651 */
   1527     .ec = TALER_EC_EXCHANGE_WIRE_NO_ACCOUNTS_CONFIGURED,
   1528     .hint =
   1529       "No bank accounts are enabled for the exchange. The administrator should enable an account using the `taler-exchange-offline` tool.",
   1530     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   1531   },
   1532 
   1533   {
   1534     /* 1652 */
   1535     .ec = TALER_EC_EXCHANGE_WIRE_INVALID_PAYTO_CONFIGURED,
   1536     .hint =
   1537       "The payto:// URI stored in the exchange database for its bank account is malformed.",
   1538     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   1539   },
   1540 
   1541   {
   1542     /* 1653 */
   1543     .ec = TALER_EC_EXCHANGE_WIRE_FEES_NOT_CONFIGURED,
   1544     .hint =
   1545       "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.",
   1546     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   1547   },
   1548 
   1549   {
   1550     /* 1675 */
   1551     .ec = TALER_EC_EXCHANGE_RESERVES_PURSE_CREATE_CONFLICTING_META_DATA,
   1552     .hint = "This purse was previously created with different metadata.",
   1553     .http_code = MHD_HTTP_CONFLICT
   1554   },
   1555 
   1556   {
   1557     /* 1676 */
   1558     .ec = TALER_EC_EXCHANGE_RESERVES_PURSE_MERGE_CONFLICTING_META_DATA,
   1559     .hint = "This purse was previously merged with different metadata.",
   1560     .http_code = MHD_HTTP_CONFLICT
   1561   },
   1562 
   1563   {
   1564     /* 1677 */
   1565     .ec = TALER_EC_EXCHANGE_RESERVES_PURSE_CREATE_INSUFFICIENT_FUNDS,
   1566     .hint = "The reserve has insufficient funds to create another purse.",
   1567     .http_code = MHD_HTTP_CONFLICT
   1568   },
   1569 
   1570   {
   1571     /* 1678 */
   1572     .ec = TALER_EC_EXCHANGE_RESERVES_PURSE_FEE_TOO_LOW,
   1573     .hint =
   1574       "The purse fee specified for the request is lower than the purse fee charged by the exchange at this time.",
   1575     .http_code = MHD_HTTP_BAD_REQUEST
   1576   },
   1577 
   1578   {
   1579     /* 1679 */
   1580     .ec = TALER_EC_EXCHANGE_PURSE_DELETE_ALREADY_DECIDED,
   1581     .hint =
   1582       "The payment request cannot be deleted anymore, as it either already completed or timed out.",
   1583     .http_code = MHD_HTTP_CONFLICT
   1584   },
   1585 
   1586   {
   1587     /* 1680 */
   1588     .ec = TALER_EC_EXCHANGE_PURSE_DELETE_SIGNATURE_INVALID,
   1589     .hint = "The signature affirming the purse deletion is invalid.",
   1590     .http_code = MHD_HTTP_FORBIDDEN
   1591   },
   1592 
   1593   {
   1594     /* 1681 */
   1595     .ec = TALER_EC_EXCHANGE_RESERVES_AGE_RESTRICTION_REQUIRED,
   1596     .hint = "Withdrawal from the reserve requires age restriction to be set.",
   1597     .http_code = MHD_HTTP_FORBIDDEN
   1598   },
   1599 
   1600   {
   1601     /* 1700 */
   1602     .ec = TALER_EC_EXCHANGE_DENOMINATION_HELPER_UNAVAILABLE,
   1603     .hint =
   1604       "The exchange failed to talk to the process responsible for its private denomination keys or the helpers had no denominations (properly) configured.",
   1605     .http_code = MHD_HTTP_BAD_GATEWAY
   1606   },
   1607 
   1608   {
   1609     /* 1701 */
   1610     .ec = TALER_EC_EXCHANGE_DENOMINATION_HELPER_BUG,
   1611     .hint =
   1612       "The response from the denomination key helper process was malformed.",
   1613     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   1614   },
   1615 
   1616   {
   1617     /* 1702 */
   1618     .ec = TALER_EC_EXCHANGE_DENOMINATION_HELPER_TOO_EARLY,
   1619     .hint =
   1620       "The helper refuses to sign with the key, because it is too early: the validity period has not yet started.",
   1621     .http_code = MHD_HTTP_BAD_REQUEST
   1622   },
   1623 
   1624   {
   1625     /* 1725 */
   1626     .ec = TALER_EC_EXCHANGE_PURSE_DEPOSIT_EXCHANGE_SIGNATURE_INVALID,
   1627     .hint = "The exchange's signature on the response was invalid.",
   1628     .http_code = MHD_HTTP_UNINITIALIZED
   1629   },
   1630 
   1631   {
   1632     /* 1750 */
   1633     .ec = TALER_EC_EXCHANGE_SIGNKEY_HELPER_UNAVAILABLE,
   1634     .hint =
   1635       "The exchange failed to talk to the process responsible for its private signing keys.",
   1636     .http_code = MHD_HTTP_BAD_GATEWAY
   1637   },
   1638 
   1639   {
   1640     /* 1751 */
   1641     .ec = TALER_EC_EXCHANGE_SIGNKEY_HELPER_BUG,
   1642     .hint =
   1643       "The response from the online signing key helper process was malformed.",
   1644     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   1645   },
   1646 
   1647   {
   1648     /* 1752 */
   1649     .ec = TALER_EC_EXCHANGE_SIGNKEY_HELPER_TOO_EARLY,
   1650     .hint =
   1651       "The helper refuses to sign with the key, because it is too early: the validity period has not yet started.",
   1652     .http_code = MHD_HTTP_BAD_REQUEST
   1653   },
   1654 
   1655   {
   1656     /* 1753 */
   1657     .ec = TALER_EC_EXCHANGE_SIGNKEY_HELPER_OFFLINE_MISSING,
   1658     .hint =
   1659       "The signatures from the master exchange public key are missing, thus the exchange cannot currently sign its API responses. The exchange operator must use taler-exchange-offline to sign the current key material.",
   1660     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   1661   },
   1662 
   1663   {
   1664     /* 1775 */
   1665     .ec = TALER_EC_EXCHANGE_RESERVES_PURSE_EXPIRATION_BEFORE_NOW,
   1666     .hint =
   1667       "The purse expiration time is in the past at the time of its creation.",
   1668     .http_code = MHD_HTTP_BAD_REQUEST
   1669   },
   1670 
   1671   {
   1672     /* 1776 */
   1673     .ec = TALER_EC_EXCHANGE_RESERVES_PURSE_EXPIRATION_IS_NEVER,
   1674     .hint = "The purse expiration time is set to never, which is not allowed.",
   1675     .http_code = MHD_HTTP_BAD_REQUEST
   1676   },
   1677 
   1678   {
   1679     /* 1777 */
   1680     .ec = TALER_EC_EXCHANGE_RESERVES_PURSE_MERGE_SIGNATURE_INVALID,
   1681     .hint = "The signature affirming the merge of the purse is invalid.",
   1682     .http_code = MHD_HTTP_FORBIDDEN
   1683   },
   1684 
   1685   {
   1686     /* 1778 */
   1687     .ec = TALER_EC_EXCHANGE_RESERVES_RESERVE_MERGE_SIGNATURE_INVALID,
   1688     .hint = "The signature by the reserve affirming the merge is invalid.",
   1689     .http_code = MHD_HTTP_FORBIDDEN
   1690   },
   1691 
   1692   {
   1693     /* 1779 */
   1694     .ec = TALER_EC_EXCHANGE_RESERVES_PURSE_EXPIRATION_TOO_LATE,
   1695     .hint =
   1696       "The purse expiration time is further in the future than the exchange allows.",
   1697     .http_code = MHD_HTTP_BAD_REQUEST
   1698   },
   1699 
   1700   {
   1701     /* 1785 */
   1702     .ec = TALER_EC_EXCHANGE_RESERVES_OPEN_BAD_SIGNATURE,
   1703     .hint =
   1704       "The signature by the reserve affirming the open operation is invalid.",
   1705     .http_code = MHD_HTTP_FORBIDDEN
   1706   },
   1707 
   1708   {
   1709     /* 1786 */
   1710     .ec = TALER_EC_EXCHANGE_RESERVES_CLOSE_BAD_SIGNATURE,
   1711     .hint =
   1712       "The signature by the reserve affirming the close operation is invalid.",
   1713     .http_code = MHD_HTTP_FORBIDDEN
   1714   },
   1715 
   1716   {
   1717     /* 1787 */
   1718     .ec = TALER_EC_EXCHANGE_RESERVES_ATTEST_BAD_SIGNATURE,
   1719     .hint =
   1720       "The signature by the reserve affirming the attestation request is invalid.",
   1721     .http_code = MHD_HTTP_FORBIDDEN
   1722   },
   1723 
   1724   {
   1725     /* 1788 */
   1726     .ec = TALER_EC_EXCHANGE_RESERVES_CLOSE_NO_TARGET_ACCOUNT,
   1727     .hint =
   1728       "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.",
   1729     .http_code = MHD_HTTP_CONFLICT
   1730   },
   1731 
   1732   {
   1733     /* 1789 */
   1734     .ec = TALER_EC_EXCHANGE_RESERVES_OPEN_INSUFFICIENT_FUNDS,
   1735     .hint =
   1736       "The reserve balance is insufficient to pay for the open operation.",
   1737     .http_code = MHD_HTTP_CONFLICT
   1738   },
   1739 
   1740   {
   1741     /* 1790 */
   1742     .ec = TALER_EC_EXCHANGE_RESERVES_OPEN_COIN_SIGNATURE_INVALID,
   1743     .hint =
   1744       "A coin signature for a deposit to pay to open the reserve is invalid.",
   1745     .http_code = MHD_HTTP_FORBIDDEN
   1746   },
   1747 
   1748   {
   1749     /* 1791 */
   1750     .ec = TALER_EC_EXCHANGE_RESERVES_OPEN_TIMESTAMP_REUSE,
   1751     .hint =
   1752       "A different request to keep the reserve open was already processed with the same request timestamp. Each open request of a reserve must use a distinct request timestamp.",
   1753     .http_code = MHD_HTTP_CONFLICT
   1754   },
   1755 
   1756   {
   1757     /* 1800 */
   1758     .ec = TALER_EC_EXCHANGE_MANAGEMENT_AUDITOR_NOT_FOUND,
   1759     .hint =
   1760       "The auditor that was supposed to be disabled is unknown to this exchange.",
   1761     .http_code = MHD_HTTP_NOT_FOUND
   1762   },
   1763 
   1764   {
   1765     /* 1801 */
   1766     .ec = TALER_EC_EXCHANGE_MANAGEMENT_AUDITOR_MORE_RECENT_PRESENT,
   1767     .hint =
   1768       "The exchange has a more recently signed conflicting instruction and is thus refusing the current change (replay detected).",
   1769     .http_code = MHD_HTTP_CONFLICT
   1770   },
   1771 
   1772   {
   1773     /* 1802 */
   1774     .ec = TALER_EC_EXCHANGE_MANAGEMENT_AUDITOR_ADD_SIGNATURE_INVALID,
   1775     .hint = "The signature to add or enable the auditor does not validate.",
   1776     .http_code = MHD_HTTP_FORBIDDEN
   1777   },
   1778 
   1779   {
   1780     /* 1803 */
   1781     .ec = TALER_EC_EXCHANGE_MANAGEMENT_AUDITOR_DEL_SIGNATURE_INVALID,
   1782     .hint = "The signature to disable the auditor does not validate.",
   1783     .http_code = MHD_HTTP_FORBIDDEN
   1784   },
   1785 
   1786   {
   1787     /* 1804 */
   1788     .ec = TALER_EC_EXCHANGE_MANAGEMENT_DENOMINATION_REVOKE_SIGNATURE_INVALID,
   1789     .hint = "The signature to revoke the denomination does not validate.",
   1790     .http_code = MHD_HTTP_FORBIDDEN
   1791   },
   1792 
   1793   {
   1794     /* 1805 */
   1795     .ec = TALER_EC_EXCHANGE_MANAGEMENT_SIGNKEY_REVOKE_SIGNATURE_INVALID,
   1796     .hint = "The signature to revoke the online signing key does not validate.",
   1797     .http_code = MHD_HTTP_FORBIDDEN
   1798   },
   1799 
   1800   {
   1801     /* 1806 */
   1802     .ec = TALER_EC_EXCHANGE_MANAGEMENT_WIRE_MORE_RECENT_PRESENT,
   1803     .hint =
   1804       "The exchange has a more recently signed conflicting instruction and is thus refusing the current change (replay detected).",
   1805     .http_code = MHD_HTTP_CONFLICT
   1806   },
   1807 
   1808   {
   1809     /* 1807 */
   1810     .ec = TALER_EC_EXCHANGE_MANAGEMENT_KEYS_SIGNKEY_UNKNOWN,
   1811     .hint = "The signingkey specified is unknown to the exchange.",
   1812     .http_code = MHD_HTTP_NOT_FOUND
   1813   },
   1814 
   1815   {
   1816     /* 1808 */
   1817     .ec = TALER_EC_EXCHANGE_MANAGEMENT_WIRE_DETAILS_SIGNATURE_INVALID,
   1818     .hint = "The signature to publish wire account does not validate.",
   1819     .http_code = MHD_HTTP_FORBIDDEN
   1820   },
   1821 
   1822   {
   1823     /* 1809 */
   1824     .ec = TALER_EC_EXCHANGE_MANAGEMENT_WIRE_ADD_SIGNATURE_INVALID,
   1825     .hint = "The signature to add the wire account does not validate.",
   1826     .http_code = MHD_HTTP_FORBIDDEN
   1827   },
   1828 
   1829   {
   1830     /* 1810 */
   1831     .ec = TALER_EC_EXCHANGE_MANAGEMENT_WIRE_DEL_SIGNATURE_INVALID,
   1832     .hint = "The signature to disable the wire account does not validate.",
   1833     .http_code = MHD_HTTP_FORBIDDEN
   1834   },
   1835 
   1836   {
   1837     /* 1811 */
   1838     .ec = TALER_EC_EXCHANGE_MANAGEMENT_WIRE_NOT_FOUND,
   1839     .hint = "The wire account to be disabled is unknown to the exchange.",
   1840     .http_code = MHD_HTTP_NOT_FOUND
   1841   },
   1842 
   1843   {
   1844     /* 1812 */
   1845     .ec = TALER_EC_EXCHANGE_MANAGEMENT_WIRE_FEE_SIGNATURE_INVALID,
   1846     .hint = "The signature to affirm wire fees does not validate.",
   1847     .http_code = MHD_HTTP_FORBIDDEN
   1848   },
   1849 
   1850   {
   1851     /* 1813 */
   1852     .ec = TALER_EC_EXCHANGE_MANAGEMENT_WIRE_FEE_MISMATCH,
   1853     .hint =
   1854       "The signature conflicts with a previous signature affirming different fees.",
   1855     .http_code = MHD_HTTP_CONFLICT
   1856   },
   1857 
   1858   {
   1859     /* 1814 */
   1860     .ec = TALER_EC_EXCHANGE_MANAGEMENT_KEYS_DENOMKEY_ADD_SIGNATURE_INVALID,
   1861     .hint = "The signature affirming the denomination key is invalid.",
   1862     .http_code = MHD_HTTP_FORBIDDEN
   1863   },
   1864 
   1865   {
   1866     /* 1815 */
   1867     .ec = TALER_EC_EXCHANGE_MANAGEMENT_KEYS_SIGNKEY_ADD_SIGNATURE_INVALID,
   1868     .hint = "The signature affirming the signing key is invalid.",
   1869     .http_code = MHD_HTTP_FORBIDDEN
   1870   },
   1871 
   1872   {
   1873     /* 1816 */
   1874     .ec = TALER_EC_EXCHANGE_MANAGEMENT_GLOBAL_FEE_MISMATCH,
   1875     .hint =
   1876       "The signature conflicts with a previous signature affirming different fees.",
   1877     .http_code = MHD_HTTP_CONFLICT
   1878   },
   1879 
   1880   {
   1881     /* 1817 */
   1882     .ec = TALER_EC_EXCHANGE_MANAGEMENT_GLOBAL_FEE_SIGNATURE_INVALID,
   1883     .hint = "The signature affirming the fee structure is invalid.",
   1884     .http_code = MHD_HTTP_FORBIDDEN
   1885   },
   1886 
   1887   {
   1888     /* 1818 */
   1889     .ec = TALER_EC_EXCHANGE_MANAGEMENT_DRAIN_PROFITS_SIGNATURE_INVALID,
   1890     .hint = "The signature affirming the profit drain is invalid.",
   1891     .http_code = MHD_HTTP_FORBIDDEN
   1892   },
   1893 
   1894   {
   1895     /* 1825 */
   1896     .ec = TALER_EC_EXCHANGE_AML_DECISION_ADD_SIGNATURE_INVALID,
   1897     .hint = "The signature affirming the AML decision is invalid.",
   1898     .http_code = MHD_HTTP_FORBIDDEN
   1899   },
   1900 
   1901   {
   1902     /* 1826 */
   1903     .ec = TALER_EC_EXCHANGE_AML_DECISION_INVALID_OFFICER,
   1904     .hint =
   1905       "The AML officer specified is not allowed to make AML decisions right now.",
   1906     .http_code = MHD_HTTP_FORBIDDEN
   1907   },
   1908 
   1909   {
   1910     /* 1827 */
   1911     .ec = TALER_EC_EXCHANGE_AML_DECISION_MORE_RECENT_PRESENT,
   1912     .hint =
   1913       "There is a more recent AML decision on file. The decision was rejected as timestamps of AML decisions must be monotonically increasing.",
   1914     .http_code = MHD_HTTP_CONFLICT
   1915   },
   1916 
   1917   {
   1918     /* 1828 */
   1919     .ec = TALER_EC_EXCHANGE_AML_DECISION_UNKNOWN_CHECK,
   1920     .hint =
   1921       "The AML decision would impose an AML check of a type that is not provided by any KYC provider known to the exchange.",
   1922     .http_code = MHD_HTTP_BAD_REQUEST
   1923   },
   1924 
   1925   {
   1926     /* 1830 */
   1927     .ec = TALER_EC_EXCHANGE_MANAGEMENT_UPDATE_AML_OFFICER_SIGNATURE_INVALID,
   1928     .hint =
   1929       "The signature affirming the change in the AML officer status is invalid.",
   1930     .http_code = MHD_HTTP_FORBIDDEN
   1931   },
   1932 
   1933   {
   1934     /* 1831 */
   1935     .ec = TALER_EC_EXCHANGE_MANAGEMENT_AML_OFFICERS_MORE_RECENT_PRESENT,
   1936     .hint =
   1937       "A more recent decision about the AML officer status is known to the exchange.",
   1938     .http_code = MHD_HTTP_CONFLICT
   1939   },
   1940 
   1941   {
   1942     /* 1832 */
   1943     .ec = TALER_EC_EXCHANGE_MANAGEMENT_CONFLICTING_DENOMINATION_META_DATA,
   1944     .hint =
   1945       "The exchange already has this denomination key configured, but with different metadata. This should not be possible; contact the developers for support.",
   1946     .http_code = MHD_HTTP_CONFLICT
   1947   },
   1948 
   1949   {
   1950     /* 1833 */
   1951     .ec = TALER_EC_EXCHANGE_MANAGEMENT_CONFLICTING_SIGNKEY_META_DATA,
   1952     .hint =
   1953       "The exchange already has this signing key configured, but with different metadata. This should not be possible; contact the developers for support.",
   1954     .http_code = MHD_HTTP_CONFLICT
   1955   },
   1956 
   1957   {
   1958     /* 1850 */
   1959     .ec = TALER_EC_EXCHANGE_PURSE_CREATE_CONFLICTING_META_DATA,
   1960     .hint = "The purse was previously created with different metadata.",
   1961     .http_code = MHD_HTTP_CONFLICT
   1962   },
   1963 
   1964   {
   1965     /* 1851 */
   1966     .ec = TALER_EC_EXCHANGE_PURSE_CREATE_CONFLICTING_CONTRACT_STORED,
   1967     .hint = "The purse was previously created with a different contract.",
   1968     .http_code = MHD_HTTP_CONFLICT
   1969   },
   1970 
   1971   {
   1972     /* 1852 */
   1973     .ec = TALER_EC_EXCHANGE_PURSE_CREATE_COIN_SIGNATURE_INVALID,
   1974     .hint = "A coin signature for a deposit into the purse is invalid.",
   1975     .http_code = MHD_HTTP_FORBIDDEN
   1976   },
   1977 
   1978   {
   1979     /* 1853 */
   1980     .ec = TALER_EC_EXCHANGE_PURSE_CREATE_EXPIRATION_BEFORE_NOW,
   1981     .hint = "The purse expiration time is in the past.",
   1982     .http_code = MHD_HTTP_BAD_REQUEST
   1983   },
   1984 
   1985   {
   1986     /* 1854 */
   1987     .ec = TALER_EC_EXCHANGE_PURSE_CREATE_EXPIRATION_IS_NEVER,
   1988     .hint = "The purse expiration time is `never`.",
   1989     .http_code = MHD_HTTP_BAD_REQUEST
   1990   },
   1991 
   1992   {
   1993     /* 1855 */
   1994     .ec = TALER_EC_EXCHANGE_PURSE_CREATE_SIGNATURE_INVALID,
   1995     .hint = "The purse signature over the purse metadata is invalid.",
   1996     .http_code = MHD_HTTP_FORBIDDEN
   1997   },
   1998 
   1999   {
   2000     /* 1856 */
   2001     .ec = TALER_EC_EXCHANGE_PURSE_ECONTRACT_SIGNATURE_INVALID,
   2002     .hint = "The signature over the encrypted contract is invalid.",
   2003     .http_code = MHD_HTTP_FORBIDDEN
   2004   },
   2005 
   2006   {
   2007     /* 1857 */
   2008     .ec = TALER_EC_EXCHANGE_PURSE_CREATE_EXCHANGE_SIGNATURE_INVALID,
   2009     .hint = "The signature from the exchange over the confirmation is invalid.",
   2010     .http_code = MHD_HTTP_UNINITIALIZED
   2011   },
   2012 
   2013   {
   2014     /* 1858 */
   2015     .ec = TALER_EC_EXCHANGE_PURSE_DEPOSIT_CONFLICTING_META_DATA,
   2016     .hint = "The coin was previously deposited with different metadata.",
   2017     .http_code = MHD_HTTP_CONFLICT
   2018   },
   2019 
   2020   {
   2021     /* 1859 */
   2022     .ec = TALER_EC_EXCHANGE_PURSE_ECONTRACT_CONFLICTING_META_DATA,
   2023     .hint =
   2024       "The encrypted contract was previously uploaded with different metadata.",
   2025     .http_code = MHD_HTTP_CONFLICT
   2026   },
   2027 
   2028   {
   2029     /* 1860 */
   2030     .ec = TALER_EC_EXCHANGE_CREATE_PURSE_NEGATIVE_VALUE_AFTER_FEE,
   2031     .hint = "The deposited amount is less than the purse fee.",
   2032     .http_code = MHD_HTTP_BAD_REQUEST
   2033   },
   2034 
   2035   {
   2036     /* 1862 */
   2037     .ec = TALER_EC_EXCHANGE_PURSE_CREATE_EXPIRATION_TOO_LATE,
   2038     .hint =
   2039       "The purse expiration time is further in the future than the exchange allows.",
   2040     .http_code = MHD_HTTP_BAD_REQUEST
   2041   },
   2042 
   2043   {
   2044     /* 1863 */
   2045     .ec = TALER_EC_EXCHANGE_PURSE_DENOMINATION_LEGAL_EXPIRES_TOO_SOON,
   2046     .hint =
   2047       "The denomination of a coin deposited into the purse stops being legally valid before the purse expiration time.",
   2048     .http_code = MHD_HTTP_BAD_REQUEST
   2049   },
   2050 
   2051   {
   2052     /* 1876 */
   2053     .ec = TALER_EC_EXCHANGE_PURSE_MERGE_INVALID_MERGE_SIGNATURE,
   2054     .hint = "The signature using the merge key is invalid.",
   2055     .http_code = MHD_HTTP_FORBIDDEN
   2056   },
   2057 
   2058   {
   2059     /* 1877 */
   2060     .ec = TALER_EC_EXCHANGE_PURSE_MERGE_INVALID_RESERVE_SIGNATURE,
   2061     .hint = "The signature using the reserve key is invalid.",
   2062     .http_code = MHD_HTTP_FORBIDDEN
   2063   },
   2064 
   2065   {
   2066     /* 1878 */
   2067     .ec = TALER_EC_EXCHANGE_PURSE_NOT_FULL,
   2068     .hint =
   2069       "The targeted purse is not yet full and thus cannot be merged. Retrying the request later may succeed.",
   2070     .http_code = MHD_HTTP_CONFLICT
   2071   },
   2072 
   2073   {
   2074     /* 1879 */
   2075     .ec = TALER_EC_EXCHANGE_PURSE_MERGE_EXCHANGE_SIGNATURE_INVALID,
   2076     .hint = "The signature from the exchange over the confirmation is invalid.",
   2077     .http_code = MHD_HTTP_UNINITIALIZED
   2078   },
   2079 
   2080   {
   2081     /* 1880 */
   2082     .ec = TALER_EC_EXCHANGE_MERGE_PURSE_PARTNER_UNKNOWN,
   2083     .hint =
   2084       "The exchange of the target account is not a partner of this exchange.",
   2085     .http_code = MHD_HTTP_NOT_FOUND
   2086   },
   2087 
   2088   {
   2089     /* 1890 */
   2090     .ec = TALER_EC_EXCHANGE_MANAGEMENT_ADD_PARTNER_SIGNATURE_INVALID,
   2091     .hint = "The signature affirming the new partner is invalid.",
   2092     .http_code = MHD_HTTP_FORBIDDEN
   2093   },
   2094 
   2095   {
   2096     /* 1891 */
   2097     .ec = TALER_EC_EXCHANGE_MANAGEMENT_ADD_PARTNER_DATA_CONFLICT,
   2098     .hint =
   2099       "Conflicting data for the partner already exists with the exchange.",
   2100     .http_code = MHD_HTTP_CONFLICT
   2101   },
   2102 
   2103   {
   2104     /* 1900 */
   2105     .ec = TALER_EC_EXCHANGE_AUDITORS_AUDITOR_SIGNATURE_INVALID,
   2106     .hint = "The auditor signature over the denomination metadata is invalid.",
   2107     .http_code = MHD_HTTP_FORBIDDEN
   2108   },
   2109 
   2110   {
   2111     /* 1901 */
   2112     .ec = TALER_EC_EXCHANGE_AUDITORS_AUDITOR_UNKNOWN,
   2113     .hint = "The auditor that was specified is unknown to this exchange.",
   2114     .http_code = MHD_HTTP_PRECONDITION_FAILED
   2115   },
   2116 
   2117   {
   2118     /* 1902 */
   2119     .ec = TALER_EC_EXCHANGE_AUDITORS_AUDITOR_INACTIVE,
   2120     .hint =
   2121       "The auditor that was specified is no longer used by this exchange.",
   2122     .http_code = MHD_HTTP_GONE
   2123   },
   2124 
   2125   {
   2126     /* 1917 */
   2127     .ec = TALER_EC_EXCHANGE_KYC_INVALID_FORM_SUBMITTED,
   2128     .hint =
   2129       "The client submitted the wrong form for the request. This is some invalid use of the API. Please contact technical support.",
   2130     .http_code = MHD_HTTP_CONFLICT
   2131   },
   2132 
   2133   {
   2134     /* 1918 */
   2135     .ec = TALER_EC_EXCHANGE_KYC_GENERIC_AML_PROGRAM_TIMEOUT,
   2136     .hint =
   2137       "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).",
   2138     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2139   },
   2140 
   2141   {
   2142     /* 1919 */
   2143     .ec = TALER_EC_EXCHANGE_KYC_INFO_AUTHORIZATION_FAILED,
   2144     .hint =
   2145       "The KYC info access token is not recognized. Hence the request was denied.",
   2146     .http_code = MHD_HTTP_FORBIDDEN
   2147   },
   2148 
   2149   {
   2150     /* 1920 */
   2151     .ec = TALER_EC_EXCHANGE_KYC_RECURSIVE_RULE_DETECTED,
   2152     .hint =
   2153       "The exchange got stuck in a long series of likely recursive KYC rules without user input, preventing a timely conclusion. This is a configuration failure. The administrator should investigate.",
   2154     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2155   },
   2156 
   2157   {
   2158     /* 1921 */
   2159     .ec = TALER_EC_EXCHANGE_KYC_AML_FORM_INCOMPLETE,
   2160     .hint =
   2161       "The submitted KYC data lacks an attribute that is required by the KYC form. Please submit the complete form.",
   2162     .http_code = MHD_HTTP_BAD_REQUEST
   2163   },
   2164 
   2165   {
   2166     /* 1922 */
   2167     .ec = TALER_EC_EXCHANGE_KYC_GENERIC_AML_PROGRAM_GONE,
   2168     .hint =
   2169       "The request requires an AML program which is no longer configured at the exchange. Contact the exchange operator to address the configuration issue.",
   2170     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2171   },
   2172 
   2173   {
   2174     /* 1923 */
   2175     .ec = TALER_EC_EXCHANGE_KYC_NOT_A_FORM,
   2176     .hint =
   2177       "The given check is not of type 'form' and thus using this handler for form submission is incorrect.",
   2178     .http_code = MHD_HTTP_BAD_REQUEST
   2179   },
   2180 
   2181   {
   2182     /* 1924 */
   2183     .ec = TALER_EC_EXCHANGE_KYC_GENERIC_CHECK_GONE,
   2184     .hint =
   2185       "The request requires a check which is no longer configured at the exchange. Contact the exchange operator to address the configuration issue.",
   2186     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2187   },
   2188 
   2189   {
   2190     /* 1925 */
   2191     .ec = TALER_EC_EXCHANGE_KYC_WALLET_SIGNATURE_INVALID,
   2192     .hint = "The signature affirming the wallet's KYC request was invalid.",
   2193     .http_code = MHD_HTTP_FORBIDDEN
   2194   },
   2195 
   2196   {
   2197     /* 1926 */
   2198     .ec = TALER_EC_EXCHANGE_KYC_PROOF_BACKEND_INVALID_RESPONSE,
   2199     .hint =
   2200       "The exchange received an unexpected malformed response from its KYC backend.",
   2201     .http_code = MHD_HTTP_BAD_GATEWAY
   2202   },
   2203 
   2204   {
   2205     /* 1927 */
   2206     .ec = TALER_EC_EXCHANGE_KYC_PROOF_BACKEND_ERROR,
   2207     .hint = "The backend signaled an unexpected failure.",
   2208     .http_code = MHD_HTTP_BAD_GATEWAY
   2209   },
   2210 
   2211   {
   2212     /* 1928 */
   2213     .ec = TALER_EC_EXCHANGE_KYC_PROOF_BACKEND_AUTHORIZATION_FAILED,
   2214     .hint = "The backend signaled an authorization failure.",
   2215     .http_code = MHD_HTTP_FORBIDDEN
   2216   },
   2217 
   2218   {
   2219     /* 1929 */
   2220     .ec = TALER_EC_EXCHANGE_KYC_PROOF_REQUEST_UNKNOWN,
   2221     .hint = "The exchange is unaware of having made the authorization request.",
   2222     .http_code = MHD_HTTP_NOT_FOUND
   2223   },
   2224 
   2225   {
   2226     /* 1930 */
   2227     .ec = TALER_EC_EXCHANGE_KYC_CHECK_AUTHORIZATION_FAILED,
   2228     .hint =
   2229       "The KYC authorization signature was invalid. Hence the request was denied.",
   2230     .http_code = MHD_HTTP_FORBIDDEN
   2231   },
   2232 
   2233   {
   2234     /* 1931 */
   2235     .ec = TALER_EC_EXCHANGE_KYC_GENERIC_LOGIC_UNKNOWN,
   2236     .hint =
   2237       "The request used a logic specifier that is not known to the exchange.",
   2238     .http_code = MHD_HTTP_NOT_FOUND
   2239   },
   2240 
   2241   {
   2242     /* 1932 */
   2243     .ec = TALER_EC_EXCHANGE_KYC_GENERIC_LOGIC_GONE,
   2244     .hint =
   2245       "The request requires a logic which is no longer configured at the exchange.",
   2246     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2247   },
   2248 
   2249   {
   2250     /* 1933 */
   2251     .ec = TALER_EC_EXCHANGE_KYC_GENERIC_LOGIC_BUG,
   2252     .hint =
   2253       "The logic plugin had a bug in its interaction with the KYC provider.",
   2254     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2255   },
   2256 
   2257   {
   2258     /* 1934 */
   2259     .ec = TALER_EC_EXCHANGE_KYC_GENERIC_PROVIDER_ACCESS_REFUSED,
   2260     .hint =
   2261       "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.",
   2262     .http_code = MHD_HTTP_NETWORK_AUTHENTICATION_REQUIRED
   2263   },
   2264 
   2265   {
   2266     /* 1935 */
   2267     .ec = TALER_EC_EXCHANGE_KYC_GENERIC_PROVIDER_TIMEOUT,
   2268     .hint =
   2269       "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.",
   2270     .http_code = MHD_HTTP_GATEWAY_TIMEOUT
   2271   },
   2272 
   2273   {
   2274     /* 1936 */
   2275     .ec = TALER_EC_EXCHANGE_KYC_GENERIC_PROVIDER_UNEXPECTED_REPLY,
   2276     .hint =
   2277       "The KYC provider responded with a status that was completely unexpected by the KYC logic of the exchange.",
   2278     .http_code = MHD_HTTP_BAD_GATEWAY
   2279   },
   2280 
   2281   {
   2282     /* 1937 */
   2283     .ec = TALER_EC_EXCHANGE_KYC_GENERIC_PROVIDER_RATE_LIMIT_EXCEEDED,
   2284     .hint =
   2285       "The rate limit of the exchange at the KYC provider has been exceeded. Trying much later might work.",
   2286     .http_code = MHD_HTTP_SERVICE_UNAVAILABLE
   2287   },
   2288 
   2289   {
   2290     /* 1938 */
   2291     .ec = TALER_EC_EXCHANGE_KYC_WEBHOOK_UNAUTHORIZED,
   2292     .hint =
   2293       "The request to the webhook lacked proper authorization or authentication data.",
   2294     .http_code = MHD_HTTP_UNAUTHORIZED
   2295   },
   2296 
   2297   {
   2298     /* 1939 */
   2299     .ec = TALER_EC_EXCHANGE_KYC_CHECK_REQUEST_UNKNOWN,
   2300     .hint =
   2301       "The exchange is unaware of the requested payto URI with respect to the KYC status.",
   2302     .http_code = MHD_HTTP_NOT_FOUND
   2303   },
   2304 
   2305   {
   2306     /* 1940 */
   2307     .ec = TALER_EC_EXCHANGE_KYC_CHECK_AUTHORIZATION_KEY_UNKNOWN,
   2308     .hint =
   2309       "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.",
   2310     .http_code = MHD_HTTP_CONFLICT
   2311   },
   2312 
   2313   {
   2314     /* 1941 */
   2315     .ec = TALER_EC_EXCHANGE_KYC_FORM_ALREADY_UPLOADED,
   2316     .hint =
   2317       "The form was previously uploaded and may only be submitted once. The user should be redirected to the main KYC page to determine whether further steps are required.",
   2318     .http_code = MHD_HTTP_CONFLICT
   2319   },
   2320 
   2321   {
   2322     /* 1942 */
   2323     .ec = TALER_EC_EXCHANGE_KYC_MEASURES_MALFORMED,
   2324     .hint =
   2325       "The internal state of the exchange specifying KYC measures is malformed. Please contact technical support.",
   2326     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2327   },
   2328 
   2329   {
   2330     /* 1943 */
   2331     .ec = TALER_EC_EXCHANGE_KYC_MEASURE_INDEX_INVALID,
   2332     .hint =
   2333       "The specified index does not refer to a valid KYC measure. Please check the URL.",
   2334     .http_code = MHD_HTTP_NOT_FOUND
   2335   },
   2336 
   2337   {
   2338     /* 1944 */
   2339     .ec = TALER_EC_EXCHANGE_KYC_INVALID_LOGIC_TO_CHECK,
   2340     .hint =
   2341       "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.",
   2342     .http_code = MHD_HTTP_CONFLICT
   2343   },
   2344 
   2345   {
   2346     /* 1945 */
   2347     .ec = TALER_EC_EXCHANGE_KYC_AML_PROGRAM_FAILURE,
   2348     .hint =
   2349       "The AML program failed. This is either caused by a configuration change or a bug. Please contact technical support.",
   2350     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2351   },
   2352 
   2353   {
   2354     /* 1946 */
   2355     .ec = TALER_EC_EXCHANGE_KYC_AML_PROGRAM_MALFORMED_RESULT,
   2356     .hint =
   2357       "The AML program returned a malformed result. This is a bug. Please contact technical support.",
   2358     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2359   },
   2360 
   2361   {
   2362     /* 1947 */
   2363     .ec = TALER_EC_EXCHANGE_KYC_GENERIC_PROVIDER_INCOMPLETE_REPLY,
   2364     .hint =
   2365       "The response from the KYC provider lacked required attributes. Please contact technical support.",
   2366     .http_code = MHD_HTTP_BAD_GATEWAY
   2367   },
   2368 
   2369   {
   2370     /* 1948 */
   2371     .ec = TALER_EC_EXCHANGE_KYC_GENERIC_PROVIDER_INCOMPLETE_CONTEXT,
   2372     .hint =
   2373       "The context of the KYC check lacked required fields. This is a bug. Please contact technical support.",
   2374     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2375   },
   2376 
   2377   {
   2378     /* 1949 */
   2379     .ec = TALER_EC_EXCHANGE_KYC_GENERIC_AML_LOGIC_BUG,
   2380     .hint =
   2381       "The logic plugin had a bug in its AML processing. This is a bug. Please contact technical support.",
   2382     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2383   },
   2384 
   2385   {
   2386     /* 1950 */
   2387     .ec = TALER_EC_EXCHANGE_CONTRACTS_UNKNOWN,
   2388     .hint =
   2389       "The exchange does not know a contract under the given contract public key.",
   2390     .http_code = MHD_HTTP_NOT_FOUND
   2391   },
   2392 
   2393   {
   2394     /* 1951 */
   2395     .ec = TALER_EC_EXCHANGE_CONTRACTS_INVALID_CONTRACT_PUB,
   2396     .hint = "The URL does not encode a valid exchange public key in its path.",
   2397     .http_code = MHD_HTTP_BAD_REQUEST
   2398   },
   2399 
   2400   {
   2401     /* 1952 */
   2402     .ec = TALER_EC_EXCHANGE_CONTRACTS_DECRYPTION_FAILED,
   2403     .hint = "The returned encrypted contract did not decrypt.",
   2404     .http_code = MHD_HTTP_UNINITIALIZED
   2405   },
   2406 
   2407   {
   2408     /* 1953 */
   2409     .ec = TALER_EC_EXCHANGE_CONTRACTS_SIGNATURE_INVALID,
   2410     .hint = "The signature on the encrypted contract did not validate.",
   2411     .http_code = MHD_HTTP_UNINITIALIZED
   2412   },
   2413 
   2414   {
   2415     /* 1954 */
   2416     .ec = TALER_EC_EXCHANGE_CONTRACTS_DECODING_FAILED,
   2417     .hint = "The decrypted contract was malformed.",
   2418     .http_code = MHD_HTTP_UNINITIALIZED
   2419   },
   2420 
   2421   {
   2422     /* 1975 */
   2423     .ec = TALER_EC_EXCHANGE_PURSE_DEPOSIT_COIN_SIGNATURE_INVALID,
   2424     .hint = "A coin signature for a deposit into the purse is invalid.",
   2425     .http_code = MHD_HTTP_FORBIDDEN
   2426   },
   2427 
   2428   {
   2429     /* 1976 */
   2430     .ec = TALER_EC_EXCHANGE_PURSE_DEPOSIT_DECIDED_ALREADY,
   2431     .hint = "It is too late to deposit coins into the purse.",
   2432     .http_code = MHD_HTTP_GONE
   2433   },
   2434 
   2435   {
   2436     /* 1977 */
   2437     .ec = TALER_EC_EXCHANGE_KYC_INFO_BUSY,
   2438     .hint =
   2439       "The exchange is currently processing the KYC status and is not able to return a response yet.",
   2440     .http_code = MHD_HTTP_ACCEPTED
   2441   },
   2442 
   2443   {
   2444     /* 1980 */
   2445     .ec = TALER_EC_EXCHANGE_TOTP_KEY_INVALID,
   2446     .hint = "TOTP key is not valid.",
   2447     .http_code = MHD_HTTP_UNINITIALIZED
   2448   },
   2449 
   2450   {
   2451     /* 2000 */
   2452     .ec = TALER_EC_MERCHANT_GENERIC_INSTANCE_UNKNOWN,
   2453     .hint =
   2454       "The backend could not find the merchant instance specified in the request.",
   2455     .http_code = MHD_HTTP_NOT_FOUND
   2456   },
   2457 
   2458   {
   2459     /* 2001 */
   2460     .ec = TALER_EC_MERCHANT_GENERIC_HOLE_IN_WIRE_FEE_STRUCTURE,
   2461     .hint =
   2462       "The start and end-times in the wire fee structure leave a hole. This is not allowed.",
   2463     .http_code = MHD_HTTP_UNINITIALIZED
   2464   },
   2465 
   2466   {
   2467     /* 2002 */
   2468     .ec = TALER_EC_MERCHANT_GENERIC_EXCHANGE_MASTER_KEY_MISMATCH,
   2469     .hint =
   2470       "The master key of the exchange does not match the one configured for this merchant. As a result, the merchant refuses to do business with this exchange. The administrator should check whether the exchange is configured correctly in the merchant backend.",
   2471     .http_code = MHD_HTTP_BAD_GATEWAY
   2472   },
   2473 
   2474   {
   2475     /* 2003 */
   2476     .ec = TALER_EC_MERCHANT_GENERIC_CATEGORY_UNKNOWN,
   2477     .hint = "The product category is not known to the backend.",
   2478     .http_code = MHD_HTTP_NOT_FOUND
   2479   },
   2480 
   2481   {
   2482     /* 2004 */
   2483     .ec = TALER_EC_MERCHANT_GENERIC_UNIT_UNKNOWN,
   2484     .hint = "The unit referenced in the request is not known to the backend.",
   2485     .http_code = MHD_HTTP_NOT_FOUND
   2486   },
   2487 
   2488   {
   2489     /* 2005 */
   2490     .ec = TALER_EC_MERCHANT_GENERIC_ORDER_UNKNOWN,
   2491     .hint = "The proposal is not known to the backend.",
   2492     .http_code = MHD_HTTP_NOT_FOUND
   2493   },
   2494 
   2495   {
   2496     /* 2006 */
   2497     .ec = TALER_EC_MERCHANT_GENERIC_PRODUCT_UNKNOWN,
   2498     .hint =
   2499       "The order provided to the backend could not be completed because a product specified through inventory data is not in the inventory.",
   2500     .http_code = MHD_HTTP_NOT_FOUND
   2501   },
   2502 
   2503   {
   2504     /* 2007 */
   2505     .ec = TALER_EC_MERCHANT_GENERIC_REWARD_ID_UNKNOWN,
   2506     .hint =
   2507       "The reward ID is unknown.  This could happen if the reward has expired.",
   2508     .http_code = MHD_HTTP_NOT_FOUND
   2509   },
   2510 
   2511   {
   2512     /* 2008 */
   2513     .ec = TALER_EC_MERCHANT_GENERIC_DB_CONTRACT_CONTENT_INVALID,
   2514     .hint = "The contract obtained from the merchant backend was malformed.",
   2515     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2516   },
   2517 
   2518   {
   2519     /* 2009 */
   2520     .ec = TALER_EC_MERCHANT_GENERIC_CONTRACT_HASH_DOES_NOT_MATCH_ORDER,
   2521     .hint = "The order we found does not match the provided contract hash.",
   2522     .http_code = MHD_HTTP_FORBIDDEN
   2523   },
   2524 
   2525   {
   2526     /* 2010 */
   2527     .ec = TALER_EC_MERCHANT_GENERIC_EXCHANGE_KEYS_FAILURE,
   2528     .hint =
   2529       "The exchange failed to provide a valid response to the merchant's /keys request.",
   2530     .http_code = MHD_HTTP_BAD_GATEWAY
   2531   },
   2532 
   2533   {
   2534     /* 2011 */
   2535     .ec = TALER_EC_MERCHANT_GENERIC_EXCHANGE_TIMEOUT,
   2536     .hint = "The exchange failed to respond to the merchant on time.",
   2537     .http_code = MHD_HTTP_GATEWAY_TIMEOUT
   2538   },
   2539 
   2540   {
   2541     /* 2012 */
   2542     .ec = TALER_EC_MERCHANT_GENERIC_EXCHANGE_CONNECT_FAILURE,
   2543     .hint = "The merchant failed to talk to the exchange.",
   2544     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2545   },
   2546 
   2547   {
   2548     /* 2013 */
   2549     .ec = TALER_EC_MERCHANT_GENERIC_EXCHANGE_REPLY_MALFORMED,
   2550     .hint = "The exchange returned a malformed response.",
   2551     .http_code = MHD_HTTP_BAD_GATEWAY
   2552   },
   2553 
   2554   {
   2555     /* 2014 */
   2556     .ec = TALER_EC_MERCHANT_GENERIC_EXCHANGE_UNEXPECTED_STATUS,
   2557     .hint = "The exchange returned an unexpected response status.",
   2558     .http_code = MHD_HTTP_BAD_GATEWAY
   2559   },
   2560 
   2561   {
   2562     /* 2015 */
   2563     .ec = TALER_EC_MERCHANT_GENERIC_UNAUTHORIZED,
   2564     .hint = "The merchant refused the request due to lack of authorization.",
   2565     .http_code = MHD_HTTP_UNAUTHORIZED
   2566   },
   2567 
   2568   {
   2569     /* 2016 */
   2570     .ec = TALER_EC_MERCHANT_GENERIC_INSTANCE_DELETED,
   2571     .hint = "The merchant instance specified in the request was deleted.",
   2572     .http_code = MHD_HTTP_NOT_FOUND
   2573   },
   2574 
   2575   {
   2576     /* 2017 */
   2577     .ec = TALER_EC_MERCHANT_GENERIC_TRANSFER_UNKNOWN,
   2578     .hint =
   2579       "The backend could not find the inbound wire transfer specified in the request.",
   2580     .http_code = MHD_HTTP_NOT_FOUND
   2581   },
   2582 
   2583   {
   2584     /* 2018 */
   2585     .ec = TALER_EC_MERCHANT_GENERIC_TEMPLATE_UNKNOWN,
   2586     .hint =
   2587       "The backend could not find the template with the specified ID because it does not exist.",
   2588     .http_code = MHD_HTTP_NOT_FOUND
   2589   },
   2590 
   2591   {
   2592     /* 2019 */
   2593     .ec = TALER_EC_MERCHANT_GENERIC_WEBHOOK_UNKNOWN,
   2594     .hint =
   2595       "The backend could not find the webhook with the specified ID because it does not exist.",
   2596     .http_code = MHD_HTTP_NOT_FOUND
   2597   },
   2598 
   2599   {
   2600     /* 2020 */
   2601     .ec = TALER_EC_MERCHANT_GENERIC_PENDING_WEBHOOK_UNKNOWN,
   2602     .hint =
   2603       "The backend could not find the webhook with the specified serial because it does not exist.",
   2604     .http_code = MHD_HTTP_NOT_FOUND
   2605   },
   2606 
   2607   {
   2608     /* 2021 */
   2609     .ec = TALER_EC_MERCHANT_GENERIC_OTP_DEVICE_UNKNOWN,
   2610     .hint =
   2611       "The backend could not find the OTP device with the specified ID because it does not exist.",
   2612     .http_code = MHD_HTTP_NOT_FOUND
   2613   },
   2614 
   2615   {
   2616     /* 2022 */
   2617     .ec = TALER_EC_MERCHANT_GENERIC_ACCOUNT_UNKNOWN,
   2618     .hint = "The account is not known to the backend.",
   2619     .http_code = MHD_HTTP_NOT_FOUND
   2620   },
   2621 
   2622   {
   2623     /* 2023 */
   2624     .ec = TALER_EC_MERCHANT_GENERIC_H_WIRE_MALFORMED,
   2625     .hint = "The wire hash was malformed.",
   2626     .http_code = MHD_HTTP_BAD_REQUEST
   2627   },
   2628 
   2629   {
   2630     /* 2024 */
   2631     .ec = TALER_EC_MERCHANT_GENERIC_CURRENCY_MISMATCH,
   2632     .hint =
   2633       "The currency specified in the operation does not work with the current state of the given resource.",
   2634     .http_code = MHD_HTTP_CONFLICT
   2635   },
   2636 
   2637   {
   2638     /* 2025 */
   2639     .ec = TALER_EC_MERCHANT_GENERIC_EXCHANGE_UNTRUSTED,
   2640     .hint =
   2641       "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.",
   2642     .http_code = MHD_HTTP_BAD_REQUEST
   2643   },
   2644 
   2645   {
   2646     /* 2026 */
   2647     .ec = TALER_EC_MERCHANT_GENERIC_TOKEN_FAMILY_UNKNOWN,
   2648     .hint = "The token family is not known to the backend.",
   2649     .http_code = MHD_HTTP_NOT_FOUND
   2650   },
   2651 
   2652   {
   2653     /* 2027 */
   2654     .ec = TALER_EC_MERCHANT_GENERIC_TOKEN_KEY_UNKNOWN,
   2655     .hint =
   2656       "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.",
   2657     .http_code = MHD_HTTP_NOT_FOUND
   2658   },
   2659 
   2660   {
   2661     /* 2028 */
   2662     .ec = TALER_EC_MERCHANT_GENERIC_DONAU_NOT_CONFIGURED,
   2663     .hint =
   2664       "The merchant backend is not configured to support the DONAU protocol.",
   2665     .http_code = MHD_HTTP_NOT_IMPLEMENTED
   2666   },
   2667 
   2668   {
   2669     /* 2029 */
   2670     .ec = TALER_EC_MERCHANT_EXCHANGE_SIGN_PUB_UNKNOWN,
   2671     .hint =
   2672       "The public signing key given in the exchange response is not in the current keys response.  It is possible that the operation will succeed later after the merchant has downloaded an updated keys response.",
   2673     .http_code = MHD_HTTP_UNINITIALIZED
   2674   },
   2675 
   2676   {
   2677     /* 2030 */
   2678     .ec = TALER_EC_MERCHANT_GENERIC_FEATURE_NOT_AVAILABLE,
   2679     .hint = "The merchant backend does not support the requested feature.",
   2680     .http_code = MHD_HTTP_NOT_IMPLEMENTED
   2681   },
   2682 
   2683   {
   2684     /* 2031 */
   2685     .ec = TALER_EC_MERCHANT_GENERIC_MFA_MISSING,
   2686     .hint =
   2687       "This operation requires multi-factor authorization, but the instance does not have enough configured factors that can be validated. The system administrator must perform this operation.",
   2688     .http_code = MHD_HTTP_FORBIDDEN
   2689   },
   2690 
   2691   {
   2692     /* 2032 */
   2693     .ec = TALER_EC_MERCHANT_GENERIC_DONAU_INVALID_RESPONSE,
   2694     .hint =
   2695       "A donation authority (Donau) provided an invalid response. This should be analyzed by the administrator. Trying again later may help.",
   2696     .http_code = MHD_HTTP_BAD_GATEWAY
   2697   },
   2698 
   2699   {
   2700     /* 2033 */
   2701     .ec = TALER_EC_MERCHANT_GENERIC_UNIT_BUILTIN,
   2702     .hint =
   2703       "The unit referenced in the request is built-in and cannot be modified or deleted.",
   2704     .http_code = MHD_HTTP_CONFLICT
   2705   },
   2706 
   2707   {
   2708     /* 2034 */
   2709     .ec = TALER_EC_MERCHANT_GENERIC_REPORT_UNKNOWN,
   2710     .hint =
   2711       "The report ID provided to the backend is not known to the backend.",
   2712     .http_code = MHD_HTTP_NOT_FOUND
   2713   },
   2714 
   2715   {
   2716     /* 2035 */
   2717     .ec = TALER_EC_MERCHANT_GENERIC_REPORT_GENERATOR_UNCONFIGURED,
   2718     .hint =
   2719       "The report ID provided to the backend is not known to the backend.",
   2720     .http_code = MHD_HTTP_NOT_IMPLEMENTED
   2721   },
   2722 
   2723   {
   2724     /* 2036 */
   2725     .ec = TALER_EC_MERCHANT_GENERIC_PRODUCT_GROUP_UNKNOWN,
   2726     .hint =
   2727       "The product group ID provided to the backend is not known to the backend.",
   2728     .http_code = MHD_HTTP_NOT_FOUND
   2729   },
   2730 
   2731   {
   2732     /* 2037 */
   2733     .ec = TALER_EC_MERCHANT_GENERIC_MONEY_POT_UNKNOWN,
   2734     .hint =
   2735       "The money pod ID provided to the backend is not known to the backend.",
   2736     .http_code = MHD_HTTP_NOT_FOUND
   2737   },
   2738 
   2739   {
   2740     /* 2038 */
   2741     .ec = TALER_EC_MERCHANT_GENERIC_SESSION_UNKNOWN,
   2742     .hint =
   2743       "The session ID provided to the backend is not known to the backend.",
   2744     .http_code = MHD_HTTP_NOT_FOUND
   2745   },
   2746 
   2747   {
   2748     /* 2039 */
   2749     .ec = TALER_EC_MERCHANT_GENERIC_DONAU_CHARITY_UNKNOWN,
   2750     .hint =
   2751       "The merchant does not have a charity associated with the selected Donau. As a result, it cannot generate the requested donation receipt. This could happen if the charity was removed from the backend between order creation and payment.",
   2752     .http_code = MHD_HTTP_NOT_FOUND
   2753   },
   2754 
   2755   {
   2756     /* 2040 */
   2757     .ec = TALER_EC_MERCHANT_GENERIC_EXPECTED_TRANSFER_UNKNOWN,
   2758     .hint =
   2759       "The merchant does not expect a transfer with the given ID and therefore cannot return any details about it.",
   2760     .http_code = MHD_HTTP_NOT_FOUND
   2761   },
   2762 
   2763   {
   2764     /* 2041 */
   2765     .ec = TALER_EC_MERCHANT_GENERIC_DONAU_UNKNOWN,
   2766     .hint = "The Donau is not known to the backend.",
   2767     .http_code = MHD_HTTP_NOT_FOUND
   2768   },
   2769 
   2770   {
   2771     /* 2042 */
   2772     .ec = TALER_EC_MERCHANT_GENERIC_ACCESS_TOKEN_UNKNOWN,
   2773     .hint = "The access token is not known to the backend.",
   2774     .http_code = MHD_HTTP_NOT_FOUND
   2775   },
   2776 
   2777   {
   2778     /* 2043 */
   2779     .ec = TALER_EC_MERCHANT_GENERIC_FOUNTAIN_UNKNOWN,
   2780     .hint = "The fountain is not known to the backend.",
   2781     .http_code = MHD_HTTP_NOT_FOUND
   2782   },
   2783 
   2784   {
   2785     /* 2048 */
   2786     .ec = TALER_EC_MERCHANT_GENERIC_NO_TYPST_OR_PDFTK,
   2787     .hint =
   2788       "One of the binaries needed to generate the PDF is not installed. If this feature is required, the system administrator should make sure Typst and pdftk are both installed.",
   2789     .http_code = MHD_HTTP_NOT_IMPLEMENTED
   2790   },
   2791 
   2792   {
   2793     /* 2100 */
   2794     .ec = TALER_EC_MERCHANT_GET_ORDERS_EXCHANGE_TRACKING_FAILURE,
   2795     .hint =
   2796       "The exchange failed to provide a valid answer to the tracking request, thus those details are not in the response.",
   2797     .http_code = MHD_HTTP_OK
   2798   },
   2799 
   2800   {
   2801     /* 2103 */
   2802     .ec = TALER_EC_MERCHANT_GET_ORDERS_ID_EXCHANGE_REQUEST_FAILURE,
   2803     .hint =
   2804       "The merchant backend failed to construct the request for tracking to the exchange, thus tracking details are not in the response.",
   2805     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2806   },
   2807 
   2808   {
   2809     /* 2104 */
   2810     .ec = TALER_EC_MERCHANT_GET_ORDERS_ID_EXCHANGE_LOOKUP_START_FAILURE,
   2811     .hint =
   2812       "The merchant backend failed trying to contact the exchange for tracking details, thus those details are not in the response.",
   2813     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2814   },
   2815 
   2816   {
   2817     /* 2105 */
   2818     .ec = TALER_EC_MERCHANT_GET_ORDERS_ID_INVALID_TOKEN,
   2819     .hint =
   2820       "The claim token used to authenticate the client is invalid for this order.",
   2821     .http_code = MHD_HTTP_FORBIDDEN
   2822   },
   2823 
   2824   {
   2825     /* 2106 */
   2826     .ec = TALER_EC_MERCHANT_GET_ORDERS_ID_INVALID_CONTRACT_HASH,
   2827     .hint =
   2828       "The contract terms hash used to authenticate the client is invalid for this order.",
   2829     .http_code = MHD_HTTP_FORBIDDEN
   2830   },
   2831 
   2832   {
   2833     /* 2107 */
   2834     .ec = TALER_EC_MERCHANT_GET_ORDERS_ID_INVALID_CONTRACT_VERSION,
   2835     .hint =
   2836       "The contract terms version is not understood by the merchant backend. Most likely the merchant backend was downgraded to a version incompatible with the content of the database.",
   2837     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2838   },
   2839 
   2840   {
   2841     /* 2125 */
   2842     .ec = TALER_EC_MERCHANT_TAN_CHALLENGE_FAILED,
   2843     .hint = "The provided TAN code is invalid for this challenge.",
   2844     .http_code = MHD_HTTP_CONFLICT
   2845   },
   2846 
   2847   {
   2848     /* 2126 */
   2849     .ec = TALER_EC_MERCHANT_TAN_CHALLENGE_UNKNOWN,
   2850     .hint = "The backend is not aware of the specified MFA challenge.",
   2851     .http_code = MHD_HTTP_NOT_FOUND
   2852   },
   2853 
   2854   {
   2855     /* 2127 */
   2856     .ec = TALER_EC_MERCHANT_TAN_TOO_MANY_ATTEMPTS,
   2857     .hint =
   2858       "There have been too many attempts to solve the challenge. A new TAN must be requested.",
   2859     .http_code = MHD_HTTP_TOO_MANY_REQUESTS
   2860   },
   2861 
   2862   {
   2863     /* 2128 */
   2864     .ec = TALER_EC_MERCHANT_TAN_MFA_HELPER_EXEC_FAILED,
   2865     .hint =
   2866       "The backend failed to launch a helper process required for the multi-factor authentication step. The backend operator should check the logs and fix the Taler merchant backend configuration.",
   2867     .http_code = MHD_HTTP_BAD_GATEWAY
   2868   },
   2869 
   2870   {
   2871     /* 2129 */
   2872     .ec = TALER_EC_MERCHANT_TAN_CHALLENGE_SOLVED,
   2873     .hint =
   2874       "The challenge was already solved. Therefore, the service refuses to send it again.",
   2875     .http_code = MHD_HTTP_GONE
   2876   },
   2877 
   2878   {
   2879     /* 2130 */
   2880     .ec = TALER_EC_MERCHANT_TAN_TOO_EARLY,
   2881     .hint =
   2882       "It is too early to request another transmission of the challenge. The client should wait and see if they received the previous challenge.",
   2883     .http_code = MHD_HTTP_TOO_MANY_REQUESTS
   2884   },
   2885 
   2886   {
   2887     /* 2131 */
   2888     .ec = TALER_EC_MERCHANT_MFA_FORBIDDEN,
   2889     .hint =
   2890       "There have been too many attempts to solve MFA. The client may attempt again in the future.",
   2891     .http_code = MHD_HTTP_FORBIDDEN
   2892   },
   2893 
   2894   {
   2895     /* 2132 */
   2896     .ec = TALER_EC_MERCHANT_TAN_ADDRESS_UNUSABLE,
   2897     .hint =
   2898       "The transmission helper rejected the address configured for this multi-factor authentication step: it is malformed, of the wrong length, not a mobile subscription, unallocated, or blocked. The address should be corrected.",
   2899     .http_code = MHD_HTTP_BAD_REQUEST
   2900   },
   2901 
   2902   {
   2903     /* 2133 */
   2904     .ec = TALER_EC_MERCHANT_TAN_ADDRESS_UNREACHABLE,
   2905     .hint =
   2906       "The address is valid but the recipient could not be reached: the handset is switched off or out of coverage, or the message expired before delivery. Retrying later may succeed.",
   2907     .http_code = MHD_HTTP_SERVICE_UNAVAILABLE
   2908   },
   2909 
   2910   {
   2911     /* 2134 */
   2912     .ec = TALER_EC_MERCHANT_TAN_HELPER_MISCONFIGURED,
   2913     .hint =
   2914       "The transmission helper is misconfigured: a required credential is absent, the configured credentials were refused by the provider, or the provider account has insufficient balance. The backend operator should check the logs and fix the Taler merchant backend configuration.",
   2915     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2916   },
   2917 
   2918   {
   2919     /* 2150 */
   2920     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_INSUFFICIENT_FUNDS,
   2921     .hint =
   2922       "The exchange responded saying that funds were insufficient (for example, due to double-spending).",
   2923     .http_code = MHD_HTTP_CONFLICT
   2924   },
   2925 
   2926   {
   2927     /* 2151 */
   2928     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_KEY_NOT_FOUND,
   2929     .hint =
   2930       "The denomination key used for payment is not listed among the denomination keys of the exchange.",
   2931     .http_code = MHD_HTTP_BAD_REQUEST
   2932   },
   2933 
   2934   {
   2935     /* 2152 */
   2936     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_KEY_AUDITOR_FAILURE,
   2937     .hint =
   2938       "The denomination key used for payment is not audited by an auditor approved by the merchant.",
   2939     .http_code = MHD_HTTP_BAD_REQUEST
   2940   },
   2941 
   2942   {
   2943     /* 2153 */
   2944     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_AMOUNT_OVERFLOW,
   2945     .hint =
   2946       "There was an integer overflow totaling up the amounts or deposit fees in the payment.",
   2947     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2948   },
   2949 
   2950   {
   2951     /* 2154 */
   2952     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_FEES_EXCEED_PAYMENT,
   2953     .hint = "The deposit fees exceed the total value of the payment.",
   2954     .http_code = MHD_HTTP_BAD_REQUEST
   2955   },
   2956 
   2957   {
   2958     /* 2155 */
   2959     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_INSUFFICIENT_DUE_TO_FEES,
   2960     .hint =
   2961       "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.",
   2962     .http_code = MHD_HTTP_BAD_REQUEST
   2963   },
   2964 
   2965   {
   2966     /* 2156 */
   2967     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_PAYMENT_INSUFFICIENT,
   2968     .hint =
   2969       "Even without considering deposit and wire fees, the payment is insufficient to satisfy the required amount for the contract.",
   2970     .http_code = MHD_HTTP_BAD_REQUEST
   2971   },
   2972 
   2973   {
   2974     /* 2157 */
   2975     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_COIN_SIGNATURE_INVALID,
   2976     .hint = "The signature over the contract of one of the coins was invalid.",
   2977     .http_code = MHD_HTTP_FORBIDDEN
   2978   },
   2979 
   2980   {
   2981     /* 2158 */
   2982     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_LOOKUP_FAILED,
   2983     .hint =
   2984       "The merchant backend failed to find information about the exchange to issue the deposit. This usually happens when the merchant backend's HTTP client logic is not working.",
   2985     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2986   },
   2987 
   2988   {
   2989     /* 2159 */
   2990     .ec =
   2991       TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_REFUND_DEADLINE_PAST_WIRE_TRANSFER_DEADLINE,
   2992     .hint =
   2993       "The refund deadline in the contract is after the transfer deadline.",
   2994     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   2995   },
   2996 
   2997   {
   2998     /* 2160 */
   2999     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_ALREADY_PAID,
   3000     .hint = "The order was already paid (maybe by another wallet).",
   3001     .http_code = MHD_HTTP_CONFLICT
   3002   },
   3003 
   3004   {
   3005     /* 2161 */
   3006     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_OFFER_EXPIRED,
   3007     .hint = "The payment is too late, the offer has expired.",
   3008     .http_code = MHD_HTTP_GONE
   3009   },
   3010 
   3011   {
   3012     /* 2162 */
   3013     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_MERCHANT_FIELD_MISSING,
   3014     .hint =
   3015       "The `merchant` field is missing from the proposal data. This is an internal error because the proposal comes from the merchant's own database at this point.",
   3016     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   3017   },
   3018 
   3019   {
   3020     /* 2163 */
   3021     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_WIRE_HASH_UNKNOWN,
   3022     .hint =
   3023       "Failed to locate merchant's account information matching the wire hash given in the proposal.",
   3024     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   3025   },
   3026 
   3027   {
   3028     /* 2165 */
   3029     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_DEPOSIT_EXPIRED,
   3030     .hint = "The deposit time for the denomination has expired.",
   3031     .http_code = MHD_HTTP_GONE
   3032   },
   3033 
   3034   {
   3035     /* 2166 */
   3036     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_WIRE_FEE_ADDITION_FAILED
   3037     ,
   3038     .hint =
   3039       "The exchange of the deposited coin charges a wire fee that could not be added to the total (total amount too high).",
   3040     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   3041   },
   3042 
   3043   {
   3044     /* 2167 */
   3045     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_REFUNDED,
   3046     .hint =
   3047       "The contract was not fully paid because of refunds. Clients may treat it as paid if, for example, the contract must be executed despite refunds.",
   3048     .http_code = MHD_HTTP_PAYMENT_REQUIRED
   3049   },
   3050 
   3051   {
   3052     /* 2168 */
   3053     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_REFUNDS_EXCEED_PAYMENTS,
   3054     .hint =
   3055       "The database indicates that more was refunded than was paid, which should not be possible.",
   3056     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   3057   },
   3058 
   3059   {
   3060     /* 2169 */
   3061     .ec = TALER_EC_MERCHANT_PRIVATE_POST_REFUND_AFTER_WIRE_DEADLINE,
   3062     .hint =
   3063       "The refund request is too late because it is past the wire transfer deadline of the order. The merchant must find a different way to pay back the money to the customer.",
   3064     .http_code = MHD_HTTP_GONE
   3065   },
   3066 
   3067   {
   3068     /* 2170 */
   3069     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_FAILED,
   3070     .hint = "The payment failed at the exchange.",
   3071     .http_code = MHD_HTTP_BAD_GATEWAY
   3072   },
   3073 
   3074   {
   3075     /* 2171 */
   3076     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_AGE_COMMITMENT_MISSING,
   3077     .hint =
   3078       "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.",
   3079     .http_code = MHD_HTTP_BAD_REQUEST
   3080   },
   3081 
   3082   {
   3083     /* 2172 */
   3084     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_AGE_COMMITMENT_SIZE_MISMATCH,
   3085     .hint =
   3086       "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.",
   3087     .http_code = MHD_HTTP_BAD_REQUEST
   3088   },
   3089 
   3090   {
   3091     /* 2173 */
   3092     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_AGE_VERIFICATION_FAILED,
   3093     .hint =
   3094       "The payment required a minimum age, but one of the coins provided a `minimum_age_sig` that could not be verified with the given `age_commitment` for that minimum age.",
   3095     .http_code = MHD_HTTP_BAD_REQUEST
   3096   },
   3097 
   3098   {
   3099     /* 2174 */
   3100     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_AGE_COMMITMENT_HASH_MISSING,
   3101     .hint =
   3102       "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.",
   3103     .http_code = MHD_HTTP_BAD_REQUEST
   3104   },
   3105 
   3106   {
   3107     /* 2175 */
   3108     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_WIRE_METHOD_UNSUPPORTED,
   3109     .hint =
   3110       "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.",
   3111     .http_code = MHD_HTTP_CONFLICT
   3112   },
   3113 
   3114   {
   3115     /* 2176 */
   3116     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_CHOICE_INDEX_MISSING,
   3117     .hint =
   3118       "The payment requires the wallet to select a choice from the choices array and pass it in the 'choice_index' field of the request.",
   3119     .http_code = MHD_HTTP_BAD_REQUEST
   3120   },
   3121 
   3122   {
   3123     /* 2177 */
   3124     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_CHOICE_INDEX_OUT_OF_BOUNDS,
   3125     .hint = "The 'choice_index' field is invalid.",
   3126     .http_code = MHD_HTTP_BAD_REQUEST
   3127   },
   3128 
   3129   {
   3130     /* 2178 */
   3131     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_INPUT_TOKENS_MISMATCH,
   3132     .hint =
   3133       "The provided 'tokens' array does not match with the required input tokens of the order.",
   3134     .http_code = MHD_HTTP_BAD_REQUEST
   3135   },
   3136 
   3137   {
   3138     /* 2179 */
   3139     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_TOKEN_ISSUE_SIG_INVALID,
   3140     .hint =
   3141       "Invalid token issue signature (blindly signed by merchant) for provided token.",
   3142     .http_code = MHD_HTTP_BAD_REQUEST
   3143   },
   3144 
   3145   {
   3146     /* 2180 */
   3147     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_TOKEN_USE_SIG_INVALID,
   3148     .hint =
   3149       "Invalid token use signature (EdDSA, signed by wallet) for provided token.",
   3150     .http_code = MHD_HTTP_BAD_REQUEST
   3151   },
   3152 
   3153   {
   3154     /* 2181 */
   3155     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_TOKEN_COUNT_MISMATCH,
   3156     .hint = "The provided number of tokens does not match the required number.",
   3157     .http_code = MHD_HTTP_BAD_REQUEST
   3158   },
   3159 
   3160   {
   3161     /* 2182 */
   3162     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_TOKEN_ENVELOPE_COUNT_MISMATCH,
   3163     .hint =
   3164       "The provided number of token envelopes does not match the specified number.",
   3165     .http_code = MHD_HTTP_BAD_REQUEST
   3166   },
   3167 
   3168   {
   3169     /* 2183 */
   3170     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_TOKEN_INVALID,
   3171     .hint =
   3172       "Invalid token because it was already used, is expired or not yet valid.",
   3173     .http_code = MHD_HTTP_CONFLICT
   3174   },
   3175 
   3176   {
   3177     /* 2184 */
   3178     .ec =
   3179       TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_TRANSACTION_LIMIT_VIOLATION,
   3180     .hint =
   3181       "The payment violates a transaction limit configured at the given exchange. The wallet failed to check exchange limits during coin selection. The wallet developer should investigate.",
   3182     .http_code = MHD_HTTP_BAD_REQUEST
   3183   },
   3184 
   3185   {
   3186     /* 2185 */
   3187     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_DONATION_AMOUNT_MISMATCH,
   3188     .hint =
   3189       "The donation amount provided in the BKPS does not match the amount of the order choice.",
   3190     .http_code = MHD_HTTP_CONFLICT
   3191   },
   3192 
   3193   {
   3194     /* 2186 */
   3195     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_LEGALLY_REFUSED,
   3196     .hint =
   3197       "Some of the exchanges involved refused the request for reasons related to legitimization. The wallet should try with coins of different exchanges. The merchant should check if they have some legitimization process pending at the exchange.",
   3198     .http_code = MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS
   3199   },
   3200 
   3201   {
   3202     /* 2187 */
   3203     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_CHOICE_INDEX_MISMATCH,
   3204     .hint =
   3205       "The order was already paid, but the request specified a different choice. The client should use the choice with which the order was actually paid.",
   3206     .http_code = MHD_HTTP_CONFLICT
   3207   },
   3208 
   3209   {
   3210     /* 2188 */
   3211     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_DONAU_RECEIPTS_DELAYED,
   3212     .hint =
   3213       "The payment succeeded, but the donation authority (Donau) could not issue the donation receipts at this time. The response contains the payment confirmation. The wallet should replay the payment request later to obtain the receipts.",
   3214     .http_code = MHD_HTTP_BAD_GATEWAY
   3215   },
   3216 
   3217   {
   3218     /* 2189 */
   3219     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_DONAU_RECEIPTS_REFUSED,
   3220     .hint =
   3221       "The payment succeeded, but the donation authority (Donau) refused to issue the donation receipts. The response contains the payment confirmation. Replaying the payment request will not produce the receipts.",
   3222     .http_code = MHD_HTTP_BAD_GATEWAY
   3223   },
   3224 
   3225   {
   3226     /* 2190 */
   3227     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_REPLAY_AFTER_REFUND,
   3228     .hint =
   3229       "The order was already paid and has since been refunded, possibly only in part. The payment request can no longer be replayed. The wallet should query the refunds instead.",
   3230     .http_code = MHD_HTTP_CONFLICT
   3231   },
   3232 
   3233   {
   3234     /* 2191 */
   3235     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_DONATION_YEAR_INVALID,
   3236     .hint =
   3237       "The donation year in the request is not the current year. Nothing was paid. The wallet should create the donation receipt requests for the current year and try again.",
   3238     .http_code = MHD_HTTP_CONFLICT
   3239   },
   3240 
   3241   {
   3242     /* 2200 */
   3243     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAID_CONTRACT_HASH_MISMATCH,
   3244     .hint = "The contract hash does not match the given order ID.",
   3245     .http_code = MHD_HTTP_BAD_REQUEST
   3246   },
   3247 
   3248   {
   3249     /* 2201 */
   3250     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAID_COIN_SIGNATURE_INVALID,
   3251     .hint =
   3252       "The signature of the merchant is not valid for the given contract hash.",
   3253     .http_code = MHD_HTTP_FORBIDDEN
   3254   },
   3255 
   3256   {
   3257     /* 2225 */
   3258     .ec = TALER_EC_MERCHANT_POST_TOKEN_FAMILY_CONFLICT,
   3259     .hint = "A token family with this ID but conflicting data exists.",
   3260     .http_code = MHD_HTTP_CONFLICT
   3261   },
   3262 
   3263   {
   3264     /* 2226 */
   3265     .ec = TALER_EC_MERCHANT_PATCH_TOKEN_FAMILY_NOT_FOUND,
   3266     .hint = "The backend is unaware of a token family with the given ID.",
   3267     .http_code = MHD_HTTP_NOT_FOUND
   3268   },
   3269 
   3270   {
   3271     /* 2251 */
   3272     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_EXCHANGE_REFUND_FAILED,
   3273     .hint = "The merchant failed to send the exchange the refund request.",
   3274     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   3275   },
   3276 
   3277   {
   3278     /* 2252 */
   3279     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_EXCHANGE_LOOKUP_FAILED,
   3280     .hint = "The merchant failed to find the exchange to process the lookup.",
   3281     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   3282   },
   3283 
   3284   {
   3285     /* 2253 */
   3286     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_CONTRACT_NOT_FOUND,
   3287     .hint = "The merchant could not find the contract.",
   3288     .http_code = MHD_HTTP_NOT_FOUND
   3289   },
   3290 
   3291   {
   3292     /* 2254 */
   3293     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_REFUND_REFUSED_PAYMENT_COMPLETE
   3294     ,
   3295     .hint =
   3296       "The payment was already completed and thus cannot be aborted anymore.",
   3297     .http_code = MHD_HTTP_PRECONDITION_FAILED
   3298   },
   3299 
   3300   {
   3301     /* 2255 */
   3302     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_CONTRACT_HASH_MISSMATCH,
   3303     .hint = "The hash provided by the wallet does not match the order.",
   3304     .http_code = MHD_HTTP_FORBIDDEN
   3305   },
   3306 
   3307   {
   3308     /* 2256 */
   3309     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_COINS_ARRAY_EMPTY,
   3310     .hint = "The array of coins cannot be empty.",
   3311     .http_code = MHD_HTTP_BAD_REQUEST
   3312   },
   3313 
   3314   {
   3315     /* 2258 */
   3316     .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_AWAITING_KEYS,
   3317     .hint =
   3318       "The merchant is waiting for the exchange to provide key material before checking the wire transfer.",
   3319     .http_code = MHD_HTTP_ACCEPTED
   3320   },
   3321 
   3322   {
   3323     /* 2259 */
   3324     .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_AWAITING_LIST,
   3325     .hint =
   3326       "The merchant is waiting for the exchange to provide the list of aggregated transactions.",
   3327     .http_code = MHD_HTTP_ACCEPTED
   3328   },
   3329 
   3330   {
   3331     /* 2260 */
   3332     .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_FATAL_NO_EXCHANGE,
   3333     .hint =
   3334       "The endpoint indicated in the wire transfer does not belong to a GNU Taler exchange.",
   3335     .http_code = MHD_HTTP_OK
   3336   },
   3337 
   3338   {
   3339     /* 2261 */
   3340     .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_FATAL_NOT_FOUND,
   3341     .hint =
   3342       "The exchange indicated in the wire transfer claims to know nothing about the wire transfer.",
   3343     .http_code = MHD_HTTP_UNINITIALIZED
   3344   },
   3345 
   3346   {
   3347     /* 2262 */
   3348     .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_RATE_LIMITED,
   3349     .hint =
   3350       "The interaction with the exchange is delayed due to rate limiting.",
   3351     .http_code = MHD_HTTP_ACCEPTED
   3352   },
   3353 
   3354   {
   3355     /* 2263 */
   3356     .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_TRANSIENT_FAILURE,
   3357     .hint =
   3358       "The merchant experienced a transient failure while interacting with the exchange.",
   3359     .http_code = MHD_HTTP_ACCEPTED
   3360   },
   3361 
   3362   {
   3363     /* 2264 */
   3364     .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_HARD_FAILURE,
   3365     .hint =
   3366       "The response from the exchange was unacceptable and should be reviewed with an auditor.",
   3367     .http_code = MHD_HTTP_OK
   3368   },
   3369 
   3370   {
   3371     /* 2275 */
   3372     .ec = TALER_EC_MERCHANT_POST_ACCOUNTS_KYCAUTH_BANK_GATEWAY_UNREACHABLE,
   3373     .hint =
   3374       "The merchant backend failed to reach the banking gateway to shorten the wire transfer subject. This probably means that the banking gateway of the exchange is currently down. Contact the exchange operator or simply retry again later.",
   3375     .http_code = MHD_HTTP_BAD_GATEWAY
   3376   },
   3377 
   3378   {
   3379     /* 2276 */
   3380     .ec = TALER_EC_MERCHANT_POST_ACCOUNTS_EXCHANGE_TOO_OLD,
   3381     .hint =
   3382       "The merchant backend failed to reach the banking gateway to shorten the wire transfer subject. This probably means that the banking gateway of the exchange is currently down. Contact the exchange operator or simply retry again later.",
   3383     .http_code = MHD_HTTP_BAD_GATEWAY
   3384   },
   3385 
   3386   {
   3387     /* 2277 */
   3388     .ec = TALER_EC_MERCHANT_POST_ACCOUNTS_KYCAUTH_EXCHANGE_UNREACHABLE,
   3389     .hint =
   3390       "The merchant backend failed to reach the specified exchange. This probably means that the exchange is currently down. Contact the exchange operator or simply retry again later.",
   3391     .http_code = MHD_HTTP_BAD_GATEWAY
   3392   },
   3393 
   3394   {
   3395     /* 2300 */
   3396     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_CLAIM_NOT_FOUND,
   3397     .hint =
   3398       "The order could not be claimed because the backend is unaware of it.",
   3399     .http_code = MHD_HTTP_NOT_FOUND
   3400   },
   3401 
   3402   {
   3403     /* 2301 */
   3404     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_CLAIM_ALREADY_CLAIMED,
   3405     .hint =
   3406       "The order could not be claimed because another client claimed it first.",
   3407     .http_code = MHD_HTTP_CONFLICT
   3408   },
   3409 
   3410   {
   3411     /* 2302 */
   3412     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_CLAIM_CLIENT_INTERNAL_FAILURE,
   3413     .hint = "The client experienced an internal failure.",
   3414     .http_code = MHD_HTTP_UNINITIALIZED
   3415   },
   3416 
   3417   {
   3418     /* 2303 */
   3419     .ec = TALER_EC_MERCHANT_POST_ORDERS_UNCLAIM_SIGNATURE_INVALID,
   3420     .hint =
   3421       "The unclaim signature of the wallet is not valid for the given contract hash.",
   3422     .http_code = MHD_HTTP_FORBIDDEN
   3423   },
   3424 
   3425   {
   3426     /* 2350 */
   3427     .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_REFUND_SIGNATURE_FAILED,
   3428     .hint = "The backend failed to sign the refund request.",
   3429     .http_code = MHD_HTTP_UNINITIALIZED
   3430   },
   3431 
   3432   {
   3433     /* 2400 */
   3434     .ec = TALER_EC_MERCHANT_REWARD_PICKUP_UNBLIND_FAILURE,
   3435     .hint =
   3436       "The client failed to unblind the signature returned by the merchant.",
   3437     .http_code = MHD_HTTP_UNINITIALIZED
   3438   },
   3439 
   3440   {
   3441     /* 2403 */
   3442     .ec = TALER_EC_MERCHANT_REWARD_PICKUP_EXCHANGE_ERROR,
   3443     .hint = "The exchange returned a failure code for the withdraw operation.",
   3444     .http_code = MHD_HTTP_BAD_GATEWAY
   3445   },
   3446 
   3447   {
   3448     /* 2404 */
   3449     .ec = TALER_EC_MERCHANT_REWARD_PICKUP_SUMMATION_FAILED,
   3450     .hint =
   3451       "The merchant failed to add up the amounts to compute the pick up value.",
   3452     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   3453   },
   3454 
   3455   {
   3456     /* 2405 */
   3457     .ec = TALER_EC_MERCHANT_REWARD_PICKUP_HAS_EXPIRED,
   3458     .hint = "The reward expired.",
   3459     .http_code = MHD_HTTP_GONE
   3460   },
   3461 
   3462   {
   3463     /* 2406 */
   3464     .ec = TALER_EC_MERCHANT_REWARD_PICKUP_AMOUNT_EXCEEDS_REWARD_REMAINING,
   3465     .hint =
   3466       "The requested withdraw amount exceeds the amount remaining to be picked up.",
   3467     .http_code = MHD_HTTP_BAD_REQUEST
   3468   },
   3469 
   3470   {
   3471     /* 2407 */
   3472     .ec = TALER_EC_MERCHANT_REWARD_PICKUP_DENOMINATION_UNKNOWN,
   3473     .hint =
   3474       "The merchant did not find the specified denomination key in the exchange's key set.",
   3475     .http_code = MHD_HTTP_CONFLICT
   3476   },
   3477 
   3478   {
   3479     /* 2500 */
   3480     .ec =
   3481       TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_INSTANCE_CONFIGURATION_LACKS_WIRE,
   3482     .hint =
   3483       "The merchant instance has no active bank accounts configured. However, at least one bank account must be available to create new orders.",
   3484     .http_code = MHD_HTTP_NOT_FOUND
   3485   },
   3486 
   3487   {
   3488     /* 2501 */
   3489     .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_NO_LOCALTIME,
   3490     .hint =
   3491       "The proposal had no timestamp and the merchant backend failed to obtain the current local time.",
   3492     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   3493   },
   3494 
   3495   {
   3496     /* 2502 */
   3497     .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_PROPOSAL_PARSE_ERROR,
   3498     .hint =
   3499       "The order provided to the backend could not be parsed; likely some required fields were missing or ill-formed.",
   3500     .http_code = MHD_HTTP_BAD_REQUEST
   3501   },
   3502 
   3503   {
   3504     /* 2503 */
   3505     .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ALREADY_EXISTS,
   3506     .hint =
   3507       "A conflicting order (sharing the same order identifier) already exists at this merchant backend instance.",
   3508     .http_code = MHD_HTTP_CONFLICT
   3509   },
   3510 
   3511   {
   3512     /* 2504 */
   3513     .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_REFUND_AFTER_WIRE_DEADLINE,
   3514     .hint =
   3515       "The order creation request is invalid because the given wire deadline is before the refund deadline.",
   3516     .http_code = MHD_HTTP_BAD_REQUEST
   3517   },
   3518 
   3519   {
   3520     /* 2505 */
   3521     .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_DELIVERY_DATE_IN_PAST,
   3522     .hint =
   3523       "The order creation request is invalid because the delivery date given is in the past.",
   3524     .http_code = MHD_HTTP_BAD_REQUEST
   3525   },
   3526 
   3527   {
   3528     /* 2506 */
   3529     .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_WIRE_DEADLINE_IS_NEVER,
   3530     .hint =
   3531       "The order creation request is invalid because a wire deadline of `never` is not allowed.",
   3532     .http_code = MHD_HTTP_BAD_REQUEST
   3533   },
   3534 
   3535   {
   3536     /* 2507 */
   3537     .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_PAY_DEADLINE_IN_PAST,
   3538     .hint =
   3539       "The order creation request is invalid because the given payment deadline is in the past.",
   3540     .http_code = MHD_HTTP_BAD_REQUEST
   3541   },
   3542 
   3543   {
   3544     /* 2508 */
   3545     .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_REFUND_DEADLINE_IN_PAST,
   3546     .hint =
   3547       "The order creation request is invalid because the given refund deadline is in the past.",
   3548     .http_code = MHD_HTTP_BAD_REQUEST
   3549   },
   3550 
   3551   {
   3552     /* 2509 */
   3553     .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_NO_EXCHANGES_FOR_WIRE_METHOD,
   3554     .hint =
   3555       "The backend does not trust any exchange that would allow funds to be wired to a bank account of this instance using the wire method specified with the order. Exchange bank accounts with mandatory currency conversion are not currently supported. A likely cause is that the `taler-merchant-exchangekeyupdate` process is not running.",
   3556     .http_code = MHD_HTTP_CONFLICT
   3557   },
   3558 
   3559   {
   3560     /* 2510 */
   3561     .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_ORDERS_ID_FORGET_PATH_SYNTAX_INCORRECT
   3562     ,
   3563     .hint = "One of the paths to forget is malformed.",
   3564     .http_code = MHD_HTTP_BAD_REQUEST
   3565   },
   3566 
   3567   {
   3568     /* 2511 */
   3569     .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_ORDERS_ID_FORGET_PATH_NOT_FORGETTABLE,
   3570     .hint = "One of the paths to forget was not marked as forgettable.",
   3571     .http_code = MHD_HTTP_CONFLICT
   3572   },
   3573 
   3574   {
   3575     /* 2512 */
   3576     .ec =
   3577       TALER_EC_MERCHANT_POST_ORDERS_ID_REFUND_EXCHANGE_TRANSACTION_LIMIT_VIOLATION,
   3578     .hint =
   3579       "The refund amount would violate a refund transaction limit configured at the given exchange. The merchant should use another way to refund the customer and consult the exchange operator about the applicable regulations.",
   3580     .http_code = MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS
   3581   },
   3582 
   3583   {
   3584     /* 2513 */
   3585     .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_AMOUNT_EXCEEDS_LEGAL_LIMITS,
   3586     .hint =
   3587       "The total order amount exceeds the legal transaction limits of the available exchanges, so a customer could not legally make this payment. The merchant may increase its limits by completing legitimization checks with exchange operators.",
   3588     .http_code = MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS
   3589   },
   3590 
   3591   {
   3592     /* 2514 */
   3593     .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_NO_EXCHANGE_FOR_CURRENCY,
   3594     .hint =
   3595       "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 suitable exchange operators to the merchant backend configuration, or (3) satisfying the compliance rules of a configured exchange to begin using that provider's service.",
   3596     .http_code = MHD_HTTP_CONFLICT
   3597   },
   3598 
   3599   {
   3600     /* 2520 */
   3601     .ec = TALER_EC_MERCHANT_PRIVATE_DELETE_ORDERS_AWAITING_PAYMENT,
   3602     .hint =
   3603       "The order provided to the backend could not be deleted because the offer is still valid and awaiting payment. Deletion may work after the offer expires if it remains unpaid.",
   3604     .http_code = MHD_HTTP_CONFLICT
   3605   },
   3606 
   3607   {
   3608     /* 2521 */
   3609     .ec = TALER_EC_MERCHANT_PRIVATE_DELETE_ORDERS_ALREADY_PAID,
   3610     .hint =
   3611       "The order provided to the backend could not be deleted as the order was already paid.",
   3612     .http_code = MHD_HTTP_CONFLICT
   3613   },
   3614 
   3615   {
   3616     /* 2525 */
   3617     .ec =
   3618       TALER_EC_MERCHANT_PRIVATE_GET_STATISTICS_REPORT_GRANULARITY_UNAVAILABLE,
   3619     .hint =
   3620       "The client requested a report granularity that is not available at the backend. Possible solutions include extending the backend code and/or the database statistic triggers to support the desired data granularity. Alternatively, the client could request a different granularity.",
   3621     .http_code = MHD_HTTP_GONE
   3622   },
   3623 
   3624   {
   3625     /* 2530 */
   3626     .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_INCONSISTENT_AMOUNT,
   3627     .hint =
   3628       "The requested cumulative Taler refund is inconsistent: it is lower than the amount already awarded, exceeds the amount paid through Taler, or would make the combined Taler and external refunds exceed the full order total.",
   3629     .http_code = MHD_HTTP_CONFLICT
   3630   },
   3631 
   3632   {
   3633     /* 2531 */
   3634     .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_ORDER_UNPAID,
   3635     .hint =
   3636       "Only paid orders can be refunded, and the frontend specified an unpaid order to issue a refund for.",
   3637     .http_code = MHD_HTTP_CONFLICT
   3638   },
   3639 
   3640   {
   3641     /* 2532 */
   3642     .ec =
   3643       TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_NOT_ALLOWED_BY_CONTRACT,
   3644     .hint =
   3645       "The refund delay was set to 0 and thus no refunds are ever allowed for this order.",
   3646     .http_code = MHD_HTTP_FORBIDDEN
   3647   },
   3648 
   3649   {
   3650     /* 2533 */
   3651     .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_TOKEN_FAMILY_SLUG_UNKNOWN,
   3652     .hint =
   3653       "The token family slug provided in this order could not be found in the merchant database.",
   3654     .http_code = MHD_HTTP_NOT_FOUND
   3655   },
   3656 
   3657   {
   3658     /* 2534 */
   3659     .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_TOKEN_FAMILY_NOT_VALID,
   3660     .hint =
   3661       "A token family referenced in this order is either expired or not valid yet.",
   3662     .http_code = MHD_HTTP_CONFLICT
   3663   },
   3664 
   3665   {
   3666     /* 2535 */
   3667     .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ID_COLLECT_NOT_FREE,
   3668     .hint =
   3669       "The order cannot be collected by the backend as it is not a genuinely free Taler payment: the Taler amount is not zero, or the selected choice has token inputs or outputs and thus requires a customer wallet.",
   3670     .http_code = MHD_HTTP_CONFLICT
   3671   },
   3672 
   3673   {
   3674     /* 2536 */
   3675     .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ID_COLLECT_ALREADY_CLAIMED,
   3676     .hint =
   3677       "The order cannot be collected by the backend as it was already claimed by a customer wallet. The wallet owns the order and must execute the free payment itself.",
   3678     .http_code = MHD_HTTP_CONFLICT
   3679   },
   3680 
   3681   {
   3682     /* 2537 */
   3683     .ec = TALER_EC_MERCHANT_PRIVATE_DELETE_ORDERS_EXTERNALLY_PAID,
   3684     .hint =
   3685       "The order provided to the backend could not be deleted as it has payments that were settled outside of Taler. Deletion requires an explicit force operation.",
   3686     .http_code = MHD_HTTP_CONFLICT
   3687   },
   3688 
   3689   {
   3690     /* 2538 */
   3691     .ec =
   3692       TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_EXTERNAL_INCONSISTENT_AMOUNT,
   3693     .hint =
   3694       "The external refund could not be recorded as the cumulative externally refunded amount would exceed the full order total minus the amount already refunded through Taler.",
   3695     .http_code = MHD_HTTP_CONFLICT
   3696   },
   3697 
   3698   {
   3699     /* 2539 */
   3700     .ec =
   3701       TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_EXTERNAL_ALREADY_EXISTS,
   3702     .hint =
   3703       "An external refund with the same identifier was already recorded for this order, but with different details.",
   3704     .http_code = MHD_HTTP_CONFLICT
   3705   },
   3706 
   3707   {
   3708     /* 2550 */
   3709     .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_EXCHANGE_UNKNOWN,
   3710     .hint = "The exchange says it does not know this transfer.",
   3711     .http_code = MHD_HTTP_BAD_GATEWAY
   3712   },
   3713 
   3714   {
   3715     /* 2551 */
   3716     .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_REQUEST_ERROR,
   3717     .hint =
   3718       "The backend failed to execute the `/track/transfer` request internally.",
   3719     .http_code = MHD_HTTP_BAD_GATEWAY
   3720   },
   3721 
   3722   {
   3723     /* 2552 */
   3724     .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_TRANSFERS,
   3725     .hint =
   3726       "The amount transferred differs between what was submitted and what the exchange claimed.",
   3727     .http_code = MHD_HTTP_CONFLICT
   3728   },
   3729 
   3730   {
   3731     /* 2553 */
   3732     .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_REPORTS,
   3733     .hint =
   3734       "The exchange gave conflicting information about a coin which has been wire transferred.",
   3735     .http_code = MHD_HTTP_CONFLICT
   3736   },
   3737 
   3738   {
   3739     /* 2554 */
   3740     .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_BAD_WIRE_FEE,
   3741     .hint =
   3742       "The exchange charged a different wire fee than what it originally advertised, and it is higher.",
   3743     .http_code = MHD_HTTP_BAD_GATEWAY
   3744   },
   3745 
   3746   {
   3747     /* 2555 */
   3748     .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_ACCOUNT_NOT_FOUND,
   3749     .hint =
   3750       "The backend did not find the account to which the transfer was made.",
   3751     .http_code = MHD_HTTP_NOT_FOUND
   3752   },
   3753 
   3754   {
   3755     /* 2556 */
   3756     .ec = TALER_EC_MERCHANT_PRIVATE_DELETE_TRANSFERS_ALREADY_CONFIRMED,
   3757     .hint =
   3758       "The backend could not delete the transfer because the exchange already responded to the inquiry and the result was integrated.",
   3759     .http_code = MHD_HTTP_CONFLICT
   3760   },
   3761 
   3762   {
   3763     /* 2557 */
   3764     .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_SUBMISSION,
   3765     .hint =
   3766       "The backend could not persist the wire transfer due to the state of the backend. This usually means that a wire transfer with the same wire transfer subject but a different amount was previously submitted to the backend.",
   3767     .http_code = MHD_HTTP_CONFLICT
   3768   },
   3769 
   3770   {
   3771     /* 2558 */
   3772     .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_TARGET_ACCOUNT_UNKNOWN,
   3773     .hint =
   3774       "The target bank account given by the exchange is not (or no longer) known at the merchant instance.",
   3775     .http_code = MHD_HTTP_UNINITIALIZED
   3776   },
   3777 
   3778   {
   3779     /* 2563 */
   3780     .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_CONFLICTING_TRANSFERS,
   3781     .hint =
   3782       "The amount transferred differs between what was submitted and what the exchange claimed.",
   3783     .http_code = MHD_HTTP_UNINITIALIZED
   3784   },
   3785 
   3786   {
   3787     /* 2570 */
   3788     .ec = TALER_EC_MERCHANT_REPORT_GENERATOR_FAILED,
   3789     .hint =
   3790       "The report ID provided to the backend is not known to the backend.",
   3791     .http_code = MHD_HTTP_NOT_IMPLEMENTED
   3792   },
   3793 
   3794   {
   3795     /* 2571 */
   3796     .ec = TALER_EC_MERCHANT_REPORT_FETCH_FAILED,
   3797     .hint = "Failed to fetch the data for the report from the backend.",
   3798     .http_code = MHD_HTTP_BAD_GATEWAY
   3799   },
   3800 
   3801   {
   3802     /* 2600 */
   3803     .ec = TALER_EC_MERCHANT_PRIVATE_POST_INSTANCES_ALREADY_EXISTS,
   3804     .hint =
   3805       "The merchant backend cannot create an instance under the given identifier as one already exists. Use PATCH to modify the existing entry.",
   3806     .http_code = MHD_HTTP_CONFLICT
   3807   },
   3808 
   3809   {
   3810     /* 2601 */
   3811     .ec = TALER_EC_MERCHANT_PRIVATE_POST_INSTANCES_BAD_AUTH,
   3812     .hint =
   3813       "The merchant backend cannot create an instance because the authentication configuration field is malformed.",
   3814     .http_code = MHD_HTTP_BAD_REQUEST
   3815   },
   3816 
   3817   {
   3818     /* 2602 */
   3819     .ec = TALER_EC_MERCHANT_PRIVATE_POST_INSTANCE_AUTH_BAD_AUTH,
   3820     .hint =
   3821       "The merchant backend cannot update an instance's authentication settings because the provided authentication settings are malformed.",
   3822     .http_code = MHD_HTTP_BAD_REQUEST
   3823   },
   3824 
   3825   {
   3826     /* 2603 */
   3827     .ec = TALER_EC_MERCHANT_PRIVATE_POST_INSTANCES_PURGE_REQUIRED,
   3828     .hint =
   3829       "The merchant backend cannot create an instance under the given identifier, the previous one was deleted but must be purged first.",
   3830     .http_code = MHD_HTTP_CONFLICT
   3831   },
   3832 
   3833   {
   3834     /* 2604 */
   3835     .ec = TALER_EC_MERCHANT_PRIVATE_POST_INSTANCE_AUTH_BAD_OLD_PASSWORD,
   3836     .hint =
   3837       "The merchant backend cannot update an instance's authentication settings because the required current password was missing or did not match.",
   3838     .http_code = MHD_HTTP_UNAUTHORIZED
   3839   },
   3840 
   3841   {
   3842     /* 2625 */
   3843     .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_INSTANCES_PURGE_REQUIRED,
   3844     .hint =
   3845       "The merchant backend cannot update an instance under the given identifier, the previous one was deleted but must be purged first.",
   3846     .http_code = MHD_HTTP_CONFLICT
   3847   },
   3848 
   3849   {
   3850     /* 2626 */
   3851     .ec = TALER_EC_MERCHANT_PRIVATE_ACCOUNT_DELETE_UNKNOWN_ACCOUNT,
   3852     .hint =
   3853       "The bank account referenced in the requested operation was not found.",
   3854     .http_code = MHD_HTTP_NOT_FOUND
   3855   },
   3856 
   3857   {
   3858     /* 2627 */
   3859     .ec = TALER_EC_MERCHANT_PRIVATE_ACCOUNT_EXISTS,
   3860     .hint =
   3861       "The bank account specified in the request already exists at the merchant.",
   3862     .http_code = MHD_HTTP_CONFLICT
   3863   },
   3864 
   3865   {
   3866     /* 2628 */
   3867     .ec = TALER_EC_MERCHANT_PRIVATE_ACCOUNT_NOT_ELIGIBLE_FOR_EXCHANGE,
   3868     .hint =
   3869       "The bank account specified is not acceptable for this exchange. The exchange either does not support the wire method or does not support another property of the account. Check the exchange account constraints and specify a different bank account if necessary.",
   3870     .http_code = MHD_HTTP_CONFLICT
   3871   },
   3872 
   3873   {
   3874     /* 2650 */
   3875     .ec = TALER_EC_MERCHANT_PRIVATE_POST_PRODUCTS_CONFLICT_PRODUCT_EXISTS,
   3876     .hint = "The product ID exists.",
   3877     .http_code = MHD_HTTP_CONFLICT
   3878   },
   3879 
   3880   {
   3881     /* 2651 */
   3882     .ec = TALER_EC_MERCHANT_PRIVATE_POST_CATEGORIES_CONFLICT_CATEGORY_EXISTS,
   3883     .hint = "A category with the same name exists already.",
   3884     .http_code = MHD_HTTP_CONFLICT
   3885   },
   3886 
   3887   {
   3888     /* 2660 */
   3889     .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_LOST_REDUCED,
   3890     .hint =
   3891       "The update would have reduced the total amount of product lost, which is not allowed.",
   3892     .http_code = MHD_HTTP_CONFLICT
   3893   },
   3894 
   3895   {
   3896     /* 2661 */
   3897     .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_LOST_EXCEEDS_STOCKS,
   3898     .hint =
   3899       "The update would have mean that more stocks were lost than what remains from total inventory after sales, which is not allowed.",
   3900     .http_code = MHD_HTTP_BAD_REQUEST
   3901   },
   3902 
   3903   {
   3904     /* 2662 */
   3905     .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_STOCKED_REDUCED,
   3906     .hint =
   3907       "The update would have reduced the total amount of product in stock, which is not allowed.",
   3908     .http_code = MHD_HTTP_CONFLICT
   3909   },
   3910 
   3911   {
   3912     /* 2663 */
   3913     .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_SOLD_REDUCED,
   3914     .hint =
   3915       "The update would have reduced the total amount of product sold, which is not allowed.",
   3916     .http_code = MHD_HTTP_CONFLICT
   3917   },
   3918 
   3919   {
   3920     /* 2670 */
   3921     .ec = TALER_EC_MERCHANT_PRIVATE_POST_PRODUCTS_LOCK_INSUFFICIENT_STOCKS,
   3922     .hint =
   3923       "The lock request is for more products than we have left (unlocked) in stock.",
   3924     .http_code = MHD_HTTP_GONE
   3925   },
   3926 
   3927   {
   3928     /* 2680 */
   3929     .ec = TALER_EC_MERCHANT_PRIVATE_DELETE_PRODUCTS_CONFLICTING_LOCK,
   3930     .hint =
   3931       "The deletion request is for a locked product. The product cannot be deleted until the existing offer expires.",
   3932     .http_code = MHD_HTTP_CONFLICT
   3933   },
   3934 
   3935   {
   3936     /* 2690 */
   3937     .ec = TALER_EC_MERCHANT_PRIVATE_PRODUCT_GROUP_CONFLICTING_NAME,
   3938     .hint =
   3939       "The proposed name for the product group is already in use. The client should select a different name.",
   3940     .http_code = MHD_HTTP_CONFLICT
   3941   },
   3942 
   3943   {
   3944     /* 2691 */
   3945     .ec = TALER_EC_MERCHANT_PRIVATE_MONEY_POT_CONFLICTING_NAME,
   3946     .hint =
   3947       "The proposed name for the money pot is already in use. The client should select a different name.",
   3948     .http_code = MHD_HTTP_CONFLICT
   3949   },
   3950 
   3951   {
   3952     /* 2692 */
   3953     .ec = TALER_EC_MERCHANT_PRIVATE_MONEY_POT_CONFLICTING_TOTAL,
   3954     .hint =
   3955       "The total amount in the money pot is different from the amount required by the request. The client should fetch the current pot total and retry with the latest amount to succeed.",
   3956     .http_code = MHD_HTTP_CONFLICT
   3957   },
   3958 
   3959   {
   3960     /* 2700 */
   3961     .ec = TALER_EC_MERCHANT_PRIVATE_POST_RESERVES_UNSUPPORTED_WIRE_METHOD,
   3962     .hint = "The requested wire method is not supported by the exchange.",
   3963     .http_code = MHD_HTTP_CONFLICT
   3964   },
   3965 
   3966   {
   3967     /* 2701 */
   3968     .ec = TALER_EC_MERCHANT_PRIVATE_POST_RESERVES_REWARDS_NOT_ALLOWED,
   3969     .hint = "The requested exchange does not allow rewards.",
   3970     .http_code = MHD_HTTP_CONFLICT
   3971   },
   3972 
   3973   {
   3974     /* 2710 */
   3975     .ec = TALER_EC_MERCHANT_PRIVATE_DELETE_RESERVES_NO_SUCH_RESERVE,
   3976     .hint = "The reserve could not be deleted because it is unknown.",
   3977     .http_code = MHD_HTTP_NOT_FOUND
   3978   },
   3979 
   3980   {
   3981     /* 2750 */
   3982     .ec = TALER_EC_MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_RESERVE_EXPIRED,
   3983     .hint = "The reserve that was used to fund the rewards has expired.",
   3984     .http_code = MHD_HTTP_GONE
   3985   },
   3986 
   3987   {
   3988     /* 2751 */
   3989     .ec = TALER_EC_MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_RESERVE_UNKNOWN,
   3990     .hint =
   3991       "The reserve that was used to fund the rewards was not found in the DB.",
   3992     .http_code = MHD_HTTP_SERVICE_UNAVAILABLE
   3993   },
   3994 
   3995   {
   3996     /* 2752 */
   3997     .ec = TALER_EC_MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_INSUFFICIENT_FUNDS,
   3998     .hint =
   3999       "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.",
   4000     .http_code = MHD_HTTP_UNINITIALIZED
   4001   },
   4002 
   4003   {
   4004     /* 2753 */
   4005     .ec = TALER_EC_MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_RESERVE_NOT_FOUND,
   4006     .hint =
   4007       "The backend failed to find a reserve needed to authorize the reward.",
   4008     .http_code = MHD_HTTP_SERVICE_UNAVAILABLE
   4009   },
   4010 
   4011   {
   4012     /* 2800 */
   4013     .ec = TALER_EC_MERCHANT_PRIVATE_GET_ORDERS_ID_AMOUNT_ARITHMETIC_FAILURE,
   4014     .hint =
   4015       "The merchant backend encountered a failure in computing the deposit total.",
   4016     .http_code = MHD_HTTP_OK
   4017   },
   4018 
   4019   {
   4020     /* 2850 */
   4021     .ec = TALER_EC_MERCHANT_PRIVATE_POST_TEMPLATES_CONFLICT_TEMPLATE_EXISTS,
   4022     .hint = "The template ID already exists.",
   4023     .http_code = MHD_HTTP_CONFLICT
   4024   },
   4025 
   4026   {
   4027     /* 2851 */
   4028     .ec = TALER_EC_MERCHANT_PRIVATE_POST_OTP_DEVICES_CONFLICT_OTP_DEVICE_EXISTS,
   4029     .hint = "The OTP device ID already exists.",
   4030     .http_code = MHD_HTTP_CONFLICT
   4031   },
   4032 
   4033   {
   4034     /* 2852 */
   4035     .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_OTP_DEVICES_CONFLICT,
   4036     .hint =
   4037       "The OTP device algorithm cannot be changed, or the device was concurrently replaced or changed during the update.",
   4038     .http_code = MHD_HTTP_CONFLICT
   4039   },
   4040 
   4041   {
   4042     /* 2860 */
   4043     .ec =
   4044       TALER_EC_MERCHANT_POST_USING_TEMPLATES_AMOUNT_CONFLICT_TEMPLATES_CONTRACT_AMOUNT,
   4045     .hint =
   4046       "Amount given in the using template and in the template contract. There is a conflict.",
   4047     .http_code = MHD_HTTP_CONFLICT
   4048   },
   4049 
   4050   {
   4051     /* 2861 */
   4052     .ec =
   4053       TALER_EC_MERCHANT_POST_USING_TEMPLATES_SUMMARY_CONFLICT_TEMPLATES_CONTRACT_SUBJECT,
   4054     .hint =
   4055       "Subject given in the using template and in the template contract. There is a conflict.",
   4056     .http_code = MHD_HTTP_CONFLICT
   4057   },
   4058 
   4059   {
   4060     /* 2862 */
   4061     .ec = TALER_EC_MERCHANT_POST_USING_TEMPLATES_NO_AMOUNT,
   4062     .hint =
   4063       "Amount not given in the using template and in the template contract. There is a conflict.",
   4064     .http_code = MHD_HTTP_CONFLICT
   4065   },
   4066 
   4067   {
   4068     /* 2863 */
   4069     .ec = TALER_EC_MERCHANT_POST_USING_TEMPLATES_NO_SUMMARY,
   4070     .hint =
   4071       "Subject not given in the using template and in the template contract. There is a conflict.",
   4072     .http_code = MHD_HTTP_CONFLICT
   4073   },
   4074 
   4075   {
   4076     /* 2864 */
   4077     .ec = TALER_EC_MERCHANT_POST_USING_TEMPLATES_WRONG_TYPE,
   4078     .hint =
   4079       "The selected template has a different type from the one specified in the client request. This may happen if the template was updated since the client last fetched it. The client should refetch the current template and send a request with the correct type.",
   4080     .http_code = MHD_HTTP_CONFLICT
   4081   },
   4082 
   4083   {
   4084     /* 2865 */
   4085     .ec = TALER_EC_MERCHANT_POST_USING_TEMPLATES_WRONG_PRODUCT,
   4086     .hint =
   4087       "The selected template does not allow one of the specified products to be included in the order. This may happen if the template was updated since the client last fetched it. The client should refetch the current template and send a request with the correct type.",
   4088     .http_code = MHD_HTTP_CONFLICT
   4089   },
   4090 
   4091   {
   4092     /* 2866 */
   4093     .ec = TALER_EC_MERCHANT_POST_USING_TEMPLATES_NO_CURRENCY,
   4094     .hint =
   4095       "The selected combination of products does not allow the backend to compute a price for the order in any of the supported currencies. This may happen if the template was updated since the last time the client fetched it or if the wallet assembled an unsupported combination of products. The site administrator might want to specify additional prices for products, while the client should re-fetch the current template and send a request with a combination of products for which prices exist in the same currency.",
   4096     .http_code = MHD_HTTP_CONFLICT
   4097   },
   4098 
   4099   {
   4100     /* 2900 */
   4101     .ec = TALER_EC_MERCHANT_PRIVATE_POST_WEBHOOKS_CONFLICT_WEBHOOK_EXISTS,
   4102     .hint = "The webhook ID elready exists.",
   4103     .http_code = MHD_HTTP_CONFLICT
   4104   },
   4105 
   4106   {
   4107     /* 2910 */
   4108     .ec =
   4109       TALER_EC_MERCHANT_PRIVATE_POST_PENDING_WEBHOOKS_CONFLICT_PENDING_WEBHOOK_EXISTS,
   4110     .hint = "The webhook serial elready exists.",
   4111     .http_code = MHD_HTTP_CONFLICT
   4112   },
   4113 
   4114   {
   4115     /* 2950 */
   4116     .ec = TALER_EC_MERCHANT_POST_FOUNTAIN_WITHDRAW_GRANT_UNKNOWN,
   4117     .hint =
   4118       "A withdrawal entry refers to a token family without a matching grant in the fountain.",
   4119     .http_code = MHD_HTTP_CONFLICT
   4120   },
   4121 
   4122   {
   4123     /* 2951 */
   4124     .ec = TALER_EC_MERCHANT_POST_FOUNTAIN_WITHDRAW_SLOT_OUTSIDE_WINDOW,
   4125     .hint =
   4126       "The desired token validity time selects an issue key slot outside of the grant's key window.",
   4127     .http_code = MHD_HTTP_CONFLICT
   4128   },
   4129 
   4130   {
   4131     /* 2952 */
   4132     .ec = TALER_EC_MERCHANT_POST_FOUNTAIN_WITHDRAW_LIMIT_EXCEEDED,
   4133     .hint =
   4134       "The grant's per-period withdrawal limit is exhausted for the requested issue key slot.",
   4135     .http_code = MHD_HTTP_TOO_MANY_REQUESTS
   4136   },
   4137 
   4138   {
   4139     /* 3001 */
   4140     .ec = TALER_EC_AUDITOR_GENERIC_UNAUTHORIZED,
   4141     .hint =
   4142       "The auditor refused the connection due to a lack of authorization.",
   4143     .http_code = MHD_HTTP_UNAUTHORIZED
   4144   },
   4145 
   4146   {
   4147     /* 3002 */
   4148     .ec = TALER_EC_AUDITOR_GENERIC_METHOD_NOT_ALLOWED,
   4149     .hint = "This method is not allowed here.",
   4150     .http_code = MHD_HTTP_METHOD_NOT_ALLOWED
   4151   },
   4152 
   4153   {
   4154     /* 3100 */
   4155     .ec = TALER_EC_AUDITOR_DEPOSIT_CONFIRMATION_SIGNATURE_INVALID,
   4156     .hint =
   4157       "The signature from the exchange on the deposit confirmation is invalid.",
   4158     .http_code = MHD_HTTP_FORBIDDEN
   4159   },
   4160 
   4161   {
   4162     /* 3101 */
   4163     .ec = TALER_EC_AUDITOR_EXCHANGE_SIGNING_KEY_REVOKED,
   4164     .hint =
   4165       "The exchange key used for the signature on the deposit confirmation was revoked.",
   4166     .http_code = MHD_HTTP_GONE
   4167   },
   4168 
   4169   {
   4170     /* 3102 */
   4171     .ec = TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
   4172     .hint = "The requested resource could not be found.",
   4173     .http_code = MHD_HTTP_NOT_FOUND
   4174   },
   4175 
   4176   {
   4177     /* 3103 */
   4178     .ec = TALER_EC_AUDITOR_URI_MISSING_PATH_COMPONENT,
   4179     .hint = "The URI is missing a path component.",
   4180     .http_code = MHD_HTTP_BAD_REQUEST
   4181   },
   4182 
   4183   {
   4184     /* 5101 */
   4185     .ec = TALER_EC_BANK_SAME_ACCOUNT,
   4186     .hint =
   4187       "Wire transfer attempted with credit and debit party being the same bank account.",
   4188     .http_code = MHD_HTTP_BAD_REQUEST
   4189   },
   4190 
   4191   {
   4192     /* 5102 */
   4193     .ec = TALER_EC_BANK_UNALLOWED_DEBIT,
   4194     .hint =
   4195       "Wire transfer impossible, due to financial limitation of the party that attempted the payment.",
   4196     .http_code = MHD_HTTP_CONFLICT
   4197   },
   4198 
   4199   {
   4200     /* 5103 */
   4201     .ec = TALER_EC_BANK_NEGATIVE_NUMBER_AMOUNT,
   4202     .hint =
   4203       "Negative numbers are not allowed (as value and/or fraction) to instantiate an amount object.",
   4204     .http_code = MHD_HTTP_BAD_REQUEST
   4205   },
   4206 
   4207   {
   4208     /* 5104 */
   4209     .ec = TALER_EC_BANK_NUMBER_TOO_BIG,
   4210     .hint =
   4211       "A too big number was used (as value and/or fraction) to instantiate an amount object.",
   4212     .http_code = MHD_HTTP_BAD_REQUEST
   4213   },
   4214 
   4215   {
   4216     /* 5106 */
   4217     .ec = TALER_EC_BANK_UNKNOWN_ACCOUNT,
   4218     .hint =
   4219       "The bank account referenced in the requested operation was not found.",
   4220     .http_code = MHD_HTTP_NOT_FOUND
   4221   },
   4222 
   4223   {
   4224     /* 5107 */
   4225     .ec = TALER_EC_BANK_TRANSACTION_NOT_FOUND,
   4226     .hint =
   4227       "The transaction referenced in the requested operation (typically a reject operation), was not found.",
   4228     .http_code = MHD_HTTP_NOT_FOUND
   4229   },
   4230 
   4231   {
   4232     /* 5108 */
   4233     .ec = TALER_EC_BANK_BAD_FORMAT_AMOUNT,
   4234     .hint = "Bank received a malformed amount string.",
   4235     .http_code = MHD_HTTP_BAD_REQUEST
   4236   },
   4237 
   4238   {
   4239     /* 5109 */
   4240     .ec = TALER_EC_BANK_REJECT_NO_RIGHTS,
   4241     .hint =
   4242       "The client does not own the account credited by the transaction which is to be rejected, so it has no rights do reject it.",
   4243     .http_code = MHD_HTTP_FORBIDDEN
   4244   },
   4245 
   4246   {
   4247     /* 5110 */
   4248     .ec = TALER_EC_BANK_UNMANAGED_EXCEPTION,
   4249     .hint =
   4250       "This error code is returned when no known exception types captured the exception.",
   4251     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   4252   },
   4253 
   4254   {
   4255     /* 5111 */
   4256     .ec = TALER_EC_BANK_SOFT_EXCEPTION,
   4257     .hint =
   4258       "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.",
   4259     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   4260   },
   4261 
   4262   {
   4263     /* 5112 */
   4264     .ec = TALER_EC_BANK_TRANSFER_REQUEST_UID_REUSED,
   4265     .hint =
   4266       "The request UID for a request to transfer funds has already been used, but with different details for the transfer.",
   4267     .http_code = MHD_HTTP_CONFLICT
   4268   },
   4269 
   4270   {
   4271     /* 5113 */
   4272     .ec = TALER_EC_BANK_WITHDRAWAL_OPERATION_RESERVE_SELECTION_CONFLICT,
   4273     .hint =
   4274       "The withdrawal operation already has a reserve selected.  The current request conflicts with the existing selection.",
   4275     .http_code = MHD_HTTP_CONFLICT
   4276   },
   4277 
   4278   {
   4279     /* 5114 */
   4280     .ec = TALER_EC_BANK_DUPLICATE_RESERVE_PUB_SUBJECT,
   4281     .hint =
   4282       "The wire transfer subject duplicates an existing reserve public key. But wire transfer subjects must be unique.",
   4283     .http_code = MHD_HTTP_CONFLICT
   4284   },
   4285 
   4286   {
   4287     /* 5115 */
   4288     .ec = TALER_EC_BANK_ANCIENT_TRANSACTION_GONE,
   4289     .hint =
   4290       "The client requested a transaction that is so far in the past, that it has been forgotten by the bank.",
   4291     .http_code = MHD_HTTP_GONE
   4292   },
   4293 
   4294   {
   4295     /* 5116 */
   4296     .ec = TALER_EC_BANK_ABORT_CONFIRM_CONFLICT,
   4297     .hint =
   4298       "The client attempted to abort a transaction that was already confirmed.",
   4299     .http_code = MHD_HTTP_CONFLICT
   4300   },
   4301 
   4302   {
   4303     /* 5117 */
   4304     .ec = TALER_EC_BANK_CONFIRM_ABORT_CONFLICT,
   4305     .hint =
   4306       "The client attempted to confirm a transaction that was already aborted.",
   4307     .http_code = MHD_HTTP_CONFLICT
   4308   },
   4309 
   4310   {
   4311     /* 5118 */
   4312     .ec = TALER_EC_BANK_REGISTER_CONFLICT,
   4313     .hint = "The client attempted to register an account with the same name.",
   4314     .http_code = MHD_HTTP_CONFLICT
   4315   },
   4316 
   4317   {
   4318     /* 5119 */
   4319     .ec = TALER_EC_BANK_POST_WITHDRAWAL_OPERATION_REQUIRED,
   4320     .hint =
   4321       "The client attempted to confirm a withdrawal operation before the wallet posted the required details.",
   4322     .http_code = MHD_HTTP_BAD_REQUEST
   4323   },
   4324 
   4325   {
   4326     /* 5120 */
   4327     .ec = TALER_EC_BANK_RESERVED_USERNAME_CONFLICT,
   4328     .hint =
   4329       "The client tried to register a new account under a reserved username (like 'admin' for example).",
   4330     .http_code = MHD_HTTP_CONFLICT
   4331   },
   4332 
   4333   {
   4334     /* 5121 */
   4335     .ec = TALER_EC_BANK_REGISTER_USERNAME_REUSE,
   4336     .hint =
   4337       "The client tried to register a new account with an username already in use.",
   4338     .http_code = MHD_HTTP_CONFLICT
   4339   },
   4340 
   4341   {
   4342     /* 5122 */
   4343     .ec = TALER_EC_BANK_REGISTER_PAYTO_URI_REUSE,
   4344     .hint =
   4345       "The client tried to register a new account with a payto:// URI already in use.",
   4346     .http_code = MHD_HTTP_CONFLICT
   4347   },
   4348 
   4349   {
   4350     /* 5123 */
   4351     .ec = TALER_EC_BANK_ACCOUNT_BALANCE_NOT_ZERO,
   4352     .hint = "The client tried to delete an account with a non null balance.",
   4353     .http_code = MHD_HTTP_CONFLICT
   4354   },
   4355 
   4356   {
   4357     /* 5124 */
   4358     .ec = TALER_EC_BANK_UNKNOWN_CREDITOR,
   4359     .hint =
   4360       "The client tried to create a transaction or an operation that credit an unknown account.",
   4361     .http_code = MHD_HTTP_CONFLICT
   4362   },
   4363 
   4364   {
   4365     /* 5125 */
   4366     .ec = TALER_EC_BANK_UNKNOWN_DEBTOR,
   4367     .hint =
   4368       "The client tried to create a transaction or an operation that debit an unknown account.",
   4369     .http_code = MHD_HTTP_CONFLICT
   4370   },
   4371 
   4372   {
   4373     /* 5126 */
   4374     .ec = TALER_EC_BANK_ACCOUNT_IS_EXCHANGE,
   4375     .hint =
   4376       "The client tried to perform an action prohibited for exchange accounts.",
   4377     .http_code = MHD_HTTP_CONFLICT
   4378   },
   4379 
   4380   {
   4381     /* 5127 */
   4382     .ec = TALER_EC_BANK_ACCOUNT_IS_NOT_EXCHANGE,
   4383     .hint =
   4384       "The client tried to perform an action reserved for exchange accounts.",
   4385     .http_code = MHD_HTTP_CONFLICT
   4386   },
   4387 
   4388   {
   4389     /* 5128 */
   4390     .ec = TALER_EC_BANK_BAD_CONVERSION,
   4391     .hint = "Received currency conversion is wrong.",
   4392     .http_code = MHD_HTTP_CONFLICT
   4393   },
   4394 
   4395   {
   4396     /* 5129 */
   4397     .ec = TALER_EC_BANK_MISSING_TAN_INFO,
   4398     .hint =
   4399       "The account referenced in this operation is missing tan info for the chosen channel.",
   4400     .http_code = MHD_HTTP_CONFLICT
   4401   },
   4402 
   4403   {
   4404     /* 5130 */
   4405     .ec = TALER_EC_BANK_CONFIRM_INCOMPLETE,
   4406     .hint =
   4407       "The client attempted to confirm a transaction with incomplete info.",
   4408     .http_code = MHD_HTTP_CONFLICT
   4409   },
   4410 
   4411   {
   4412     /* 5131 */
   4413     .ec = TALER_EC_BANK_TAN_RATE_LIMITED,
   4414     .hint =
   4415       "The request rate is too high. The server is refusing requests to guard against brute-force attacks.",
   4416     .http_code = MHD_HTTP_TOO_MANY_REQUESTS
   4417   },
   4418 
   4419   {
   4420     /* 5132 */
   4421     .ec = TALER_EC_BANK_TAN_CHANNEL_NOT_SUPPORTED,
   4422     .hint = "This TAN channel is not supported.",
   4423     .http_code = MHD_HTTP_NOT_IMPLEMENTED
   4424   },
   4425 
   4426   {
   4427     /* 5133 */
   4428     .ec = TALER_EC_BANK_TAN_CHANNEL_SCRIPT_FAILED,
   4429     .hint =
   4430       "Failed to send TAN using the helper script. Either script is not found, or script timeout, or script terminated with a non-successful result.",
   4431     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   4432   },
   4433 
   4434   {
   4435     /* 5134 */
   4436     .ec = TALER_EC_BANK_TAN_CHALLENGE_FAILED,
   4437     .hint = "The client's response to the challenge was invalid.",
   4438     .http_code = MHD_HTTP_FORBIDDEN
   4439   },
   4440 
   4441   {
   4442     /* 5135 */
   4443     .ec = TALER_EC_BANK_NON_ADMIN_PATCH_LEGAL_NAME,
   4444     .hint = "A non-admin user has tried to change their legal name.",
   4445     .http_code = MHD_HTTP_CONFLICT
   4446   },
   4447 
   4448   {
   4449     /* 5136 */
   4450     .ec = TALER_EC_BANK_NON_ADMIN_PATCH_DEBT_LIMIT,
   4451     .hint = "A non-admin user has tried to change their debt limit.",
   4452     .http_code = MHD_HTTP_CONFLICT
   4453   },
   4454 
   4455   {
   4456     /* 5137 */
   4457     .ec = TALER_EC_BANK_NON_ADMIN_PATCH_MISSING_OLD_PASSWORD,
   4458     .hint =
   4459       "A non-admin user tried to change their password without providing the current password.",
   4460     .http_code = MHD_HTTP_CONFLICT
   4461   },
   4462 
   4463   {
   4464     /* 5138 */
   4465     .ec = TALER_EC_BANK_PATCH_BAD_OLD_PASSWORD,
   4466     .hint = "Provided old password does not match current password.",
   4467     .http_code = MHD_HTTP_CONFLICT
   4468   },
   4469 
   4470   {
   4471     /* 5139 */
   4472     .ec = TALER_EC_BANK_PATCH_ADMIN_EXCHANGE,
   4473     .hint = "An admin user has tried to become an exchange.",
   4474     .http_code = MHD_HTTP_CONFLICT
   4475   },
   4476 
   4477   {
   4478     /* 5140 */
   4479     .ec = TALER_EC_BANK_NON_ADMIN_PATCH_CASHOUT,
   4480     .hint = "A non-admin user has tried to change their cashout account.",
   4481     .http_code = MHD_HTTP_CONFLICT
   4482   },
   4483 
   4484   {
   4485     /* 5141 */
   4486     .ec = TALER_EC_BANK_NON_ADMIN_PATCH_CONTACT,
   4487     .hint = "A non-admin user has tried to change their contact info.",
   4488     .http_code = MHD_HTTP_CONFLICT
   4489   },
   4490 
   4491   {
   4492     /* 5142 */
   4493     .ec = TALER_EC_BANK_ADMIN_CREDITOR,
   4494     .hint =
   4495       "The client tried to create a transaction that credits the administrator's account.",
   4496     .http_code = MHD_HTTP_CONFLICT
   4497   },
   4498 
   4499   {
   4500     /* 5143 */
   4501     .ec = TALER_EC_BANK_CHALLENGE_NOT_FOUND,
   4502     .hint = "The referenced challenge was not found.",
   4503     .http_code = MHD_HTTP_NOT_FOUND
   4504   },
   4505 
   4506   {
   4507     /* 5144 */
   4508     .ec = TALER_EC_BANK_TAN_CHALLENGE_EXPIRED,
   4509     .hint = "The referenced challenge has expired.",
   4510     .http_code = MHD_HTTP_CONFLICT
   4511   },
   4512 
   4513   {
   4514     /* 5145 */
   4515     .ec = TALER_EC_BANK_NON_ADMIN_SET_TAN_CHANNEL,
   4516     .hint = "A non-admin user has tried to create an account with 2fa.",
   4517     .http_code = MHD_HTTP_CONFLICT
   4518   },
   4519 
   4520   {
   4521     /* 5146 */
   4522     .ec = TALER_EC_BANK_NON_ADMIN_SET_MIN_CASHOUT,
   4523     .hint = "A non-admin user has tried to set their minimum cashout amount.",
   4524     .http_code = MHD_HTTP_CONFLICT
   4525   },
   4526 
   4527   {
   4528     /* 5147 */
   4529     .ec = TALER_EC_BANK_CONVERSION_AMOUNT_TO_SMALL,
   4530     .hint =
   4531       "The amount of the currency conversion is less than the minimum allowed.",
   4532     .http_code = MHD_HTTP_CONFLICT
   4533   },
   4534 
   4535   {
   4536     /* 5148 */
   4537     .ec = TALER_EC_BANK_AMOUNT_DIFFERS,
   4538     .hint = "Specified amount will not work for this withdrawal.",
   4539     .http_code = MHD_HTTP_CONFLICT
   4540   },
   4541 
   4542   {
   4543     /* 5149 */
   4544     .ec = TALER_EC_BANK_AMOUNT_REQUIRED,
   4545     .hint = "The backend requires an amount to be specified.",
   4546     .http_code = MHD_HTTP_CONFLICT
   4547   },
   4548 
   4549   {
   4550     /* 5150 */
   4551     .ec = TALER_EC_BANK_PASSWORD_TOO_SHORT,
   4552     .hint = "Provided password is too short.",
   4553     .http_code = MHD_HTTP_CONFLICT
   4554   },
   4555 
   4556   {
   4557     /* 5151 */
   4558     .ec = TALER_EC_BANK_PASSWORD_TOO_LONG,
   4559     .hint = "Provided password is too long.",
   4560     .http_code = MHD_HTTP_CONFLICT
   4561   },
   4562 
   4563   {
   4564     /* 5152 */
   4565     .ec = TALER_EC_BANK_ACCOUNT_LOCKED,
   4566     .hint =
   4567       "The bank account is locked, and the user cannot authenticate with their password.",
   4568     .http_code = MHD_HTTP_FORBIDDEN
   4569   },
   4570 
   4571   {
   4572     /* 5153 */
   4573     .ec = TALER_EC_BANK_UPDATE_ABORT_CONFLICT,
   4574     .hint =
   4575       "The client attempted to update the details of a transaction that was already aborted.",
   4576     .http_code = MHD_HTTP_CONFLICT
   4577   },
   4578 
   4579   {
   4580     /* 5154 */
   4581     .ec = TALER_EC_BANK_TRANSFER_WTID_REUSED,
   4582     .hint =
   4583       "The wtid for a request to transfer funds has already been used, but with a different request unpaid.",
   4584     .http_code = MHD_HTTP_CONFLICT
   4585   },
   4586 
   4587   {
   4588     /* 5155 */
   4589     .ec = TALER_EC_BANK_NON_ADMIN_SET_CONVERSION_RATE_CLASS,
   4590     .hint = "A non-admin user tried to set their conversion rate class.",
   4591     .http_code = MHD_HTTP_CONFLICT
   4592   },
   4593 
   4594   {
   4595     /* 5156 */
   4596     .ec = TALER_EC_BANK_CONVERSION_RATE_CLASS_UNKNOWN,
   4597     .hint = "The referenced conversion rate class was not found.",
   4598     .http_code = MHD_HTTP_CONFLICT
   4599   },
   4600 
   4601   {
   4602     /* 5157 */
   4603     .ec = TALER_EC_BANK_NAME_REUSE,
   4604     .hint = "The client tried to use an already taken name.",
   4605     .http_code = MHD_HTTP_CONFLICT
   4606   },
   4607 
   4608   {
   4609     /* 5158 */
   4610     .ec = TALER_EC_BANK_UNSUPPORTED_SUBJECT_FORMAT,
   4611     .hint = "This subject format is not supported.",
   4612     .http_code = MHD_HTTP_CONFLICT
   4613   },
   4614 
   4615   {
   4616     /* 5159 */
   4617     .ec = TALER_EC_BANK_DERIVATION_REUSE,
   4618     .hint = "The derived subject is already used.",
   4619     .http_code = MHD_HTTP_CONFLICT
   4620   },
   4621 
   4622   {
   4623     /* 5160 */
   4624     .ec = TALER_EC_BANK_BAD_SIGNATURE,
   4625     .hint = "The provided signature is invalid.",
   4626     .http_code = MHD_HTTP_FORBIDDEN
   4627   },
   4628 
   4629   {
   4630     /* 5161 */
   4631     .ec = TALER_EC_BANK_OLD_TIMESTAMP,
   4632     .hint = "The provided timestamp is too old.",
   4633     .http_code = MHD_HTTP_CONFLICT
   4634   },
   4635 
   4636   {
   4637     /* 5162 */
   4638     .ec = TALER_EC_BANK_TRANSFER_MAPPING_REUSED,
   4639     .hint =
   4640       "The `authorization_pub` for a request to transfer funds has already been used for another non-recurring transfer.",
   4641     .http_code = MHD_HTTP_CONFLICT
   4642   },
   4643 
   4644   {
   4645     /* 5163 */
   4646     .ec = TALER_EC_BANK_TRANSFER_MAPPING_UNKNOWN,
   4647     .hint =
   4648       "The authorization_pub for a request to transfer funds is not currently registered.",
   4649     .http_code = MHD_HTTP_CONFLICT
   4650   },
   4651 
   4652   {
   4653     /* 6100 */
   4654     .ec = TALER_EC_SYNC_ACCOUNT_UNKNOWN,
   4655     .hint = "The sync service failed to find the account in its database.",
   4656     .http_code = MHD_HTTP_NOT_FOUND
   4657   },
   4658 
   4659   {
   4660     /* 6101 */
   4661     .ec = TALER_EC_SYNC_BAD_IF_NONE_MATCH,
   4662     .hint =
   4663       "The SHA-512 hash provided in the If-None-Match header is malformed.",
   4664     .http_code = MHD_HTTP_BAD_REQUEST
   4665   },
   4666 
   4667   {
   4668     /* 6102 */
   4669     .ec = TALER_EC_SYNC_BAD_IF_MATCH,
   4670     .hint =
   4671       "The SHA-512 hash provided in the If-Match header is malformed or missing.",
   4672     .http_code = MHD_HTTP_BAD_REQUEST
   4673   },
   4674 
   4675   {
   4676     /* 6103 */
   4677     .ec = TALER_EC_SYNC_BAD_SYNC_SIGNATURE,
   4678     .hint =
   4679       "The signature provided in the \"Sync-Signature\" header is malformed or missing.",
   4680     .http_code = MHD_HTTP_BAD_REQUEST
   4681   },
   4682 
   4683   {
   4684     /* 6104 */
   4685     .ec = TALER_EC_SYNC_INVALID_SIGNATURE,
   4686     .hint =
   4687       "The signature provided in the \"Sync-Signature\" header does not match the account, old or new Etags.",
   4688     .http_code = MHD_HTTP_FORBIDDEN
   4689   },
   4690 
   4691   {
   4692     /* 6105 */
   4693     .ec = TALER_EC_SYNC_MALFORMED_CONTENT_LENGTH,
   4694     .hint = "The \"Content-length\" field for the upload is not a number.",
   4695     .http_code = MHD_HTTP_BAD_REQUEST
   4696   },
   4697 
   4698   {
   4699     /* 6106 */
   4700     .ec = TALER_EC_SYNC_EXCESSIVE_CONTENT_LENGTH,
   4701     .hint =
   4702       "The \"Content-length\" field for the upload is too big based on the server's terms of service.",
   4703     .http_code = MHD_HTTP_CONTENT_TOO_LARGE
   4704   },
   4705 
   4706   {
   4707     /* 6107 */
   4708     .ec = TALER_EC_SYNC_OUT_OF_MEMORY_ON_CONTENT_LENGTH,
   4709     .hint =
   4710       "The server is out of memory to handle the upload. Trying again later may succeed.",
   4711     .http_code = MHD_HTTP_CONTENT_TOO_LARGE
   4712   },
   4713 
   4714   {
   4715     /* 6108 */
   4716     .ec = TALER_EC_SYNC_INVALID_UPLOAD,
   4717     .hint = "The uploaded data does not match the Etag.",
   4718     .http_code = MHD_HTTP_BAD_REQUEST
   4719   },
   4720 
   4721   {
   4722     /* 6109 */
   4723     .ec = TALER_EC_SYNC_PAYMENT_GENERIC_TIMEOUT,
   4724     .hint =
   4725       "HTTP server experienced a timeout while awaiting promised payment.",
   4726     .http_code = MHD_HTTP_REQUEST_TIMEOUT
   4727   },
   4728 
   4729   {
   4730     /* 6110 */
   4731     .ec = TALER_EC_SYNC_PAYMENT_CREATE_BACKEND_ERROR,
   4732     .hint =
   4733       "The sync service could not set up the payment request with its own backend.",
   4734     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   4735   },
   4736 
   4737   {
   4738     /* 6111 */
   4739     .ec = TALER_EC_SYNC_PREVIOUS_BACKUP_UNKNOWN,
   4740     .hint =
   4741       "The sync service failed to find the backup to be updated in its database.",
   4742     .http_code = MHD_HTTP_NOT_FOUND
   4743   },
   4744 
   4745   {
   4746     /* 6112 */
   4747     .ec = TALER_EC_SYNC_MISSING_CONTENT_LENGTH,
   4748     .hint = "The \"Content-length\" field for the upload is missing.",
   4749     .http_code = MHD_HTTP_BAD_REQUEST
   4750   },
   4751 
   4752   {
   4753     /* 6113 */
   4754     .ec = TALER_EC_SYNC_GENERIC_BACKEND_ERROR,
   4755     .hint = "Sync had problems communicating with its payment backend.",
   4756     .http_code = MHD_HTTP_BAD_GATEWAY
   4757   },
   4758 
   4759   {
   4760     /* 6114 */
   4761     .ec = TALER_EC_SYNC_GENERIC_BACKEND_TIMEOUT,
   4762     .hint =
   4763       "Sync experienced a timeout communicating with its payment backend.",
   4764     .http_code = MHD_HTTP_GATEWAY_TIMEOUT
   4765   },
   4766 
   4767   {
   4768     /* 6115 */
   4769     .ec = TALER_EC_SYNC_CONFLICTING_WRITE,
   4770     .hint =
   4771       "The provided new content is based on an outdated backup: the previous write was overwritten in the meantime.",
   4772     .http_code = MHD_HTTP_CONFLICT
   4773   },
   4774 
   4775   {
   4776     /* 6116 */
   4777     .ec = TALER_EC_SYNC_INCONSISTENT_BACKUP,
   4778     .hint =
   4779       "The backup does not form a consistent linked list (e.g. the previous block does not match the given hash).",
   4780     .http_code = MHD_HTTP_CONFLICT
   4781   },
   4782 
   4783   {
   4784     /* 7000 */
   4785     .ec = TALER_EC_WALLET_EXCHANGE_PROTOCOL_VERSION_INCOMPATIBLE,
   4786     .hint =
   4787       "The wallet does not implement a version of the exchange protocol that is compatible with the protocol version of the exchange.",
   4788     .http_code = MHD_HTTP_NOT_IMPLEMENTED
   4789   },
   4790 
   4791   {
   4792     /* 7001 */
   4793     .ec = TALER_EC_WALLET_UNEXPECTED_EXCEPTION,
   4794     .hint =
   4795       "The wallet encountered an unexpected exception.  This is likely a bug in the wallet implementation.",
   4796     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   4797   },
   4798 
   4799   {
   4800     /* 7002 */
   4801     .ec = TALER_EC_WALLET_RECEIVED_MALFORMED_RESPONSE,
   4802     .hint =
   4803       "The wallet received a response from a server, but the response cannot be parsed.",
   4804     .http_code = MHD_HTTP_UNINITIALIZED
   4805   },
   4806 
   4807   {
   4808     /* 7003 */
   4809     .ec = TALER_EC_WALLET_NETWORK_ERROR,
   4810     .hint =
   4811       "The wallet tried to make a network request, but it received no response.",
   4812     .http_code = MHD_HTTP_UNINITIALIZED
   4813   },
   4814 
   4815   {
   4816     /* 7004 */
   4817     .ec = TALER_EC_WALLET_HTTP_REQUEST_THROTTLED,
   4818     .hint = "The wallet tried to make a network request, but it was throttled.",
   4819     .http_code = MHD_HTTP_UNINITIALIZED
   4820   },
   4821 
   4822   {
   4823     /* 7005 */
   4824     .ec = TALER_EC_WALLET_UNEXPECTED_REQUEST_ERROR,
   4825     .hint =
   4826       "The wallet made a request to a service, but received an error response it does not know how to handle.",
   4827     .http_code = MHD_HTTP_UNINITIALIZED
   4828   },
   4829 
   4830   {
   4831     /* 7006 */
   4832     .ec = TALER_EC_WALLET_EXCHANGE_DENOMINATIONS_INSUFFICIENT,
   4833     .hint =
   4834       "The denominations offered by the exchange are insufficient.  Likely the exchange is badly configured or not maintained.",
   4835     .http_code = MHD_HTTP_UNINITIALIZED
   4836   },
   4837 
   4838   {
   4839     /* 7007 */
   4840     .ec = TALER_EC_WALLET_CORE_API_OPERATION_UNKNOWN,
   4841     .hint = "The wallet does not support the operation requested by a client.",
   4842     .http_code = MHD_HTTP_UNINITIALIZED
   4843   },
   4844 
   4845   {
   4846     /* 7008 */
   4847     .ec = TALER_EC_WALLET_INVALID_TALER_PAY_URI,
   4848     .hint = "The given taler://pay URI is invalid.",
   4849     .http_code = MHD_HTTP_UNINITIALIZED
   4850   },
   4851 
   4852   {
   4853     /* 7009 */
   4854     .ec = TALER_EC_WALLET_EXCHANGE_COIN_SIGNATURE_INVALID,
   4855     .hint =
   4856       "The signature on a coin by the exchange's denomination key is invalid after unblinding it.",
   4857     .http_code = MHD_HTTP_UNINITIALIZED
   4858   },
   4859 
   4860   {
   4861     /* 7011 */
   4862     .ec = TALER_EC_WALLET_CORE_NOT_AVAILABLE,
   4863     .hint = "The wallet core service is not available.",
   4864     .http_code = MHD_HTTP_UNINITIALIZED
   4865   },
   4866 
   4867   {
   4868     /* 7012 */
   4869     .ec = TALER_EC_WALLET_WITHDRAWAL_OPERATION_ABORTED_BY_BANK,
   4870     .hint =
   4871       "The bank aborted a withdrawal operation, so the withdrawal cannot complete.",
   4872     .http_code = MHD_HTTP_UNINITIALIZED
   4873   },
   4874 
   4875   {
   4876     /* 7013 */
   4877     .ec = TALER_EC_WALLET_HTTP_REQUEST_GENERIC_TIMEOUT,
   4878     .hint = "An HTTP request made by the wallet timed out.",
   4879     .http_code = MHD_HTTP_UNINITIALIZED
   4880   },
   4881 
   4882   {
   4883     /* 7014 */
   4884     .ec = TALER_EC_WALLET_ORDER_ALREADY_CLAIMED,
   4885     .hint = "The order has already been claimed by another wallet.",
   4886     .http_code = MHD_HTTP_UNINITIALIZED
   4887   },
   4888 
   4889   {
   4890     /* 7015 */
   4891     .ec = TALER_EC_WALLET_WITHDRAWAL_GROUP_INCOMPLETE,
   4892     .hint =
   4893       "A group of withdrawal operations (typically for the same reserve at the same exchange) has errors and will be tried again later.",
   4894     .http_code = MHD_HTTP_UNINITIALIZED
   4895   },
   4896 
   4897   {
   4898     /* 7016 */
   4899     .ec = TALER_EC_WALLET_REWARD_COIN_SIGNATURE_INVALID,
   4900     .hint =
   4901       "The signature on a coin by the exchange's denomination key (obtained through the merchant via a reward) is invalid after unblinding it.",
   4902     .http_code = MHD_HTTP_UNINITIALIZED
   4903   },
   4904 
   4905   {
   4906     /* 7017 */
   4907     .ec = TALER_EC_WALLET_BANK_INTEGRATION_PROTOCOL_VERSION_INCOMPATIBLE,
   4908     .hint =
   4909       "The wallet does not implement a version of the bank integration API that is compatible with the version offered by the bank.",
   4910     .http_code = MHD_HTTP_UNINITIALIZED
   4911   },
   4912 
   4913   {
   4914     /* 7018 */
   4915     .ec = TALER_EC_WALLET_CONTRACT_TERMS_BASE_URL_MISMATCH,
   4916     .hint =
   4917       "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.",
   4918     .http_code = MHD_HTTP_UNINITIALIZED
   4919   },
   4920 
   4921   {
   4922     /* 7019 */
   4923     .ec = TALER_EC_WALLET_CONTRACT_TERMS_SIGNATURE_INVALID,
   4924     .hint = "The merchant's signature on the contract terms is invalid.",
   4925     .http_code = MHD_HTTP_UNINITIALIZED
   4926   },
   4927 
   4928   {
   4929     /* 7020 */
   4930     .ec = TALER_EC_WALLET_CONTRACT_TERMS_MALFORMED,
   4931     .hint = "The contract terms given by the merchant are malformed.",
   4932     .http_code = MHD_HTTP_UNINITIALIZED
   4933   },
   4934 
   4935   {
   4936     /* 7021 */
   4937     .ec = TALER_EC_WALLET_PENDING_OPERATION_FAILED,
   4938     .hint = "A pending operation failed, so the request cannot be completed.",
   4939     .http_code = MHD_HTTP_UNINITIALIZED
   4940   },
   4941 
   4942   {
   4943     /* 7022 */
   4944     .ec = TALER_EC_WALLET_PAY_MERCHANT_SERVER_ERROR,
   4945     .hint =
   4946       "A payment was attempted, but the merchant had an internal server error (5xx).",
   4947     .http_code = MHD_HTTP_UNINITIALIZED
   4948   },
   4949 
   4950   {
   4951     /* 7023 */
   4952     .ec = TALER_EC_WALLET_CRYPTO_WORKER_ERROR,
   4953     .hint = "The crypto worker failed.",
   4954     .http_code = MHD_HTTP_UNINITIALIZED
   4955   },
   4956 
   4957   {
   4958     /* 7024 */
   4959     .ec = TALER_EC_WALLET_CRYPTO_WORKER_BAD_REQUEST,
   4960     .hint = "The crypto worker received a bad request.",
   4961     .http_code = MHD_HTTP_UNINITIALIZED
   4962   },
   4963 
   4964   {
   4965     /* 7025 */
   4966     .ec = TALER_EC_WALLET_WITHDRAWAL_KYC_REQUIRED,
   4967     .hint = "A KYC step is required before withdrawal can proceed.",
   4968     .http_code = MHD_HTTP_UNINITIALIZED
   4969   },
   4970 
   4971   {
   4972     /* 7026 */
   4973     .ec = TALER_EC_WALLET_DEPOSIT_GROUP_INSUFFICIENT_BALANCE,
   4974     .hint =
   4975       "The wallet does not have sufficient balance to create a deposit group.",
   4976     .http_code = MHD_HTTP_UNINITIALIZED
   4977   },
   4978 
   4979   {
   4980     /* 7027 */
   4981     .ec = TALER_EC_WALLET_PEER_PUSH_PAYMENT_INSUFFICIENT_BALANCE,
   4982     .hint =
   4983       "The wallet does not have sufficient balance to create a peer push payment.",
   4984     .http_code = MHD_HTTP_UNINITIALIZED
   4985   },
   4986 
   4987   {
   4988     /* 7028 */
   4989     .ec = TALER_EC_WALLET_PEER_PULL_PAYMENT_INSUFFICIENT_BALANCE,
   4990     .hint =
   4991       "The wallet does not have sufficient balance to pay for an invoice.",
   4992     .http_code = MHD_HTTP_UNINITIALIZED
   4993   },
   4994 
   4995   {
   4996     /* 7029 */
   4997     .ec = TALER_EC_WALLET_REFRESH_GROUP_INCOMPLETE,
   4998     .hint =
   4999       "A group of refresh operations has errors and will be tried again later.",
   5000     .http_code = MHD_HTTP_UNINITIALIZED
   5001   },
   5002 
   5003   {
   5004     /* 7030 */
   5005     .ec = TALER_EC_WALLET_EXCHANGE_BASE_URL_MISMATCH,
   5006     .hint =
   5007       "The exchange's self-reported base URL does not match the one that the wallet is using.",
   5008     .http_code = MHD_HTTP_UNINITIALIZED
   5009   },
   5010 
   5011   {
   5012     /* 7031 */
   5013     .ec = TALER_EC_WALLET_ORDER_ALREADY_PAID,
   5014     .hint = "The order has already been paid by another wallet.",
   5015     .http_code = MHD_HTTP_UNINITIALIZED
   5016   },
   5017 
   5018   {
   5019     /* 7032 */
   5020     .ec = TALER_EC_WALLET_EXCHANGE_UNAVAILABLE,
   5021     .hint =
   5022       "An exchange that is required for some request is currently not available.",
   5023     .http_code = MHD_HTTP_UNINITIALIZED
   5024   },
   5025 
   5026   {
   5027     /* 7033 */
   5028     .ec = TALER_EC_WALLET_EXCHANGE_ENTRY_USED,
   5029     .hint =
   5030       "An exchange entry is still used by the exchange, so it cannot be deleted without purging.",
   5031     .http_code = MHD_HTTP_UNINITIALIZED
   5032   },
   5033 
   5034   {
   5035     /* 7034 */
   5036     .ec = TALER_EC_WALLET_DB_UNAVAILABLE,
   5037     .hint =
   5038       "The wallet database is unavailable and the wallet thus is not operational.",
   5039     .http_code = MHD_HTTP_UNINITIALIZED
   5040   },
   5041 
   5042   {
   5043     /* 7035 */
   5044     .ec = TALER_EC_WALLET_TALER_URI_MALFORMED,
   5045     .hint = "A `taler://` URI is malformed and cannot be parsed.",
   5046     .http_code = MHD_HTTP_UNINITIALIZED
   5047   },
   5048 
   5049   {
   5050     /* 7036 */
   5051     .ec = TALER_EC_WALLET_CORE_REQUEST_CANCELLED,
   5052     .hint =
   5053       "A wallet-core request was cancelled and therefore cannot provide a response.",
   5054     .http_code = MHD_HTTP_UNINITIALIZED
   5055   },
   5056 
   5057   {
   5058     /* 7037 */
   5059     .ec = TALER_EC_WALLET_EXCHANGE_TOS_NOT_ACCEPTED,
   5060     .hint =
   5061       "A wallet-core request failed because the user needs to first accept the exchange's terms of service.",
   5062     .http_code = MHD_HTTP_UNINITIALIZED
   5063   },
   5064 
   5065   {
   5066     /* 7038 */
   5067     .ec = TALER_EC_WALLET_EXCHANGE_ENTRY_UPDATE_CONFLICT,
   5068     .hint =
   5069       "An exchange entry could not be updated, as the exchange's new details conflict with the new details.",
   5070     .http_code = MHD_HTTP_UNINITIALIZED
   5071   },
   5072 
   5073   {
   5074     /* 7039 */
   5075     .ec = TALER_EC_WALLET_EXCHANGE_ENTRY_OUTDATED,
   5076     .hint = "The wallet's information about the exchange is outdated.",
   5077     .http_code = MHD_HTTP_UNINITIALIZED
   5078   },
   5079 
   5080   {
   5081     /* 7040 */
   5082     .ec = TALER_EC_WALLET_PAY_MERCHANT_KYC_MISSING,
   5083     .hint =
   5084       "The merchant needs to do KYC first, the payment could not be completed.",
   5085     .http_code = MHD_HTTP_UNINITIALIZED
   5086   },
   5087 
   5088   {
   5089     /* 7041 */
   5090     .ec = TALER_EC_WALLET_PEER_PULL_DEBIT_PURSE_GONE,
   5091     .hint =
   5092       "A peer-pull-debit transaction was aborted because the exchange reported the purse as gone.",
   5093     .http_code = MHD_HTTP_UNINITIALIZED
   5094   },
   5095 
   5096   {
   5097     /* 7042 */
   5098     .ec = TALER_EC_WALLET_TRANSACTION_ABORTED_BY_USER,
   5099     .hint = "A transaction was aborted on explicit request by the user.",
   5100     .http_code = MHD_HTTP_UNINITIALIZED
   5101   },
   5102 
   5103   {
   5104     /* 7043 */
   5105     .ec = TALER_EC_WALLET_TRANSACTION_ABANDONED_BY_USER,
   5106     .hint = "A transaction was abandoned on explicit request by the user.",
   5107     .http_code = MHD_HTTP_UNINITIALIZED
   5108   },
   5109 
   5110   {
   5111     /* 7044 */
   5112     .ec = TALER_EC_WALLET_PAY_MERCHANT_ORDER_GONE,
   5113     .hint =
   5114       "A payment was attempted, but the merchant claims the order is gone (likely expired).",
   5115     .http_code = MHD_HTTP_UNINITIALIZED
   5116   },
   5117 
   5118   {
   5119     /* 7045 */
   5120     .ec = TALER_EC_WALLET_EXCHANGE_ENTRY_NOT_FOUND,
   5121     .hint = "The wallet does not have an entry for the requested exchange.",
   5122     .http_code = MHD_HTTP_UNINITIALIZED
   5123   },
   5124 
   5125   {
   5126     /* 7046 */
   5127     .ec = TALER_EC_WALLET_REQUEST_TRANSACTION_STATE_UNSUPPORTED,
   5128     .hint =
   5129       "The wallet is not able to process the request due to the transaction's state.",
   5130     .http_code = MHD_HTTP_UNINITIALIZED
   5131   },
   5132 
   5133   {
   5134     /* 7047 */
   5135     .ec = TALER_EC_WALLET_TRANSACTION_PROTOCOL_VIOLATION,
   5136     .hint =
   5137       "A transaction could not be processed due to an unrecoverable protocol violation.",
   5138     .http_code = MHD_HTTP_UNINITIALIZED
   5139   },
   5140 
   5141   {
   5142     /* 7048 */
   5143     .ec = TALER_EC_WALLET_CORE_API_BAD_REQUEST,
   5144     .hint = "A parameter in the request is malformed or missing.",
   5145     .http_code = MHD_HTTP_UNINITIALIZED
   5146   },
   5147 
   5148   {
   5149     /* 7049 */
   5150     .ec = TALER_EC_WALLET_MERCHANT_ORDER_NOT_FOUND,
   5151     .hint = "The order could not be found. Maybe the merchant deleted it.",
   5152     .http_code = MHD_HTTP_UNINITIALIZED
   5153   },
   5154 
   5155   {
   5156     /* 7050 */
   5157     .ec = TALER_EC_WALLET_PAY_MERCHANT_INSUFFICIENT_BALANCE,
   5158     .hint = "The wallet's balance for paying a merchant is insufficient.",
   5159     .http_code = MHD_HTTP_UNINITIALIZED
   5160   },
   5161 
   5162   {
   5163     /* 7051 */
   5164     .ec = TALER_EC_WALLET_PURCHASE_NOT_FOUND,
   5165     .hint = "The wallet does not have a purchase for the requested order.",
   5166     .http_code = MHD_HTTP_UNINITIALIZED
   5167   },
   5168 
   5169   {
   5170     /* 7052 */
   5171     .ec = TALER_EC_WALLET_TRANSACTION_NOT_FOUND,
   5172     .hint =
   5173       "The wallet does not have a transaction with the requested transaction identifier.",
   5174     .http_code = MHD_HTTP_UNINITIALIZED
   5175   },
   5176 
   5177   {
   5178     /* 7053 */
   5179     .ec = TALER_EC_WALLET_TRANSACTION_ACTION_UNSUPPORTED,
   5180     .hint =
   5181       "The requested action is not supported for this type of transaction.",
   5182     .http_code = MHD_HTTP_UNINITIALIZED
   5183   },
   5184 
   5185   {
   5186     /* 7054 */
   5187     .ec = TALER_EC_WALLET_KYC_LIMIT_EXCEEDED,
   5188     .hint =
   5189       "The operation would exceed a limit imposed by the exchange that the user cannot raise by completing a KYC process.",
   5190     .http_code = MHD_HTTP_UNINITIALIZED
   5191   },
   5192 
   5193   {
   5194     /* 7055 */
   5195     .ec = TALER_EC_WALLET_NO_SUITABLE_EXCHANGE,
   5196     .hint =
   5197       "The wallet does not know an exchange that can be used for this operation. Check that an exchange for the requested currency has been added to the wallet.",
   5198     .http_code = MHD_HTTP_UNINITIALIZED
   5199   },
   5200 
   5201   {
   5202     /* 7056 */
   5203     .ec = TALER_EC_WALLET_BANK_ACCOUNT_NOT_FOUND,
   5204     .hint =
   5205       "The wallet does not have a known bank account with the requested identifier.",
   5206     .http_code = MHD_HTTP_UNINITIALIZED
   5207   },
   5208 
   5209   {
   5210     /* 7057 */
   5211     .ec = TALER_EC_WALLET_PEER_CONTRACT_NOT_FOUND,
   5212     .hint =
   5213       "The exchange does not know the contract of this peer-to-peer payment. It may have expired.",
   5214     .http_code = MHD_HTTP_UNINITIALIZED
   5215   },
   5216 
   5217   {
   5218     /* 7058 */
   5219     .ec = TALER_EC_WALLET_PEER_PUSH_CREDIT_PURSE_GONE,
   5220     .hint =
   5221       "The purse of this peer-to-peer push payment is gone. The sender likely aborted the payment.",
   5222     .http_code = MHD_HTTP_UNINITIALIZED
   5223   },
   5224 
   5225   {
   5226     /* 7059 */
   5227     .ec = TALER_EC_WALLET_PEER_PULL_DEBIT_ALREADY_PAID,
   5228     .hint = "This invoice has already been paid, possibly by another wallet.",
   5229     .http_code = MHD_HTTP_UNINITIALIZED
   5230   },
   5231 
   5232   {
   5233     /* 7060 */
   5234     .ec = TALER_EC_WALLET_TOKENS_IN_USE,
   5235     .hint =
   5236       "The tokens can not be deleted, as at least one of them is currently being used in a transaction.",
   5237     .http_code = MHD_HTTP_UNINITIALIZED
   5238   },
   5239 
   5240   {
   5241     /* 7061 */
   5242     .ec = TALER_EC_WALLET_DB_BACKEND_UNSUPPORTED,
   5243     .hint =
   5244       "The operation is not supported by the database backend that the wallet is currently running on.",
   5245     .http_code = MHD_HTTP_UNINITIALIZED
   5246   },
   5247 
   5248   {
   5249     /* 7062 */
   5250     .ec = TALER_EC_WALLET_MAILBOX_UNAVAILABLE,
   5251     .hint = "The wallet could not use the mailbox service.",
   5252     .http_code = MHD_HTTP_UNINITIALIZED
   5253   },
   5254 
   5255   {
   5256     /* 7063 */
   5257     .ec = TALER_EC_WALLET_ALIAS_REGISTRATION_FAILED,
   5258     .hint =
   5259       "The wallet could not register an alias with the directory service.",
   5260     .http_code = MHD_HTTP_UNINITIALIZED
   5261   },
   5262 
   5263   {
   5264     /* 7064 */
   5265     .ec = TALER_EC_WALLET_CONTRACT_TERMS_UNSUPPORTED,
   5266     .hint =
   5267       "The contract terms use a feature that this version of the wallet does not support. Updating the wallet may help.",
   5268     .http_code = MHD_HTTP_UNINITIALIZED
   5269   },
   5270 
   5271   {
   5272     /* 7065 */
   5273     .ec = TALER_EC_WALLET_EXCHANGE_SIGNATURE_INVALID,
   5274     .hint =
   5275       "The exchange served data that is not correctly signed by its master key. The wallet refuses to use this exchange.",
   5276     .http_code = MHD_HTTP_UNINITIALIZED
   5277   },
   5278 
   5279   {
   5280     /* 7066 */
   5281     .ec = TALER_EC_WALLET_EXCHANGE_KEYS_NOT_ACCEPTED,
   5282     .hint =
   5283       "The exchange presents a master public key or currency that the user has not accepted yet. The operation was refused.",
   5284     .http_code = MHD_HTTP_UNINITIALIZED
   5285   },
   5286 
   5287   {
   5288     /* 7067 */
   5289     .ec = TALER_EC_WALLET_EXCHANGE_NO_KEY_CHANGE_PENDING,
   5290     .hint =
   5291       "The wallet was asked to accept or reject a change of the exchange's keys, but the exchange does not present a new key set.",
   5292     .http_code = MHD_HTTP_UNINITIALIZED
   5293   },
   5294 
   5295   {
   5296     /* 7068 */
   5297     .ec = TALER_EC_WALLET_EXCHANGE_KEY_CHANGE_MISMATCH,
   5298     .hint =
   5299       "The key set that was confirmed is not the one that the exchange currently presents.",
   5300     .http_code = MHD_HTTP_UNINITIALIZED
   5301   },
   5302 
   5303   {
   5304     /* 7069 */
   5305     .ec = TALER_EC_WALLET_PEER_PUSH_PAYMENT_QUOTE_CHANGED,
   5306     .hint =
   5307       "The values of a reviewed peer push payment changed before confirmation. The caller must prepare and show the payment again.",
   5308     .http_code = MHD_HTTP_UNINITIALIZED
   5309   },
   5310 
   5311   {
   5312     /* 7070 */
   5313     .ec = TALER_EC_WALLET_TRANSACTION_COMPLETED_BY_OTHER_WALLET,
   5314     .hint = "The operation was completed or taken over by another wallet.",
   5315     .http_code = MHD_HTTP_UNINITIALIZED
   5316   },
   5317 
   5318   {
   5319     /* 7071 */
   5320     .ec = TALER_EC_WALLET_REFRESH_GROUP_FAILED,
   5321     .hint = "Refreshing one or more coins failed permanently.",
   5322     .http_code = MHD_HTTP_UNINITIALIZED
   5323   },
   5324 
   5325   {
   5326     /* 7072 */
   5327     .ec = TALER_EC_WALLET_RECOUP_GROUP_FAILED,
   5328     .hint = "Recouping one or more revoked coins failed permanently.",
   5329     .http_code = MHD_HTTP_UNINITIALIZED
   5330   },
   5331 
   5332   {
   5333     /* 7073 */
   5334     .ec = TALER_EC_WALLET_REFUND_GROUP_FAILED,
   5335     .hint = "One or more refunds were permanently rejected by the exchange.",
   5336     .http_code = MHD_HTTP_UNINITIALIZED
   5337   },
   5338 
   5339   {
   5340     /* 7074 */
   5341     .ec = TALER_EC_WALLET_TRANSACTION_RECOVERY_FAILED,
   5342     .hint =
   5343       "Recovery of the transaction inputs failed or the recovery operation is missing.",
   5344     .http_code = MHD_HTTP_UNINITIALIZED
   5345   },
   5346 
   5347   {
   5348     /* 7075 */
   5349     .ec = TALER_EC_WALLET_TRANSACTION_DEPENDENCY_FAILED,
   5350     .hint =
   5351       "An operation required to complete the transaction failed or is missing.",
   5352     .http_code = MHD_HTTP_UNINITIALIZED
   5353   },
   5354 
   5355   {
   5356     /* 8000 */
   5357     .ec = TALER_EC_ANASTASIS_GENERIC_BACKEND_TIMEOUT,
   5358     .hint = "The service encountered a timeout with its payment backend.",
   5359     .http_code = MHD_HTTP_GATEWAY_TIMEOUT
   5360   },
   5361 
   5362   {
   5363     /* 8001 */
   5364     .ec = TALER_EC_ANASTASIS_GENERIC_INVALID_PAYMENT_REQUEST,
   5365     .hint = "The backend requested payment, but the request is malformed.",
   5366     .http_code = MHD_HTTP_UNINITIALIZED
   5367   },
   5368 
   5369   {
   5370     /* 8002 */
   5371     .ec = TALER_EC_ANASTASIS_GENERIC_BACKEND_ERROR,
   5372     .hint =
   5373       "The backend received an unexpected response from the payment processor.",
   5374     .http_code = MHD_HTTP_BAD_GATEWAY
   5375   },
   5376 
   5377   {
   5378     /* 8003 */
   5379     .ec = TALER_EC_ANASTASIS_GENERIC_MISSING_CONTENT_LENGTH,
   5380     .hint = "The \"Content-length\" field for the upload is missing.",
   5381     .http_code = MHD_HTTP_BAD_REQUEST
   5382   },
   5383 
   5384   {
   5385     /* 8004 */
   5386     .ec = TALER_EC_ANASTASIS_GENERIC_MALFORMED_CONTENT_LENGTH,
   5387     .hint = "The \"Content-length\" field for the upload is malformed.",
   5388     .http_code = MHD_HTTP_BAD_REQUEST
   5389   },
   5390 
   5391   {
   5392     /* 8005 */
   5393     .ec = TALER_EC_ANASTASIS_GENERIC_ORDER_CREATE_BACKEND_ERROR,
   5394     .hint = "The backend failed to setup an order with the payment processor.",
   5395     .http_code = MHD_HTTP_BAD_GATEWAY
   5396   },
   5397 
   5398   {
   5399     /* 8006 */
   5400     .ec = TALER_EC_ANASTASIS_GENERIC_PAYMENT_CHECK_UNAUTHORIZED,
   5401     .hint =
   5402       "The backend was not authorized to check for payment with the payment processor.",
   5403     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   5404   },
   5405 
   5406   {
   5407     /* 8007 */
   5408     .ec = TALER_EC_ANASTASIS_GENERIC_PAYMENT_CHECK_START_FAILED,
   5409     .hint =
   5410       "The backend could not check payment status with the payment processor.",
   5411     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   5412   },
   5413 
   5414   {
   5415     /* 8008 */
   5416     .ec = TALER_EC_ANASTASIS_GENERIC_PROVIDER_UNREACHABLE,
   5417     .hint = "The Anastasis provider could not be reached.",
   5418     .http_code = MHD_HTTP_UNINITIALIZED
   5419   },
   5420 
   5421   {
   5422     /* 8009 */
   5423     .ec = TALER_EC_ANASTASIS_PAYMENT_GENERIC_TIMEOUT,
   5424     .hint =
   5425       "HTTP server experienced a timeout while awaiting promised payment.",
   5426     .http_code = MHD_HTTP_REQUEST_TIMEOUT
   5427   },
   5428 
   5429   {
   5430     /* 8108 */
   5431     .ec = TALER_EC_ANASTASIS_TRUTH_UNKNOWN,
   5432     .hint = "The key share is unknown to the provider.",
   5433     .http_code = MHD_HTTP_NOT_FOUND
   5434   },
   5435 
   5436   {
   5437     /* 8109 */
   5438     .ec = TALER_EC_ANASTASIS_TRUTH_AUTHORIZATION_METHOD_NO_LONGER_SUPPORTED,
   5439     .hint =
   5440       "The authorization method used for the key share is no longer supported by the provider.",
   5441     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   5442   },
   5443 
   5444   {
   5445     /* 8110 */
   5446     .ec = TALER_EC_ANASTASIS_TRUTH_CHALLENGE_RESPONSE_REQUIRED,
   5447     .hint = "The client needs to respond to the challenge.",
   5448     .http_code = MHD_HTTP_FORBIDDEN
   5449   },
   5450 
   5451   {
   5452     /* 8111 */
   5453     .ec = TALER_EC_ANASTASIS_TRUTH_CHALLENGE_FAILED,
   5454     .hint = "The client's response to the challenge was invalid.",
   5455     .http_code = MHD_HTTP_FORBIDDEN
   5456   },
   5457 
   5458   {
   5459     /* 8112 */
   5460     .ec = TALER_EC_ANASTASIS_TRUTH_CHALLENGE_UNKNOWN,
   5461     .hint =
   5462       "The backend is not aware of having issued the provided challenge code. Either this is the wrong code, or it has expired.",
   5463     .http_code = MHD_HTTP_NOT_FOUND
   5464   },
   5465 
   5466   {
   5467     /* 8114 */
   5468     .ec = TALER_EC_ANASTASIS_TRUTH_AUTHORIZATION_START_FAILED,
   5469     .hint = "The backend failed to initiate the authorization process.",
   5470     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   5471   },
   5472 
   5473   {
   5474     /* 8115 */
   5475     .ec = TALER_EC_ANASTASIS_TRUTH_KEY_SHARE_GONE,
   5476     .hint =
   5477       "The authorization succeeded, but the key share is no longer available.",
   5478     .http_code = MHD_HTTP_NOT_FOUND
   5479   },
   5480 
   5481   {
   5482     /* 8116 */
   5483     .ec = TALER_EC_ANASTASIS_TRUTH_ORDER_DISAPPEARED,
   5484     .hint =
   5485       "The backend no longer knows about the order that the client was asked to pay for.",
   5486     .http_code = MHD_HTTP_BAD_GATEWAY
   5487   },
   5488 
   5489   {
   5490     /* 8117 */
   5491     .ec = TALER_EC_ANASTASIS_TRUTH_BACKEND_EXCHANGE_BAD,
   5492     .hint = "The backend itself reported a bad exchange interaction.",
   5493     .http_code = MHD_HTTP_BAD_GATEWAY
   5494   },
   5495 
   5496   {
   5497     /* 8118 */
   5498     .ec = TALER_EC_ANASTASIS_TRUTH_UNEXPECTED_PAYMENT_STATUS,
   5499     .hint = "The backend reported an unexpected payment status.",
   5500     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   5501   },
   5502 
   5503   {
   5504     /* 8119 */
   5505     .ec = TALER_EC_ANASTASIS_TRUTH_PAYMENT_CREATE_BACKEND_ERROR,
   5506     .hint = "The backend failed to setup the order for payment.",
   5507     .http_code = MHD_HTTP_BAD_GATEWAY
   5508   },
   5509 
   5510   {
   5511     /* 8120 */
   5512     .ec = TALER_EC_ANASTASIS_TRUTH_DECRYPTION_FAILED,
   5513     .hint = "The decryption of the key share failed with the provided key.",
   5514     .http_code = MHD_HTTP_BAD_REQUEST
   5515   },
   5516 
   5517   {
   5518     /* 8121 */
   5519     .ec = TALER_EC_ANASTASIS_TRUTH_RATE_LIMITED,
   5520     .hint =
   5521       "The request rate is too high. The server is refusing requests to guard against brute-force attacks.",
   5522     .http_code = MHD_HTTP_TOO_MANY_REQUESTS
   5523   },
   5524 
   5525   {
   5526     /* 8123 */
   5527     .ec = TALER_EC_ANASTASIS_TRUTH_CHALLENGE_WRONG_METHOD,
   5528     .hint =
   5529       "A request to issue a challenge is not valid for this authentication method.",
   5530     .http_code = MHD_HTTP_BAD_REQUEST
   5531   },
   5532 
   5533   {
   5534     /* 8150 */
   5535     .ec = TALER_EC_ANASTASIS_TRUTH_UPLOAD_UUID_EXISTS,
   5536     .hint =
   5537       "The backend failed to store the key share because the UUID is already in use.",
   5538     .http_code = MHD_HTTP_CONFLICT
   5539   },
   5540 
   5541   {
   5542     /* 8151 */
   5543     .ec = TALER_EC_ANASTASIS_TRUTH_UPLOAD_METHOD_NOT_SUPPORTED,
   5544     .hint =
   5545       "The backend failed to store the key share because the authorization method is not supported.",
   5546     .http_code = MHD_HTTP_BAD_REQUEST
   5547   },
   5548 
   5549   {
   5550     /* 8200 */
   5551     .ec = TALER_EC_ANASTASIS_SMS_PHONE_INVALID,
   5552     .hint = "The provided phone number is not an acceptable number.",
   5553     .http_code = MHD_HTTP_CONFLICT
   5554   },
   5555 
   5556   {
   5557     /* 8201 */
   5558     .ec = TALER_EC_ANASTASIS_SMS_HELPER_EXEC_FAILED,
   5559     .hint = "Failed to run the SMS transmission helper process.",
   5560     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   5561   },
   5562 
   5563   {
   5564     /* 8202 */
   5565     .ec = TALER_EC_ANASTASIS_SMS_HELPER_COMMAND_FAILED,
   5566     .hint =
   5567       "Provider failed to send SMS. Helper terminated with a non-successful result.",
   5568     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   5569   },
   5570 
   5571   {
   5572     /* 8210 */
   5573     .ec = TALER_EC_ANASTASIS_EMAIL_INVALID,
   5574     .hint = "The provided email address is not an acceptable address.",
   5575     .http_code = MHD_HTTP_CONFLICT
   5576   },
   5577 
   5578   {
   5579     /* 8211 */
   5580     .ec = TALER_EC_ANASTASIS_EMAIL_HELPER_EXEC_FAILED,
   5581     .hint = "Failed to run the email transmission helper process.",
   5582     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   5583   },
   5584 
   5585   {
   5586     /* 8212 */
   5587     .ec = TALER_EC_ANASTASIS_EMAIL_HELPER_COMMAND_FAILED,
   5588     .hint =
   5589       "The provider failed to send email. The helper terminated with a non-successful result.",
   5590     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   5591   },
   5592 
   5593   {
   5594     /* 8220 */
   5595     .ec = TALER_EC_ANASTASIS_POST_INVALID,
   5596     .hint = "The provided postal address is not an acceptable address.",
   5597     .http_code = MHD_HTTP_CONFLICT
   5598   },
   5599 
   5600   {
   5601     /* 8221 */
   5602     .ec = TALER_EC_ANASTASIS_POST_HELPER_EXEC_FAILED,
   5603     .hint = "Failed to run the mail transmission helper process.",
   5604     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   5605   },
   5606 
   5607   {
   5608     /* 8222 */
   5609     .ec = TALER_EC_ANASTASIS_POST_HELPER_COMMAND_FAILED,
   5610     .hint =
   5611       "Provider failed to send mail. Helper terminated with a non-successful result.",
   5612     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   5613   },
   5614 
   5615   {
   5616     /* 8230 */
   5617     .ec = TALER_EC_ANASTASIS_IBAN_INVALID,
   5618     .hint = "The provided IBAN address is not an acceptable IBAN.",
   5619     .http_code = MHD_HTTP_CONFLICT
   5620   },
   5621 
   5622   {
   5623     /* 8231 */
   5624     .ec = TALER_EC_ANASTASIS_IBAN_MISSING_TRANSFER,
   5625     .hint =
   5626       "The provider has not yet received the IBAN wire transfer authorizing the disclosure of the key share.",
   5627     .http_code = MHD_HTTP_FORBIDDEN
   5628   },
   5629 
   5630   {
   5631     /* 8240 */
   5632     .ec = TALER_EC_ANASTASIS_TOTP_KEY_MISSING,
   5633     .hint = "The backend did not find a TOTP key in the data provided.",
   5634     .http_code = MHD_HTTP_CONFLICT
   5635   },
   5636 
   5637   {
   5638     /* 8241 */
   5639     .ec = TALER_EC_ANASTASIS_TOTP_KEY_INVALID,
   5640     .hint =
   5641       "The key provided does not satisfy the format restrictions for an Anastasis TOTP key.",
   5642     .http_code = MHD_HTTP_CONFLICT
   5643   },
   5644 
   5645   {
   5646     /* 8250 */
   5647     .ec = TALER_EC_ANASTASIS_ADDRESS_UNREACHABLE,
   5648     .hint =
   5649       "The address is valid but the recipient could not be reached: the handset is switched off or out of coverage, or the message expired before delivery. Retrying later may succeed. Used by all authorization methods that transmit a challenge via an external helper.",
   5650     .http_code = MHD_HTTP_SERVICE_UNAVAILABLE
   5651   },
   5652 
   5653   {
   5654     /* 8251 */
   5655     .ec = TALER_EC_ANASTASIS_HELPER_MISCONFIGURED,
   5656     .hint =
   5657       "The transmission helper is misconfigured: a required credential is absent, the configured credentials were refused by the provider, or the provider account has insufficient balance. The provider operator should check the logs and the service configuration. Used by all authorization methods that transmit a challenge via an external helper.",
   5658     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   5659   },
   5660 
   5661   {
   5662     /* 8301 */
   5663     .ec = TALER_EC_ANASTASIS_POLICY_BAD_IF_NONE_MATCH,
   5664     .hint = "The given if-none-match header is malformed.",
   5665     .http_code = MHD_HTTP_BAD_REQUEST
   5666   },
   5667 
   5668   {
   5669     /* 8304 */
   5670     .ec = TALER_EC_ANASTASIS_POLICY_OUT_OF_MEMORY_ON_CONTENT_LENGTH,
   5671     .hint =
   5672       "The server is out of memory to handle the upload. Trying again later may succeed.",
   5673     .http_code = MHD_HTTP_CONTENT_TOO_LARGE
   5674   },
   5675 
   5676   {
   5677     /* 8305 */
   5678     .ec = TALER_EC_ANASTASIS_POLICY_BAD_SIGNATURE,
   5679     .hint =
   5680       "The signature provided in the \"Anastasis-Policy-Signature\" header is malformed or missing.",
   5681     .http_code = MHD_HTTP_BAD_REQUEST
   5682   },
   5683 
   5684   {
   5685     /* 8306 */
   5686     .ec = TALER_EC_ANASTASIS_POLICY_BAD_IF_MATCH,
   5687     .hint = "The given if-match header is malformed.",
   5688     .http_code = MHD_HTTP_BAD_REQUEST
   5689   },
   5690 
   5691   {
   5692     /* 8307 */
   5693     .ec = TALER_EC_ANASTASIS_POLICY_INVALID_UPLOAD,
   5694     .hint = "The uploaded data does not match the Etag.",
   5695     .http_code = MHD_HTTP_BAD_REQUEST
   5696   },
   5697 
   5698   {
   5699     /* 8350 */
   5700     .ec = TALER_EC_ANASTASIS_POLICY_NOT_FOUND,
   5701     .hint = "The provider is unaware of the requested policy.",
   5702     .http_code = MHD_HTTP_NOT_FOUND
   5703   },
   5704 
   5705   {
   5706     /* 8400 */
   5707     .ec = TALER_EC_ANASTASIS_REDUCER_ACTION_INVALID,
   5708     .hint = "The given action is invalid for the current state of the reducer.",
   5709     .http_code = MHD_HTTP_UNINITIALIZED
   5710   },
   5711 
   5712   {
   5713     /* 8401 */
   5714     .ec = TALER_EC_ANASTASIS_REDUCER_STATE_INVALID,
   5715     .hint = "The given state of the reducer is invalid.",
   5716     .http_code = MHD_HTTP_UNINITIALIZED
   5717   },
   5718 
   5719   {
   5720     /* 8402 */
   5721     .ec = TALER_EC_ANASTASIS_REDUCER_INPUT_INVALID,
   5722     .hint = "The given input to the reducer is invalid.",
   5723     .http_code = MHD_HTTP_UNINITIALIZED
   5724   },
   5725 
   5726   {
   5727     /* 8403 */
   5728     .ec = TALER_EC_ANASTASIS_REDUCER_AUTHENTICATION_METHOD_NOT_SUPPORTED,
   5729     .hint =
   5730       "The selected authentication method does not work for the Anastasis provider.",
   5731     .http_code = MHD_HTTP_UNINITIALIZED
   5732   },
   5733 
   5734   {
   5735     /* 8404 */
   5736     .ec = TALER_EC_ANASTASIS_REDUCER_INPUT_INVALID_FOR_STATE,
   5737     .hint = "The given input and action do not work for the current state.",
   5738     .http_code = MHD_HTTP_UNINITIALIZED
   5739   },
   5740 
   5741   {
   5742     /* 8405 */
   5743     .ec = TALER_EC_ANASTASIS_REDUCER_BACKEND_FAILURE,
   5744     .hint =
   5745       "The service experienced an unexpected failure while interacting with the backend.",
   5746     .http_code = MHD_HTTP_UNINITIALIZED
   5747   },
   5748 
   5749   {
   5750     /* 8406 */
   5751     .ec = TALER_EC_ANASTASIS_REDUCER_RESOURCE_MALFORMED,
   5752     .hint =
   5753       "The contents of a resource file did not match the expected format.",
   5754     .http_code = MHD_HTTP_UNINITIALIZED
   5755   },
   5756 
   5757   {
   5758     /* 8407 */
   5759     .ec = TALER_EC_ANASTASIS_REDUCER_RESOURCE_MISSING,
   5760     .hint = "A required resource file is missing.",
   5761     .http_code = MHD_HTTP_UNINITIALIZED
   5762   },
   5763 
   5764   {
   5765     /* 8408 */
   5766     .ec = TALER_EC_ANASTASIS_REDUCER_INPUT_REGEX_FAILED,
   5767     .hint = "An input did not match the regular expression.",
   5768     .http_code = MHD_HTTP_UNINITIALIZED
   5769   },
   5770 
   5771   {
   5772     /* 8409 */
   5773     .ec = TALER_EC_ANASTASIS_REDUCER_INPUT_VALIDATION_FAILED,
   5774     .hint = "An input did not match the custom validation logic.",
   5775     .http_code = MHD_HTTP_UNINITIALIZED
   5776   },
   5777 
   5778   {
   5779     /* 8410 */
   5780     .ec = TALER_EC_ANASTASIS_REDUCER_POLICY_LOOKUP_FAILED,
   5781     .hint =
   5782       "Attempts to download the recovery document failed with all providers. The personal information may differ from the information provided during the backup process. Alternatively, the backup may use a provider that is unknown to this application and must be added manually.",
   5783     .http_code = MHD_HTTP_UNINITIALIZED
   5784   },
   5785 
   5786   {
   5787     /* 8411 */
   5788     .ec = TALER_EC_ANASTASIS_REDUCER_BACKUP_PROVIDER_FAILED,
   5789     .hint = "Anastasis provider reported a fatal failure.",
   5790     .http_code = MHD_HTTP_UNINITIALIZED
   5791   },
   5792 
   5793   {
   5794     /* 8412 */
   5795     .ec = TALER_EC_ANASTASIS_REDUCER_PROVIDER_CONFIG_FAILED,
   5796     .hint =
   5797       "Anastasis provider failed to respond to the configuration request.",
   5798     .http_code = MHD_HTTP_UNINITIALIZED
   5799   },
   5800 
   5801   {
   5802     /* 8413 */
   5803     .ec = TALER_EC_ANASTASIS_REDUCER_POLICY_MALFORMED,
   5804     .hint =
   5805       "The downloaded policy is malformed. This was likely caused by a client error while creating the backup.",
   5806     .http_code = MHD_HTTP_UNINITIALIZED
   5807   },
   5808 
   5809   {
   5810     /* 8414 */
   5811     .ec = TALER_EC_ANASTASIS_REDUCER_NETWORK_FAILED,
   5812     .hint = "The policy could not be obtained, likely due to a network issue.",
   5813     .http_code = MHD_HTTP_UNINITIALIZED
   5814   },
   5815 
   5816   {
   5817     /* 8415 */
   5818     .ec = TALER_EC_ANASTASIS_REDUCER_SECRET_MALFORMED,
   5819     .hint = "The recovered secret did not match the required syntax.",
   5820     .http_code = MHD_HTTP_UNINITIALIZED
   5821   },
   5822 
   5823   {
   5824     /* 8416 */
   5825     .ec = TALER_EC_ANASTASIS_REDUCER_CHALLENGE_DATA_TOO_BIG,
   5826     .hint =
   5827       "The challenge data provided is too large for the available providers.",
   5828     .http_code = MHD_HTTP_UNINITIALIZED
   5829   },
   5830 
   5831   {
   5832     /* 8417 */
   5833     .ec = TALER_EC_ANASTASIS_REDUCER_SECRET_TOO_BIG,
   5834     .hint = "The provided core secret is too large for some of the providers.",
   5835     .http_code = MHD_HTTP_UNINITIALIZED
   5836   },
   5837 
   5838   {
   5839     /* 8418 */
   5840     .ec = TALER_EC_ANASTASIS_REDUCER_PROVIDER_INVALID_CONFIG,
   5841     .hint = "The provider returned an invalid configuration.",
   5842     .http_code = MHD_HTTP_UNINITIALIZED
   5843   },
   5844 
   5845   {
   5846     /* 8419 */
   5847     .ec = TALER_EC_ANASTASIS_REDUCER_INTERNAL_ERROR,
   5848     .hint =
   5849       "The reducer encountered an internal error, likely a bug that needs to be reported.",
   5850     .http_code = MHD_HTTP_UNINITIALIZED
   5851   },
   5852 
   5853   {
   5854     /* 8420 */
   5855     .ec = TALER_EC_ANASTASIS_REDUCER_PROVIDERS_ALREADY_SYNCED,
   5856     .hint = "The reducer already synchronized with all providers.",
   5857     .http_code = MHD_HTTP_UNINITIALIZED
   5858   },
   5859 
   5860   {
   5861     /* 8606 */
   5862     .ec = TALER_EC_DONAU_GENERIC_INVALID_DENOMINATION_CIPHER_FOR_OPERATION,
   5863     .hint =
   5864       "The requested operation is not valid for the cipher used by the selected denomination.",
   5865     .http_code = MHD_HTTP_BAD_REQUEST
   5866   },
   5867 
   5868   {
   5869     /* 8607 */
   5870     .ec = TALER_EC_DONAU_GENERIC_KEYS_MISSING,
   5871     .hint =
   5872       "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.",
   5873     .http_code = MHD_HTTP_SERVICE_UNAVAILABLE
   5874   },
   5875 
   5876   {
   5877     /* 8608 */
   5878     .ec = TALER_EC_DONAU_CHARITY_SIGNATURE_INVALID,
   5879     .hint = "The signature of the charity key is not valid.",
   5880     .http_code = MHD_HTTP_FORBIDDEN
   5881   },
   5882 
   5883   {
   5884     /* 8609 */
   5885     .ec = TALER_EC_DONAU_CHARITY_NOT_FOUND,
   5886     .hint = "The charity is unknown.",
   5887     .http_code = MHD_HTTP_NOT_FOUND
   5888   },
   5889 
   5890   {
   5891     /* 8610 */
   5892     .ec = TALER_EC_DONAU_EXCEEDING_DONATION_LIMIT,
   5893     .hint =
   5894       "The donation amount specified in the request exceeds the limit of the charity.",
   5895     .http_code = MHD_HTTP_CONFLICT
   5896   },
   5897 
   5898   {
   5899     /* 8611 */
   5900     .ec = TALER_EC_DONAU_GENERIC_DONATION_UNIT_UNKNOWN,
   5901     .hint =
   5902       "The Donau is not aware of the donation unit requested for the operation.",
   5903     .http_code = MHD_HTTP_NOT_FOUND
   5904   },
   5905 
   5906   {
   5907     /* 8612 */
   5908     .ec = TALER_EC_DONAU_DONATION_UNIT_HELPER_UNAVAILABLE,
   5909     .hint =
   5910       "The Donau failed to talk to the process responsible for its private donation unit keys or the helpers had no donation units (properly) configured.",
   5911     .http_code = MHD_HTTP_BAD_GATEWAY
   5912   },
   5913 
   5914   {
   5915     /* 8613 */
   5916     .ec = TALER_EC_DONAU_SIGNKEY_HELPER_UNAVAILABLE,
   5917     .hint =
   5918       "The Donau failed to talk to the process responsible for its private signing keys.",
   5919     .http_code = MHD_HTTP_BAD_GATEWAY
   5920   },
   5921 
   5922   {
   5923     /* 8614 */
   5924     .ec = TALER_EC_DONAU_SIGNKEY_HELPER_BUG,
   5925     .hint =
   5926       "The response from the online signing key helper process was malformed.",
   5927     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   5928   },
   5929 
   5930   {
   5931     /* 8615 */
   5932     .ec = TALER_EC_DONAU_GENERIC_WRONG_NUMBER_OF_SEGMENTS,
   5933     .hint =
   5934       "The number of segments included in the URI does not match the number of segments expected by the endpoint.",
   5935     .http_code = MHD_HTTP_NOT_FOUND
   5936   },
   5937 
   5938   {
   5939     /* 8616 */
   5940     .ec = TALER_EC_DONAU_DONATION_RECEIPT_SIGNATURE_INVALID,
   5941     .hint = "The signature of the donation receipt is not valid.",
   5942     .http_code = MHD_HTTP_FORBIDDEN
   5943   },
   5944 
   5945   {
   5946     /* 8617 */
   5947     .ec = TALER_EC_DONAU_DONOR_IDENTIFIER_NONCE_REUSE,
   5948     .hint =
   5949       "The client reused a unique donor identifier nonce, which is not allowed.",
   5950     .http_code = MHD_HTTP_CONFLICT
   5951   },
   5952 
   5953   {
   5954     /* 8618 */
   5955     .ec = TALER_EC_DONAU_CHARITY_PUB_EXISTS,
   5956     .hint = "A charity with the same public key is already registered.",
   5957     .http_code = MHD_HTTP_NOT_FOUND
   5958   },
   5959 
   5960   {
   5961     /* 8619 */
   5962     .ec = TALER_EC_DONAU_GENERIC_DONATION_UNIT_EXPIRED,
   5963     .hint = "The donation unit has expired and cannot be used any longer.",
   5964     .http_code = MHD_HTTP_GONE
   5965   },
   5966 
   5967   {
   5968     /* 8620 */
   5969     .ec = TALER_EC_DONAU_GENERIC_DONATION_UNIT_TOO_EARLY,
   5970     .hint =
   5971       "The donation unit is not yet valid. The client should repeat the request in the future when it might succeed.",
   5972     .http_code = MHD_HTTP_TOO_EARLY
   5973   },
   5974 
   5975   {
   5976     /* 8621 */
   5977     .ec = TALER_EC_DONAU_GENERIC_DONATION_UNIT_WRONG_YEAR,
   5978     .hint =
   5979       "The donation unit is not valid for the year specified by the client.",
   5980     .http_code = MHD_HTTP_CONFLICT
   5981   },
   5982 
   5983   {
   5984     /* 9000 */
   5985     .ec = TALER_EC_LIBEUFIN_NEXUS_GENERIC_ERROR,
   5986     .hint =
   5987       "A generic error occurred in the LibEuFin nexus. See the enclosed details JSON for more information.",
   5988     .http_code = MHD_HTTP_UNINITIALIZED
   5989   },
   5990 
   5991   {
   5992     /* 9001 */
   5993     .ec = TALER_EC_LIBEUFIN_NEXUS_UNCAUGHT_EXCEPTION,
   5994     .hint = "An uncaught exception happened in the LibEuFin nexus service.",
   5995     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   5996   },
   5997 
   5998   {
   5999     /* 9500 */
   6000     .ec = TALER_EC_LIBEUFIN_SANDBOX_GENERIC_ERROR,
   6001     .hint =
   6002       "A generic error occurred in the LibEuFin sandbox. See the enclosed details JSON for more information.",
   6003     .http_code = MHD_HTTP_UNINITIALIZED
   6004   },
   6005 
   6006   {
   6007     /* 9501 */
   6008     .ec = TALER_EC_LIBEUFIN_SANDBOX_UNCAUGHT_EXCEPTION,
   6009     .hint = "An uncaught exception happened in the LibEuFin sandbox service.",
   6010     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   6011   },
   6012 
   6013   {
   6014     /* 9600 */
   6015     .ec = TALER_EC_TALDIR_METHOD_NOT_SUPPORTED,
   6016     .hint = "This validation method is not supported by the service.",
   6017     .http_code = MHD_HTTP_NOT_FOUND
   6018   },
   6019 
   6020   {
   6021     /* 9601 */
   6022     .ec = TALER_EC_TALDIR_REGISTER_RATE_LIMITED,
   6023     .hint = "Number of allowed attempts for initiating a challenge exceeded.",
   6024     .http_code = MHD_HTTP_TOO_MANY_REQUESTS
   6025   },
   6026 
   6027   {
   6028     /* 9750 */
   6029     .ec = TALER_EC_CHALLENGER_GENERIC_CLIENT_UNKNOWN,
   6030     .hint =
   6031       "The service does not know a client with the given client identifier, or the given client secret does not match it. Used where no client has been authenticated yet.",
   6032     .http_code = MHD_HTTP_NOT_FOUND
   6033   },
   6034 
   6035   {
   6036     /* 9751 */
   6037     .ec = TALER_EC_CHALLENGER_GENERIC_CLIENT_FORBIDDEN_BAD_REDIRECT_URI,
   6038     .hint = "The client is not authorized to use the given redirect URI.",
   6039     .http_code = MHD_HTTP_UNAUTHORIZED
   6040   },
   6041 
   6042   {
   6043     /* 9752 */
   6044     .ec = TALER_EC_CHALLENGER_HELPER_EXEC_FAILED,
   6045     .hint =
   6046       "The service failed to execute its helper process to send the challenge.",
   6047     .http_code = MHD_HTTP_BAD_GATEWAY
   6048   },
   6049 
   6050   {
   6051     /* 9753 */
   6052     .ec = TALER_EC_CHALLENGER_GRANT_UNKNOWN,
   6053     .hint =
   6054       "The authorization grant is unknown to the service (it could also have been redeemed already or have expired).",
   6055     .http_code = MHD_HTTP_BAD_REQUEST
   6056   },
   6057 
   6058   {
   6059     /* 9754 */
   6060     .ec = TALER_EC_CHALLENGER_CLIENT_FORBIDDEN_BAD_CODE,
   6061     .hint = "The code given is not even well-formed.",
   6062     .http_code = MHD_HTTP_BAD_REQUEST
   6063   },
   6064 
   6065   {
   6066     /* 9755 */
   6067     .ec = TALER_EC_CHALLENGER_GENERIC_VALIDATION_UNKNOWN,
   6068     .hint =
   6069       "The service is not aware of the referenced validation process, or it has expired.",
   6070     .http_code = MHD_HTTP_NOT_FOUND
   6071   },
   6072 
   6073   {
   6074     /* 9756 */
   6075     .ec = TALER_EC_CHALLENGER_CLIENT_FORBIDDEN_INVALID_CODE,
   6076     .hint =
   6077       "Deprecated, no longer returned by any endpoint. The value stays reserved and must not be reused. Was: the code given is not valid.",
   6078     .http_code = MHD_HTTP_FORBIDDEN
   6079   },
   6080 
   6081   {
   6082     /* 9757 */
   6083     .ec = TALER_EC_CHALLENGER_TOO_MANY_ATTEMPTS,
   6084     .hint =
   6085       "Too many attempts have been made, validation is temporarily disabled for this address.",
   6086     .http_code = MHD_HTTP_TOO_MANY_REQUESTS
   6087   },
   6088 
   6089   {
   6090     /* 9758 */
   6091     .ec = TALER_EC_CHALLENGER_INVALID_PIN,
   6092     .hint = "The TAN code provided is incorrect.",
   6093     .http_code = MHD_HTTP_FORBIDDEN
   6094   },
   6095 
   6096   {
   6097     /* 9759 */
   6098     .ec = TALER_EC_CHALLENGER_MISSING_ADDRESS,
   6099     .hint =
   6100       "Deprecated since protocol v8, no longer returned by any endpoint; see CHALLENGER_NO_CHALLENGE_TRANSMITTED. The value stays reserved and must not be reused. Was: the token cannot be valid as no address was ever provided by the client.",
   6101     .http_code = MHD_HTTP_CONFLICT
   6102   },
   6103 
   6104   {
   6105     /* 9760 */
   6106     .ec = TALER_EC_CHALLENGER_CLIENT_FORBIDDEN_READ_ONLY,
   6107     .hint = "The client is not allowed to change the address being validated.",
   6108     .http_code = MHD_HTTP_FORBIDDEN
   6109   },
   6110 
   6111   {
   6112     /* 9761 */
   6113     .ec = TALER_EC_CHALLENGER_NO_CHALLENGE_TRANSMITTED,
   6114     .hint =
   6115       "No challenge was ever transmitted for this validation, so it cannot be solved yet. The user must provide their address first.",
   6116     .http_code = MHD_HTTP_CONFLICT
   6117   },
   6118 
   6119   {
   6120     /* 9762 */
   6121     .ec = TALER_EC_CHALLENGER_ADDRESS_RESTRICTION_VIOLATED,
   6122     .hint =
   6123       "An address field does not match the regular expression configured for it. The detail names the offending field.",
   6124     .http_code = MHD_HTTP_BAD_REQUEST
   6125   },
   6126 
   6127   {
   6128     /* 9763 */
   6129     .ec = TALER_EC_CHALLENGER_ADDRESS_RESTRICTION_MALFORMED,
   6130     .hint =
   6131       "The address restriction configured for this field is missing its regular expression or the expression failed to compile. This is a server misconfiguration.",
   6132     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   6133   },
   6134 
   6135   {
   6136     /* 9764 */
   6137     .ec = TALER_EC_CHALLENGER_TOO_MANY_ADDRESS_CHANGES,
   6138     .hint =
   6139       "The number of times the address may be changed for this validation has been exhausted. The user must request a fresh nonce from the client.",
   6140     .http_code = MHD_HTTP_TOO_MANY_REQUESTS
   6141   },
   6142 
   6143   {
   6144     /* 9765 */
   6145     .ec = TALER_EC_CHALLENGER_TOO_MANY_PIN_TRANSMISSIONS,
   6146     .hint =
   6147       "The number of times the challenge may be transmitted for this validation has been exhausted. The user may still try a different address if changes remain.",
   6148     .http_code = MHD_HTTP_TOO_MANY_REQUESTS
   6149   },
   6150 
   6151   {
   6152     /* 9766 */
   6153     .ec = TALER_EC_CHALLENGER_NO_PIN_ATTEMPTS_LEFT,
   6154     .hint =
   6155       "The number of attempts to enter the TAN has been exhausted. The user may still request a retransmission or change the address.",
   6156     .http_code = MHD_HTTP_TOO_MANY_REQUESTS
   6157   },
   6158 
   6159   {
   6160     /* 9767 */
   6161     .ec = TALER_EC_CHALLENGER_CLIENT_AUTHENTICATION_FAILED,
   6162     .hint =
   6163       "Authentication of the client failed: the presented client identifier and client secret do not match a registered client. This response is returned when the endpoint authenticates the client, so it challenges the client for credentials.",
   6164     .http_code = MHD_HTTP_UNAUTHORIZED
   6165   },
   6166 
   6167   {
   6168     /* 9768 */
   6169     .ec = TALER_EC_CHALLENGER_TOKEN_UNKNOWN,
   6170     .hint =
   6171       "The access token presented is malformed, unknown or expired. Malformed and unknown tokens are deliberately not distinguished.",
   6172     .http_code = MHD_HTTP_UNAUTHORIZED
   6173   },
   6174 
   6175   {
   6176     /* 9769 */
   6177     .ec = TALER_EC_CHALLENGER_ADDRESS_UNUSABLE,
   6178     .hint =
   6179       "The transmission helper rejected the address the user provided: it is malformed, of the wrong length, not a mobile subscription, unallocated, or blocked. The user should correct the address and try again.",
   6180     .http_code = MHD_HTTP_BAD_REQUEST
   6181   },
   6182 
   6183   {
   6184     /* 9770 */
   6185     .ec = TALER_EC_CHALLENGER_ADDRESS_UNREACHABLE,
   6186     .hint =
   6187       "The address is valid but the recipient could not be reached: the handset is switched off or out of coverage, or the message expired before delivery. Retrying later may succeed.",
   6188     .http_code = MHD_HTTP_SERVICE_UNAVAILABLE
   6189   },
   6190 
   6191   {
   6192     /* 9771 */
   6193     .ec = TALER_EC_CHALLENGER_HELPER_MISCONFIGURED,
   6194     .hint =
   6195       "The transmission helper is misconfigured: a required credential is absent, the configured credentials were refused by the provider, or the provider account has insufficient balance. The operator should check the logs and the service configuration.",
   6196     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   6197   },
   6198 
   6199   {
   6200     /* 9772 */
   6201     .ec = TALER_EC_CHALLENGER_VALIDATION_FAILED,
   6202     .hint =
   6203       "The validation failed permanently: the user exhausted all address changes, TAN transmissions and TAN attempts. The validation cannot succeed anymore; the user must be sent back to the client, which has to start a new validation if it wants to try again.",
   6204     .http_code = MHD_HTTP_GONE
   6205   },
   6206 
   6207   {
   6208     /* 9800 */
   6209     .ec = TALER_EC_PAIVANA_PAYMENT_MISSING,
   6210     .hint =
   6211       "The request is invalid as the specified order is unpaid. The client should only call this endpoint after paying the order.",
   6212     .http_code = MHD_HTTP_CONFLICT
   6213   },
   6214 
   6215   {
   6216     /* 9801 */
   6217     .ec = TALER_EC_PAIVANA_BACKEND_REFUSED,
   6218     .hint =
   6219       "The merchant backend refused the request to check the payment status. The backend is either unavailable or Paivana is misconfigured. The system administrator should check the logs.",
   6220     .http_code = MHD_HTTP_BAD_GATEWAY
   6221   },
   6222 
   6223   {
   6224     /* 9802 */
   6225     .ec = TALER_EC_PAIVANA_ORDER_UNKNOWN,
   6226     .hint =
   6227       "The order specified in the request is unknown to the backend. The client must instantiate the Paivana template first and pay the order before calling this endpoint.",
   6228     .http_code = MHD_HTTP_NOT_FOUND
   6229   },
   6230 
   6231   {
   6232     /* 9803 */
   6233     .ec = TALER_EC_PAIVANA_BACKEND_ERROR,
   6234     .hint =
   6235       "The merchant backend returned an unexpected status code. This is probably a protocol incompatibility that should be reported to the developers.",
   6236     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   6237   },
   6238 
   6239   {
   6240     /* 9804 */
   6241     .ec = TALER_EC_PAIVANA_GET_ORDER_FAILED,
   6242     .hint =
   6243       "Paivana failed to initialize the request to check the payment status. This should never happen. The system administrator should consult the logs.",
   6244     .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
   6245   },
   6246 
   6247   {
   6248     /* 9805 */
   6249     .ec = TALER_EC_PAIVANA_WRONG_ORDER,
   6250     .hint =
   6251       "The specified order does not match the specified Website or nonce and thus the order is invalid for the given request. Clients should pay for the correct order for access to the resource.",
   6252     .http_code = MHD_HTTP_CONFLICT
   6253   },
   6254 
   6255   {
   6256     /* 9806 */
   6257     .ec = TALER_EC_PAIVANA_TOO_LATE,
   6258     .hint =
   6259       "The specified expiration time for the cookie is longer than what the purchase allows. The request may succeed with a shorter expiration time. Alternatively, the user may need to purchase access again.",
   6260     .http_code = MHD_HTTP_GONE
   6261   },
   6262 
   6263   {
   6264     /* 9807 */
   6265     .ec = TALER_EC_PAIVANA_TEMPLATE_UNKNOWN,
   6266     .hint =
   6267       "The payment template specified in the request is unknown to the backend.",
   6268     .http_code = MHD_HTTP_NOT_FOUND
   6269   },
   6270 
   6271   {
   6272     /* 9808 */
   6273     .ec = TALER_EC_PAIVANA_PAYWALL_DISABLED,
   6274     .hint =
   6275       "The paywall functionality is currently disabled. Thus, proofs of payment are unnecessary and also not supported.",
   6276     .http_code = MHD_HTTP_NOT_IMPLEMENTED
   6277   },
   6278 
   6279   {
   6280     /* 9809 */
   6281     .ec = TALER_EC_PAIVANA_INVALID_TARGET,
   6282     .hint =
   6283       "The website specified in the request is not acceptable for this backend. Somehow the client must have specified an invalid website which is not configured for this Paivana reverse proxy and thus not eligible as a target for the redirect. A developer should check how the client computed the fulfillment_url of the order and fix it.",
   6284     .http_code = MHD_HTTP_CONFLICT
   6285   },
   6286 
   6287   {
   6288     /* 9999 */
   6289     .ec = TALER_EC_END,
   6290     .hint = "End of error code range.",
   6291     .http_code = MHD_HTTP_UNINITIALIZED
   6292   },
   6293 
   6294 
   6295 };
   6296 
   6297 
   6298 /**
   6299  * The length of @e code_hint_pairs.
   6300  */
   6301 static const unsigned int code_hint_pairs_length = 811;
   6302 
   6303 
   6304 const char *
   6305 TALER_ErrorCode_get_hint (enum TALER_ErrorCode ec)
   6306 {
   6307   unsigned int lower = 0;
   6308   unsigned int upper = code_hint_pairs_length - 1;
   6309   unsigned int mid = upper / 2;
   6310   while (lower <= upper)
   6311   {
   6312     mid = (upper + lower) / 2;
   6313     if (code_hint_pairs[mid].ec < ec)
   6314     {
   6315       lower = mid + 1;
   6316     }
   6317     else if (code_hint_pairs[mid].ec > ec)
   6318     {
   6319       upper = mid - 1;
   6320     }
   6321     else
   6322     {
   6323       return code_hint_pairs[mid].hint;
   6324     }
   6325   }
   6326   return "<no hint found>";
   6327 }
   6328 
   6329 
   6330 unsigned int
   6331 TALER_ErrorCode_get_http_status (enum TALER_ErrorCode ec)
   6332 {
   6333   unsigned int lower = 0;
   6334   unsigned int upper = code_hint_pairs_length - 1;
   6335   unsigned int mid = upper / 2;
   6336   while (lower <= upper)
   6337   {
   6338     mid = (upper + lower) / 2;
   6339     if (code_hint_pairs[mid].ec < ec)
   6340     {
   6341       lower = mid + 1;
   6342     }
   6343     else if (code_hint_pairs[mid].ec > ec)
   6344     {
   6345       upper = mid - 1;
   6346     }
   6347     else
   6348     {
   6349       return code_hint_pairs[mid].http_code;
   6350     }
   6351   }
   6352   return UINT_MAX;
   6353 }
   6354 
   6355 
   6356 unsigned int
   6357 TALER_ErrorCode_get_http_status_safe (enum TALER_ErrorCode ec)
   6358 {
   6359   unsigned int hc;
   6360 
   6361   hc = TALER_ErrorCode_get_http_status (ec);
   6362   if ( (0 == hc) ||
   6363        (UINT_MAX == hc) )
   6364     return MHD_HTTP_INTERNAL_SERVER_ERROR;
   6365   return hc;
   6366 }
   6367 
   6368 
   6369 void __attribute__ ((constructor))
   6370 TALER_ErrorCode_check_invariants (void);
   6371 
   6372 void __attribute__ ((constructor))
   6373 TALER_ErrorCode_check_invariants (void)
   6374 {
   6375   for (unsigned int i = 1; i < code_hint_pairs_length; i++)
   6376     GNUNET_assert (code_hint_pairs[i - 1].ec <
   6377                    code_hint_pairs[i].ec);
   6378 }