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


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