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 (191224B)


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