Line data Source code
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 : /* 2188 */
3171 : .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_DONAU_RECEIPTS_DELAYED,
3172 : .hint =
3173 : "The payment succeeded, but the donation authority (Donau) could not issue the donation receipts at this time. The response contains the payment confirmation. The wallet should replay the payment request later to obtain the receipts.",
3174 : .http_code = MHD_HTTP_BAD_GATEWAY
3175 : },
3176 :
3177 : {
3178 : /* 2189 */
3179 : .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_DONAU_RECEIPTS_REFUSED,
3180 : .hint =
3181 : "The payment succeeded, but the donation authority (Donau) refused to issue the donation receipts. The response contains the payment confirmation. Replaying the payment request will not produce the receipts.",
3182 : .http_code = MHD_HTTP_BAD_GATEWAY
3183 : },
3184 :
3185 : {
3186 : /* 2190 */
3187 : .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_REPLAY_AFTER_REFUND,
3188 : .hint =
3189 : "The order was already paid and has since been refunded, possibly only in part. The payment request can no longer be replayed. The wallet should query the refunds instead.",
3190 : .http_code = MHD_HTTP_CONFLICT
3191 : },
3192 :
3193 : {
3194 : /* 2191 */
3195 : .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_DONATION_YEAR_INVALID,
3196 : .hint =
3197 : "The donation year in the request is not the current year. Nothing was paid. The wallet should create the donation receipt requests for the current year and try again.",
3198 : .http_code = MHD_HTTP_CONFLICT
3199 : },
3200 :
3201 : {
3202 : /* 2200 */
3203 : .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAID_CONTRACT_HASH_MISMATCH,
3204 : .hint = "The contract hash does not match the given order ID.",
3205 : .http_code = MHD_HTTP_BAD_REQUEST
3206 : },
3207 :
3208 : {
3209 : /* 2201 */
3210 : .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAID_COIN_SIGNATURE_INVALID,
3211 : .hint =
3212 : "The signature of the merchant is not valid for the given contract hash.",
3213 : .http_code = MHD_HTTP_FORBIDDEN
3214 : },
3215 :
3216 : {
3217 : /* 2225 */
3218 : .ec = TALER_EC_MERCHANT_POST_TOKEN_FAMILY_CONFLICT,
3219 : .hint = "A token family with this ID but conflicting data exists.",
3220 : .http_code = MHD_HTTP_CONFLICT
3221 : },
3222 :
3223 : {
3224 : /* 2226 */
3225 : .ec = TALER_EC_MERCHANT_PATCH_TOKEN_FAMILY_NOT_FOUND,
3226 : .hint = "The backend is unaware of a token family with the given ID.",
3227 : .http_code = MHD_HTTP_NOT_FOUND
3228 : },
3229 :
3230 : {
3231 : /* 2251 */
3232 : .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_EXCHANGE_REFUND_FAILED,
3233 : .hint = "The merchant failed to send the exchange the refund request.",
3234 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
3235 : },
3236 :
3237 : {
3238 : /* 2252 */
3239 : .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_EXCHANGE_LOOKUP_FAILED,
3240 : .hint = "The merchant failed to find the exchange to process the lookup.",
3241 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
3242 : },
3243 :
3244 : {
3245 : /* 2253 */
3246 : .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_CONTRACT_NOT_FOUND,
3247 : .hint = "The merchant could not find the contract.",
3248 : .http_code = MHD_HTTP_NOT_FOUND
3249 : },
3250 :
3251 : {
3252 : /* 2254 */
3253 : .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_REFUND_REFUSED_PAYMENT_COMPLETE
3254 : ,
3255 : .hint =
3256 : "The payment was already completed and thus cannot be aborted anymore.",
3257 : .http_code = MHD_HTTP_PRECONDITION_FAILED
3258 : },
3259 :
3260 : {
3261 : /* 2255 */
3262 : .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_CONTRACT_HASH_MISSMATCH,
3263 : .hint = "The hash provided by the wallet does not match the order.",
3264 : .http_code = MHD_HTTP_FORBIDDEN
3265 : },
3266 :
3267 : {
3268 : /* 2256 */
3269 : .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_ABORT_COINS_ARRAY_EMPTY,
3270 : .hint = "The array of coins cannot be empty.",
3271 : .http_code = MHD_HTTP_BAD_REQUEST
3272 : },
3273 :
3274 : {
3275 : /* 2258 */
3276 : .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_AWAITING_KEYS,
3277 : .hint =
3278 : "The merchant is waiting for the exchange to provide key material before checking the wire transfer.",
3279 : .http_code = MHD_HTTP_ACCEPTED
3280 : },
3281 :
3282 : {
3283 : /* 2259 */
3284 : .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_AWAITING_LIST,
3285 : .hint =
3286 : "The merchant is waiting for the exchange to provide the list of aggregated transactions.",
3287 : .http_code = MHD_HTTP_ACCEPTED
3288 : },
3289 :
3290 : {
3291 : /* 2260 */
3292 : .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_FATAL_NO_EXCHANGE,
3293 : .hint =
3294 : "The endpoint indicated in the wire transfer does not belong to a GNU Taler exchange.",
3295 : .http_code = MHD_HTTP_OK
3296 : },
3297 :
3298 : {
3299 : /* 2261 */
3300 : .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_FATAL_NOT_FOUND,
3301 : .hint =
3302 : "The exchange indicated in the wire transfer claims to know nothing about the wire transfer.",
3303 : .http_code = MHD_HTTP_UNINITIALIZED
3304 : },
3305 :
3306 : {
3307 : /* 2262 */
3308 : .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_RATE_LIMITED,
3309 : .hint =
3310 : "The interaction with the exchange is delayed due to rate limiting.",
3311 : .http_code = MHD_HTTP_ACCEPTED
3312 : },
3313 :
3314 : {
3315 : /* 2263 */
3316 : .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_TRANSIENT_FAILURE,
3317 : .hint =
3318 : "The merchant experienced a transient failure while interacting with the exchange.",
3319 : .http_code = MHD_HTTP_ACCEPTED
3320 : },
3321 :
3322 : {
3323 : /* 2264 */
3324 : .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_HARD_FAILURE,
3325 : .hint =
3326 : "The response from the exchange was unacceptable and should be reviewed with an auditor.",
3327 : .http_code = MHD_HTTP_OK
3328 : },
3329 :
3330 : {
3331 : /* 2275 */
3332 : .ec = TALER_EC_MERCHANT_POST_ACCOUNTS_KYCAUTH_BANK_GATEWAY_UNREACHABLE,
3333 : .hint =
3334 : "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.",
3335 : .http_code = MHD_HTTP_BAD_GATEWAY
3336 : },
3337 :
3338 : {
3339 : /* 2276 */
3340 : .ec = TALER_EC_MERCHANT_POST_ACCOUNTS_EXCHANGE_TOO_OLD,
3341 : .hint =
3342 : "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.",
3343 : .http_code = MHD_HTTP_BAD_GATEWAY
3344 : },
3345 :
3346 : {
3347 : /* 2277 */
3348 : .ec = TALER_EC_MERCHANT_POST_ACCOUNTS_KYCAUTH_EXCHANGE_UNREACHABLE,
3349 : .hint =
3350 : "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.",
3351 : .http_code = MHD_HTTP_BAD_GATEWAY
3352 : },
3353 :
3354 : {
3355 : /* 2300 */
3356 : .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_CLAIM_NOT_FOUND,
3357 : .hint =
3358 : "The order could not be claimed because the backend is unaware of it.",
3359 : .http_code = MHD_HTTP_NOT_FOUND
3360 : },
3361 :
3362 : {
3363 : /* 2301 */
3364 : .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_CLAIM_ALREADY_CLAIMED,
3365 : .hint =
3366 : "The order could not be claimed because another client claimed it first.",
3367 : .http_code = MHD_HTTP_CONFLICT
3368 : },
3369 :
3370 : {
3371 : /* 2302 */
3372 : .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_CLAIM_CLIENT_INTERNAL_FAILURE,
3373 : .hint = "The client experienced an internal failure.",
3374 : .http_code = MHD_HTTP_UNINITIALIZED
3375 : },
3376 :
3377 : {
3378 : /* 2303 */
3379 : .ec = TALER_EC_MERCHANT_POST_ORDERS_UNCLAIM_SIGNATURE_INVALID,
3380 : .hint =
3381 : "The unclaim signature of the wallet is not valid for the given contract hash.",
3382 : .http_code = MHD_HTTP_FORBIDDEN
3383 : },
3384 :
3385 : {
3386 : /* 2350 */
3387 : .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_REFUND_SIGNATURE_FAILED,
3388 : .hint = "The backend failed to sign the refund request.",
3389 : .http_code = MHD_HTTP_UNINITIALIZED
3390 : },
3391 :
3392 : {
3393 : /* 2400 */
3394 : .ec = TALER_EC_MERCHANT_REWARD_PICKUP_UNBLIND_FAILURE,
3395 : .hint =
3396 : "The client failed to unblind the signature returned by the merchant.",
3397 : .http_code = MHD_HTTP_UNINITIALIZED
3398 : },
3399 :
3400 : {
3401 : /* 2403 */
3402 : .ec = TALER_EC_MERCHANT_REWARD_PICKUP_EXCHANGE_ERROR,
3403 : .hint = "The exchange returned a failure code for the withdraw operation.",
3404 : .http_code = MHD_HTTP_BAD_GATEWAY
3405 : },
3406 :
3407 : {
3408 : /* 2404 */
3409 : .ec = TALER_EC_MERCHANT_REWARD_PICKUP_SUMMATION_FAILED,
3410 : .hint =
3411 : "The merchant failed to add up the amounts to compute the pick up value.",
3412 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
3413 : },
3414 :
3415 : {
3416 : /* 2405 */
3417 : .ec = TALER_EC_MERCHANT_REWARD_PICKUP_HAS_EXPIRED,
3418 : .hint = "The reward expired.",
3419 : .http_code = MHD_HTTP_GONE
3420 : },
3421 :
3422 : {
3423 : /* 2406 */
3424 : .ec = TALER_EC_MERCHANT_REWARD_PICKUP_AMOUNT_EXCEEDS_REWARD_REMAINING,
3425 : .hint =
3426 : "The requested withdraw amount exceeds the amount remaining to be picked up.",
3427 : .http_code = MHD_HTTP_BAD_REQUEST
3428 : },
3429 :
3430 : {
3431 : /* 2407 */
3432 : .ec = TALER_EC_MERCHANT_REWARD_PICKUP_DENOMINATION_UNKNOWN,
3433 : .hint =
3434 : "The merchant did not find the specified denomination key in the exchange's key set.",
3435 : .http_code = MHD_HTTP_CONFLICT
3436 : },
3437 :
3438 : {
3439 : /* 2500 */
3440 : .ec =
3441 : TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_INSTANCE_CONFIGURATION_LACKS_WIRE,
3442 : .hint =
3443 : "The merchant instance has no active bank accounts configured. However, at least one bank account must be available to create new orders.",
3444 : .http_code = MHD_HTTP_NOT_FOUND
3445 : },
3446 :
3447 : {
3448 : /* 2501 */
3449 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_NO_LOCALTIME,
3450 : .hint =
3451 : "The proposal had no timestamp and the merchant backend failed to obtain the current local time.",
3452 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
3453 : },
3454 :
3455 : {
3456 : /* 2502 */
3457 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_PROPOSAL_PARSE_ERROR,
3458 : .hint =
3459 : "The order provided to the backend could not be parsed; likely some required fields were missing or ill-formed.",
3460 : .http_code = MHD_HTTP_BAD_REQUEST
3461 : },
3462 :
3463 : {
3464 : /* 2503 */
3465 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ALREADY_EXISTS,
3466 : .hint =
3467 : "A conflicting order (sharing the same order identifier) already exists at this merchant backend instance.",
3468 : .http_code = MHD_HTTP_CONFLICT
3469 : },
3470 :
3471 : {
3472 : /* 2504 */
3473 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_REFUND_AFTER_WIRE_DEADLINE,
3474 : .hint =
3475 : "The order creation request is invalid because the given wire deadline is before the refund deadline.",
3476 : .http_code = MHD_HTTP_BAD_REQUEST
3477 : },
3478 :
3479 : {
3480 : /* 2505 */
3481 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_DELIVERY_DATE_IN_PAST,
3482 : .hint =
3483 : "The order creation request is invalid because the delivery date given is in the past.",
3484 : .http_code = MHD_HTTP_BAD_REQUEST
3485 : },
3486 :
3487 : {
3488 : /* 2506 */
3489 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_WIRE_DEADLINE_IS_NEVER,
3490 : .hint =
3491 : "The order creation request is invalid because a wire deadline of `never` is not allowed.",
3492 : .http_code = MHD_HTTP_BAD_REQUEST
3493 : },
3494 :
3495 : {
3496 : /* 2507 */
3497 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_PAY_DEADLINE_IN_PAST,
3498 : .hint =
3499 : "The order creation request is invalid because the given payment deadline is in the past.",
3500 : .http_code = MHD_HTTP_BAD_REQUEST
3501 : },
3502 :
3503 : {
3504 : /* 2508 */
3505 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_REFUND_DEADLINE_IN_PAST,
3506 : .hint =
3507 : "The order creation request is invalid because the given refund deadline is in the past.",
3508 : .http_code = MHD_HTTP_BAD_REQUEST
3509 : },
3510 :
3511 : {
3512 : /* 2509 */
3513 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_NO_EXCHANGES_FOR_WIRE_METHOD,
3514 : .hint =
3515 : "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.",
3516 : .http_code = MHD_HTTP_CONFLICT
3517 : },
3518 :
3519 : {
3520 : /* 2510 */
3521 : .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_ORDERS_ID_FORGET_PATH_SYNTAX_INCORRECT
3522 : ,
3523 : .hint = "One of the paths to forget is malformed.",
3524 : .http_code = MHD_HTTP_BAD_REQUEST
3525 : },
3526 :
3527 : {
3528 : /* 2511 */
3529 : .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_ORDERS_ID_FORGET_PATH_NOT_FORGETTABLE,
3530 : .hint = "One of the paths to forget was not marked as forgettable.",
3531 : .http_code = MHD_HTTP_CONFLICT
3532 : },
3533 :
3534 : {
3535 : /* 2512 */
3536 : .ec =
3537 : TALER_EC_MERCHANT_POST_ORDERS_ID_REFUND_EXCHANGE_TRANSACTION_LIMIT_VIOLATION,
3538 : .hint =
3539 : "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.",
3540 : .http_code = MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS
3541 : },
3542 :
3543 : {
3544 : /* 2513 */
3545 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_AMOUNT_EXCEEDS_LEGAL_LIMITS,
3546 : .hint =
3547 : "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.",
3548 : .http_code = MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS
3549 : },
3550 :
3551 : {
3552 : /* 2514 */
3553 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_NO_EXCHANGE_FOR_CURRENCY,
3554 : .hint =
3555 : "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.",
3556 : .http_code = MHD_HTTP_CONFLICT
3557 : },
3558 :
3559 : {
3560 : /* 2520 */
3561 : .ec = TALER_EC_MERCHANT_PRIVATE_DELETE_ORDERS_AWAITING_PAYMENT,
3562 : .hint =
3563 : "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.",
3564 : .http_code = MHD_HTTP_CONFLICT
3565 : },
3566 :
3567 : {
3568 : /* 2521 */
3569 : .ec = TALER_EC_MERCHANT_PRIVATE_DELETE_ORDERS_ALREADY_PAID,
3570 : .hint =
3571 : "The order provided to the backend could not be deleted as the order was already paid.",
3572 : .http_code = MHD_HTTP_CONFLICT
3573 : },
3574 :
3575 : {
3576 : /* 2525 */
3577 : .ec =
3578 : TALER_EC_MERCHANT_PRIVATE_GET_STATISTICS_REPORT_GRANULARITY_UNAVAILABLE,
3579 : .hint =
3580 : "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.",
3581 : .http_code = MHD_HTTP_GONE
3582 : },
3583 :
3584 : {
3585 : /* 2530 */
3586 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_INCONSISTENT_AMOUNT,
3587 : .hint =
3588 : "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.",
3589 : .http_code = MHD_HTTP_CONFLICT
3590 : },
3591 :
3592 : {
3593 : /* 2531 */
3594 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_ORDER_UNPAID,
3595 : .hint =
3596 : "Only paid orders can be refunded, and the frontend specified an unpaid order to issue a refund for.",
3597 : .http_code = MHD_HTTP_CONFLICT
3598 : },
3599 :
3600 : {
3601 : /* 2532 */
3602 : .ec =
3603 : TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_NOT_ALLOWED_BY_CONTRACT,
3604 : .hint =
3605 : "The refund delay was set to 0 and thus no refunds are ever allowed for this order.",
3606 : .http_code = MHD_HTTP_FORBIDDEN
3607 : },
3608 :
3609 : {
3610 : /* 2533 */
3611 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_TOKEN_FAMILY_SLUG_UNKNOWN,
3612 : .hint =
3613 : "The token family slug provided in this order could not be found in the merchant database.",
3614 : .http_code = MHD_HTTP_NOT_FOUND
3615 : },
3616 :
3617 : {
3618 : /* 2534 */
3619 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_TOKEN_FAMILY_NOT_VALID,
3620 : .hint =
3621 : "A token family referenced in this order is either expired or not valid yet.",
3622 : .http_code = MHD_HTTP_CONFLICT
3623 : },
3624 :
3625 : {
3626 : /* 2535 */
3627 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ID_COLLECT_NOT_FREE,
3628 : .hint =
3629 : "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.",
3630 : .http_code = MHD_HTTP_CONFLICT
3631 : },
3632 :
3633 : {
3634 : /* 2536 */
3635 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ID_COLLECT_ALREADY_CLAIMED,
3636 : .hint =
3637 : "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.",
3638 : .http_code = MHD_HTTP_CONFLICT
3639 : },
3640 :
3641 : {
3642 : /* 2537 */
3643 : .ec = TALER_EC_MERCHANT_PRIVATE_DELETE_ORDERS_EXTERNALLY_PAID,
3644 : .hint =
3645 : "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.",
3646 : .http_code = MHD_HTTP_CONFLICT
3647 : },
3648 :
3649 : {
3650 : /* 2538 */
3651 : .ec =
3652 : TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_EXTERNAL_INCONSISTENT_AMOUNT,
3653 : .hint =
3654 : "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.",
3655 : .http_code = MHD_HTTP_CONFLICT
3656 : },
3657 :
3658 : {
3659 : /* 2539 */
3660 : .ec =
3661 : TALER_EC_MERCHANT_PRIVATE_POST_ORDERS_ID_REFUND_EXTERNAL_ALREADY_EXISTS,
3662 : .hint =
3663 : "An external refund with the same identifier was already recorded for this order, but with different details.",
3664 : .http_code = MHD_HTTP_CONFLICT
3665 : },
3666 :
3667 : {
3668 : /* 2550 */
3669 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_EXCHANGE_UNKNOWN,
3670 : .hint = "The exchange says it does not know this transfer.",
3671 : .http_code = MHD_HTTP_BAD_GATEWAY
3672 : },
3673 :
3674 : {
3675 : /* 2551 */
3676 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_REQUEST_ERROR,
3677 : .hint =
3678 : "The backend failed to execute the `/track/transfer` request internally.",
3679 : .http_code = MHD_HTTP_BAD_GATEWAY
3680 : },
3681 :
3682 : {
3683 : /* 2552 */
3684 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_TRANSFERS,
3685 : .hint =
3686 : "The amount transferred differs between what was submitted and what the exchange claimed.",
3687 : .http_code = MHD_HTTP_CONFLICT
3688 : },
3689 :
3690 : {
3691 : /* 2553 */
3692 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_REPORTS,
3693 : .hint =
3694 : "The exchange gave conflicting information about a coin which has been wire transferred.",
3695 : .http_code = MHD_HTTP_CONFLICT
3696 : },
3697 :
3698 : {
3699 : /* 2554 */
3700 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_BAD_WIRE_FEE,
3701 : .hint =
3702 : "The exchange charged a different wire fee than what it originally advertised, and it is higher.",
3703 : .http_code = MHD_HTTP_BAD_GATEWAY
3704 : },
3705 :
3706 : {
3707 : /* 2555 */
3708 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_ACCOUNT_NOT_FOUND,
3709 : .hint =
3710 : "The backend did not find the account to which the transfer was made.",
3711 : .http_code = MHD_HTTP_NOT_FOUND
3712 : },
3713 :
3714 : {
3715 : /* 2556 */
3716 : .ec = TALER_EC_MERCHANT_PRIVATE_DELETE_TRANSFERS_ALREADY_CONFIRMED,
3717 : .hint =
3718 : "The backend could not delete the transfer because the exchange already responded to the inquiry and the result was integrated.",
3719 : .http_code = MHD_HTTP_CONFLICT
3720 : },
3721 :
3722 : {
3723 : /* 2557 */
3724 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_SUBMISSION,
3725 : .hint =
3726 : "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.",
3727 : .http_code = MHD_HTTP_CONFLICT
3728 : },
3729 :
3730 : {
3731 : /* 2558 */
3732 : .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_TARGET_ACCOUNT_UNKNOWN,
3733 : .hint =
3734 : "The target bank account given by the exchange is not (or no longer) known at the merchant instance.",
3735 : .http_code = MHD_HTTP_UNINITIALIZED
3736 : },
3737 :
3738 : {
3739 : /* 2563 */
3740 : .ec = TALER_EC_MERCHANT_EXCHANGE_TRANSFERS_CONFLICTING_TRANSFERS,
3741 : .hint =
3742 : "The amount transferred differs between what was submitted and what the exchange claimed.",
3743 : .http_code = MHD_HTTP_UNINITIALIZED
3744 : },
3745 :
3746 : {
3747 : /* 2570 */
3748 : .ec = TALER_EC_MERCHANT_REPORT_GENERATOR_FAILED,
3749 : .hint =
3750 : "The report ID provided to the backend is not known to the backend.",
3751 : .http_code = MHD_HTTP_NOT_IMPLEMENTED
3752 : },
3753 :
3754 : {
3755 : /* 2571 */
3756 : .ec = TALER_EC_MERCHANT_REPORT_FETCH_FAILED,
3757 : .hint = "Failed to fetch the data for the report from the backend.",
3758 : .http_code = MHD_HTTP_BAD_GATEWAY
3759 : },
3760 :
3761 : {
3762 : /* 2600 */
3763 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_INSTANCES_ALREADY_EXISTS,
3764 : .hint =
3765 : "The merchant backend cannot create an instance under the given identifier as one already exists. Use PATCH to modify the existing entry.",
3766 : .http_code = MHD_HTTP_CONFLICT
3767 : },
3768 :
3769 : {
3770 : /* 2601 */
3771 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_INSTANCES_BAD_AUTH,
3772 : .hint =
3773 : "The merchant backend cannot create an instance because the authentication configuration field is malformed.",
3774 : .http_code = MHD_HTTP_BAD_REQUEST
3775 : },
3776 :
3777 : {
3778 : /* 2602 */
3779 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_INSTANCE_AUTH_BAD_AUTH,
3780 : .hint =
3781 : "The merchant backend cannot update an instance's authentication settings because the provided authentication settings are malformed.",
3782 : .http_code = MHD_HTTP_BAD_REQUEST
3783 : },
3784 :
3785 : {
3786 : /* 2603 */
3787 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_INSTANCES_PURGE_REQUIRED,
3788 : .hint =
3789 : "The merchant backend cannot create an instance under the given identifier, the previous one was deleted but must be purged first.",
3790 : .http_code = MHD_HTTP_CONFLICT
3791 : },
3792 :
3793 : {
3794 : /* 2604 */
3795 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_INSTANCE_AUTH_BAD_OLD_PASSWORD,
3796 : .hint =
3797 : "The merchant backend cannot update an instance's authentication settings because the required current password was missing or did not match.",
3798 : .http_code = MHD_HTTP_UNAUTHORIZED
3799 : },
3800 :
3801 : {
3802 : /* 2625 */
3803 : .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_INSTANCES_PURGE_REQUIRED,
3804 : .hint =
3805 : "The merchant backend cannot update an instance under the given identifier, the previous one was deleted but must be purged first.",
3806 : .http_code = MHD_HTTP_CONFLICT
3807 : },
3808 :
3809 : {
3810 : /* 2626 */
3811 : .ec = TALER_EC_MERCHANT_PRIVATE_ACCOUNT_DELETE_UNKNOWN_ACCOUNT,
3812 : .hint =
3813 : "The bank account referenced in the requested operation was not found.",
3814 : .http_code = MHD_HTTP_NOT_FOUND
3815 : },
3816 :
3817 : {
3818 : /* 2627 */
3819 : .ec = TALER_EC_MERCHANT_PRIVATE_ACCOUNT_EXISTS,
3820 : .hint =
3821 : "The bank account specified in the request already exists at the merchant.",
3822 : .http_code = MHD_HTTP_CONFLICT
3823 : },
3824 :
3825 : {
3826 : /* 2628 */
3827 : .ec = TALER_EC_MERCHANT_PRIVATE_ACCOUNT_NOT_ELIGIBLE_FOR_EXCHANGE,
3828 : .hint =
3829 : "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.",
3830 : .http_code = MHD_HTTP_CONFLICT
3831 : },
3832 :
3833 : {
3834 : /* 2650 */
3835 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_PRODUCTS_CONFLICT_PRODUCT_EXISTS,
3836 : .hint = "The product ID exists.",
3837 : .http_code = MHD_HTTP_CONFLICT
3838 : },
3839 :
3840 : {
3841 : /* 2651 */
3842 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_CATEGORIES_CONFLICT_CATEGORY_EXISTS,
3843 : .hint = "A category with the same name exists already.",
3844 : .http_code = MHD_HTTP_CONFLICT
3845 : },
3846 :
3847 : {
3848 : /* 2660 */
3849 : .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_LOST_REDUCED,
3850 : .hint =
3851 : "The update would have reduced the total amount of product lost, which is not allowed.",
3852 : .http_code = MHD_HTTP_CONFLICT
3853 : },
3854 :
3855 : {
3856 : /* 2661 */
3857 : .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_LOST_EXCEEDS_STOCKS,
3858 : .hint =
3859 : "The update would have mean that more stocks were lost than what remains from total inventory after sales, which is not allowed.",
3860 : .http_code = MHD_HTTP_BAD_REQUEST
3861 : },
3862 :
3863 : {
3864 : /* 2662 */
3865 : .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_STOCKED_REDUCED,
3866 : .hint =
3867 : "The update would have reduced the total amount of product in stock, which is not allowed.",
3868 : .http_code = MHD_HTTP_CONFLICT
3869 : },
3870 :
3871 : {
3872 : /* 2663 */
3873 : .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_SOLD_REDUCED,
3874 : .hint =
3875 : "The update would have reduced the total amount of product sold, which is not allowed.",
3876 : .http_code = MHD_HTTP_CONFLICT
3877 : },
3878 :
3879 : {
3880 : /* 2670 */
3881 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_PRODUCTS_LOCK_INSUFFICIENT_STOCKS,
3882 : .hint =
3883 : "The lock request is for more products than we have left (unlocked) in stock.",
3884 : .http_code = MHD_HTTP_GONE
3885 : },
3886 :
3887 : {
3888 : /* 2680 */
3889 : .ec = TALER_EC_MERCHANT_PRIVATE_DELETE_PRODUCTS_CONFLICTING_LOCK,
3890 : .hint =
3891 : "The deletion request is for a locked product. The product cannot be deleted until the existing offer expires.",
3892 : .http_code = MHD_HTTP_CONFLICT
3893 : },
3894 :
3895 : {
3896 : /* 2690 */
3897 : .ec = TALER_EC_MERCHANT_PRIVATE_PRODUCT_GROUP_CONFLICTING_NAME,
3898 : .hint =
3899 : "The proposed name for the product group is already in use. The client should select a different name.",
3900 : .http_code = MHD_HTTP_CONFLICT
3901 : },
3902 :
3903 : {
3904 : /* 2691 */
3905 : .ec = TALER_EC_MERCHANT_PRIVATE_MONEY_POT_CONFLICTING_NAME,
3906 : .hint =
3907 : "The proposed name for the money pot is already in use. The client should select a different name.",
3908 : .http_code = MHD_HTTP_CONFLICT
3909 : },
3910 :
3911 : {
3912 : /* 2692 */
3913 : .ec = TALER_EC_MERCHANT_PRIVATE_MONEY_POT_CONFLICTING_TOTAL,
3914 : .hint =
3915 : "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.",
3916 : .http_code = MHD_HTTP_CONFLICT
3917 : },
3918 :
3919 : {
3920 : /* 2700 */
3921 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_RESERVES_UNSUPPORTED_WIRE_METHOD,
3922 : .hint = "The requested wire method is not supported by the exchange.",
3923 : .http_code = MHD_HTTP_CONFLICT
3924 : },
3925 :
3926 : {
3927 : /* 2701 */
3928 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_RESERVES_REWARDS_NOT_ALLOWED,
3929 : .hint = "The requested exchange does not allow rewards.",
3930 : .http_code = MHD_HTTP_CONFLICT
3931 : },
3932 :
3933 : {
3934 : /* 2710 */
3935 : .ec = TALER_EC_MERCHANT_PRIVATE_DELETE_RESERVES_NO_SUCH_RESERVE,
3936 : .hint = "The reserve could not be deleted because it is unknown.",
3937 : .http_code = MHD_HTTP_NOT_FOUND
3938 : },
3939 :
3940 : {
3941 : /* 2750 */
3942 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_RESERVE_EXPIRED,
3943 : .hint = "The reserve that was used to fund the rewards has expired.",
3944 : .http_code = MHD_HTTP_GONE
3945 : },
3946 :
3947 : {
3948 : /* 2751 */
3949 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_RESERVE_UNKNOWN,
3950 : .hint =
3951 : "The reserve that was used to fund the rewards was not found in the DB.",
3952 : .http_code = MHD_HTTP_SERVICE_UNAVAILABLE
3953 : },
3954 :
3955 : {
3956 : /* 2752 */
3957 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_INSUFFICIENT_FUNDS,
3958 : .hint =
3959 : "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.",
3960 : .http_code = MHD_HTTP_UNINITIALIZED
3961 : },
3962 :
3963 : {
3964 : /* 2753 */
3965 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_REWARD_AUTHORIZE_RESERVE_NOT_FOUND,
3966 : .hint =
3967 : "The backend failed to find a reserve needed to authorize the reward.",
3968 : .http_code = MHD_HTTP_SERVICE_UNAVAILABLE
3969 : },
3970 :
3971 : {
3972 : /* 2800 */
3973 : .ec = TALER_EC_MERCHANT_PRIVATE_GET_ORDERS_ID_AMOUNT_ARITHMETIC_FAILURE,
3974 : .hint =
3975 : "The merchant backend encountered a failure in computing the deposit total.",
3976 : .http_code = MHD_HTTP_OK
3977 : },
3978 :
3979 : {
3980 : /* 2850 */
3981 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_TEMPLATES_CONFLICT_TEMPLATE_EXISTS,
3982 : .hint = "The template ID already exists.",
3983 : .http_code = MHD_HTTP_CONFLICT
3984 : },
3985 :
3986 : {
3987 : /* 2851 */
3988 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_OTP_DEVICES_CONFLICT_OTP_DEVICE_EXISTS,
3989 : .hint = "The OTP device ID already exists.",
3990 : .http_code = MHD_HTTP_CONFLICT
3991 : },
3992 :
3993 : {
3994 : /* 2852 */
3995 : .ec = TALER_EC_MERCHANT_PRIVATE_PATCH_OTP_DEVICES_CONFLICT,
3996 : .hint =
3997 : "The OTP device algorithm cannot be changed, or the device was concurrently replaced or changed during the update.",
3998 : .http_code = MHD_HTTP_CONFLICT
3999 : },
4000 :
4001 : {
4002 : /* 2860 */
4003 : .ec =
4004 : TALER_EC_MERCHANT_POST_USING_TEMPLATES_AMOUNT_CONFLICT_TEMPLATES_CONTRACT_AMOUNT,
4005 : .hint =
4006 : "Amount given in the using template and in the template contract. There is a conflict.",
4007 : .http_code = MHD_HTTP_CONFLICT
4008 : },
4009 :
4010 : {
4011 : /* 2861 */
4012 : .ec =
4013 : TALER_EC_MERCHANT_POST_USING_TEMPLATES_SUMMARY_CONFLICT_TEMPLATES_CONTRACT_SUBJECT,
4014 : .hint =
4015 : "Subject given in the using template and in the template contract. There is a conflict.",
4016 : .http_code = MHD_HTTP_CONFLICT
4017 : },
4018 :
4019 : {
4020 : /* 2862 */
4021 : .ec = TALER_EC_MERCHANT_POST_USING_TEMPLATES_NO_AMOUNT,
4022 : .hint =
4023 : "Amount not given in the using template and in the template contract. There is a conflict.",
4024 : .http_code = MHD_HTTP_CONFLICT
4025 : },
4026 :
4027 : {
4028 : /* 2863 */
4029 : .ec = TALER_EC_MERCHANT_POST_USING_TEMPLATES_NO_SUMMARY,
4030 : .hint =
4031 : "Subject not given in the using template and in the template contract. There is a conflict.",
4032 : .http_code = MHD_HTTP_CONFLICT
4033 : },
4034 :
4035 : {
4036 : /* 2864 */
4037 : .ec = TALER_EC_MERCHANT_POST_USING_TEMPLATES_WRONG_TYPE,
4038 : .hint =
4039 : "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.",
4040 : .http_code = MHD_HTTP_CONFLICT
4041 : },
4042 :
4043 : {
4044 : /* 2865 */
4045 : .ec = TALER_EC_MERCHANT_POST_USING_TEMPLATES_WRONG_PRODUCT,
4046 : .hint =
4047 : "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.",
4048 : .http_code = MHD_HTTP_CONFLICT
4049 : },
4050 :
4051 : {
4052 : /* 2866 */
4053 : .ec = TALER_EC_MERCHANT_POST_USING_TEMPLATES_NO_CURRENCY,
4054 : .hint =
4055 : "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.",
4056 : .http_code = MHD_HTTP_CONFLICT
4057 : },
4058 :
4059 : {
4060 : /* 2900 */
4061 : .ec = TALER_EC_MERCHANT_PRIVATE_POST_WEBHOOKS_CONFLICT_WEBHOOK_EXISTS,
4062 : .hint = "The webhook ID elready exists.",
4063 : .http_code = MHD_HTTP_CONFLICT
4064 : },
4065 :
4066 : {
4067 : /* 2910 */
4068 : .ec =
4069 : TALER_EC_MERCHANT_PRIVATE_POST_PENDING_WEBHOOKS_CONFLICT_PENDING_WEBHOOK_EXISTS,
4070 : .hint = "The webhook serial elready exists.",
4071 : .http_code = MHD_HTTP_CONFLICT
4072 : },
4073 :
4074 : {
4075 : /* 2950 */
4076 : .ec = TALER_EC_MERCHANT_POST_FOUNTAIN_WITHDRAW_GRANT_UNKNOWN,
4077 : .hint =
4078 : "A withdrawal entry refers to a token family without a matching grant in the fountain.",
4079 : .http_code = MHD_HTTP_CONFLICT
4080 : },
4081 :
4082 : {
4083 : /* 2951 */
4084 : .ec = TALER_EC_MERCHANT_POST_FOUNTAIN_WITHDRAW_SLOT_OUTSIDE_WINDOW,
4085 : .hint =
4086 : "The desired token validity time selects an issue key slot outside of the grant's key window.",
4087 : .http_code = MHD_HTTP_CONFLICT
4088 : },
4089 :
4090 : {
4091 : /* 2952 */
4092 : .ec = TALER_EC_MERCHANT_POST_FOUNTAIN_WITHDRAW_LIMIT_EXCEEDED,
4093 : .hint =
4094 : "The grant's per-period withdrawal limit is exhausted for the requested issue key slot.",
4095 : .http_code = MHD_HTTP_TOO_MANY_REQUESTS
4096 : },
4097 :
4098 : {
4099 : /* 3001 */
4100 : .ec = TALER_EC_AUDITOR_GENERIC_UNAUTHORIZED,
4101 : .hint =
4102 : "The auditor refused the connection due to a lack of authorization.",
4103 : .http_code = MHD_HTTP_UNAUTHORIZED
4104 : },
4105 :
4106 : {
4107 : /* 3002 */
4108 : .ec = TALER_EC_AUDITOR_GENERIC_METHOD_NOT_ALLOWED,
4109 : .hint = "This method is not allowed here.",
4110 : .http_code = MHD_HTTP_METHOD_NOT_ALLOWED
4111 : },
4112 :
4113 : {
4114 : /* 3100 */
4115 : .ec = TALER_EC_AUDITOR_DEPOSIT_CONFIRMATION_SIGNATURE_INVALID,
4116 : .hint =
4117 : "The signature from the exchange on the deposit confirmation is invalid.",
4118 : .http_code = MHD_HTTP_FORBIDDEN
4119 : },
4120 :
4121 : {
4122 : /* 3101 */
4123 : .ec = TALER_EC_AUDITOR_EXCHANGE_SIGNING_KEY_REVOKED,
4124 : .hint =
4125 : "The exchange key used for the signature on the deposit confirmation was revoked.",
4126 : .http_code = MHD_HTTP_GONE
4127 : },
4128 :
4129 : {
4130 : /* 3102 */
4131 : .ec = TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
4132 : .hint = "The requested resource could not be found.",
4133 : .http_code = MHD_HTTP_NOT_FOUND
4134 : },
4135 :
4136 : {
4137 : /* 3103 */
4138 : .ec = TALER_EC_AUDITOR_URI_MISSING_PATH_COMPONENT,
4139 : .hint = "The URI is missing a path component.",
4140 : .http_code = MHD_HTTP_BAD_REQUEST
4141 : },
4142 :
4143 : {
4144 : /* 5101 */
4145 : .ec = TALER_EC_BANK_SAME_ACCOUNT,
4146 : .hint =
4147 : "Wire transfer attempted with credit and debit party being the same bank account.",
4148 : .http_code = MHD_HTTP_BAD_REQUEST
4149 : },
4150 :
4151 : {
4152 : /* 5102 */
4153 : .ec = TALER_EC_BANK_UNALLOWED_DEBIT,
4154 : .hint =
4155 : "Wire transfer impossible, due to financial limitation of the party that attempted the payment.",
4156 : .http_code = MHD_HTTP_CONFLICT
4157 : },
4158 :
4159 : {
4160 : /* 5103 */
4161 : .ec = TALER_EC_BANK_NEGATIVE_NUMBER_AMOUNT,
4162 : .hint =
4163 : "Negative numbers are not allowed (as value and/or fraction) to instantiate an amount object.",
4164 : .http_code = MHD_HTTP_BAD_REQUEST
4165 : },
4166 :
4167 : {
4168 : /* 5104 */
4169 : .ec = TALER_EC_BANK_NUMBER_TOO_BIG,
4170 : .hint =
4171 : "A too big number was used (as value and/or fraction) to instantiate an amount object.",
4172 : .http_code = MHD_HTTP_BAD_REQUEST
4173 : },
4174 :
4175 : {
4176 : /* 5106 */
4177 : .ec = TALER_EC_BANK_UNKNOWN_ACCOUNT,
4178 : .hint =
4179 : "The bank account referenced in the requested operation was not found.",
4180 : .http_code = MHD_HTTP_NOT_FOUND
4181 : },
4182 :
4183 : {
4184 : /* 5107 */
4185 : .ec = TALER_EC_BANK_TRANSACTION_NOT_FOUND,
4186 : .hint =
4187 : "The transaction referenced in the requested operation (typically a reject operation), was not found.",
4188 : .http_code = MHD_HTTP_NOT_FOUND
4189 : },
4190 :
4191 : {
4192 : /* 5108 */
4193 : .ec = TALER_EC_BANK_BAD_FORMAT_AMOUNT,
4194 : .hint = "Bank received a malformed amount string.",
4195 : .http_code = MHD_HTTP_BAD_REQUEST
4196 : },
4197 :
4198 : {
4199 : /* 5109 */
4200 : .ec = TALER_EC_BANK_REJECT_NO_RIGHTS,
4201 : .hint =
4202 : "The client does not own the account credited by the transaction which is to be rejected, so it has no rights do reject it.",
4203 : .http_code = MHD_HTTP_FORBIDDEN
4204 : },
4205 :
4206 : {
4207 : /* 5110 */
4208 : .ec = TALER_EC_BANK_UNMANAGED_EXCEPTION,
4209 : .hint =
4210 : "This error code is returned when no known exception types captured the exception.",
4211 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
4212 : },
4213 :
4214 : {
4215 : /* 5111 */
4216 : .ec = TALER_EC_BANK_SOFT_EXCEPTION,
4217 : .hint =
4218 : "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.",
4219 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
4220 : },
4221 :
4222 : {
4223 : /* 5112 */
4224 : .ec = TALER_EC_BANK_TRANSFER_REQUEST_UID_REUSED,
4225 : .hint =
4226 : "The request UID for a request to transfer funds has already been used, but with different details for the transfer.",
4227 : .http_code = MHD_HTTP_CONFLICT
4228 : },
4229 :
4230 : {
4231 : /* 5113 */
4232 : .ec = TALER_EC_BANK_WITHDRAWAL_OPERATION_RESERVE_SELECTION_CONFLICT,
4233 : .hint =
4234 : "The withdrawal operation already has a reserve selected. The current request conflicts with the existing selection.",
4235 : .http_code = MHD_HTTP_CONFLICT
4236 : },
4237 :
4238 : {
4239 : /* 5114 */
4240 : .ec = TALER_EC_BANK_DUPLICATE_RESERVE_PUB_SUBJECT,
4241 : .hint =
4242 : "The wire transfer subject duplicates an existing reserve public key. But wire transfer subjects must be unique.",
4243 : .http_code = MHD_HTTP_CONFLICT
4244 : },
4245 :
4246 : {
4247 : /* 5115 */
4248 : .ec = TALER_EC_BANK_ANCIENT_TRANSACTION_GONE,
4249 : .hint =
4250 : "The client requested a transaction that is so far in the past, that it has been forgotten by the bank.",
4251 : .http_code = MHD_HTTP_GONE
4252 : },
4253 :
4254 : {
4255 : /* 5116 */
4256 : .ec = TALER_EC_BANK_ABORT_CONFIRM_CONFLICT,
4257 : .hint =
4258 : "The client attempted to abort a transaction that was already confirmed.",
4259 : .http_code = MHD_HTTP_CONFLICT
4260 : },
4261 :
4262 : {
4263 : /* 5117 */
4264 : .ec = TALER_EC_BANK_CONFIRM_ABORT_CONFLICT,
4265 : .hint =
4266 : "The client attempted to confirm a transaction that was already aborted.",
4267 : .http_code = MHD_HTTP_CONFLICT
4268 : },
4269 :
4270 : {
4271 : /* 5118 */
4272 : .ec = TALER_EC_BANK_REGISTER_CONFLICT,
4273 : .hint = "The client attempted to register an account with the same name.",
4274 : .http_code = MHD_HTTP_CONFLICT
4275 : },
4276 :
4277 : {
4278 : /* 5119 */
4279 : .ec = TALER_EC_BANK_POST_WITHDRAWAL_OPERATION_REQUIRED,
4280 : .hint =
4281 : "The client attempted to confirm a withdrawal operation before the wallet posted the required details.",
4282 : .http_code = MHD_HTTP_BAD_REQUEST
4283 : },
4284 :
4285 : {
4286 : /* 5120 */
4287 : .ec = TALER_EC_BANK_RESERVED_USERNAME_CONFLICT,
4288 : .hint =
4289 : "The client tried to register a new account under a reserved username (like 'admin' for example).",
4290 : .http_code = MHD_HTTP_CONFLICT
4291 : },
4292 :
4293 : {
4294 : /* 5121 */
4295 : .ec = TALER_EC_BANK_REGISTER_USERNAME_REUSE,
4296 : .hint =
4297 : "The client tried to register a new account with an username already in use.",
4298 : .http_code = MHD_HTTP_CONFLICT
4299 : },
4300 :
4301 : {
4302 : /* 5122 */
4303 : .ec = TALER_EC_BANK_REGISTER_PAYTO_URI_REUSE,
4304 : .hint =
4305 : "The client tried to register a new account with a payto:// URI already in use.",
4306 : .http_code = MHD_HTTP_CONFLICT
4307 : },
4308 :
4309 : {
4310 : /* 5123 */
4311 : .ec = TALER_EC_BANK_ACCOUNT_BALANCE_NOT_ZERO,
4312 : .hint = "The client tried to delete an account with a non null balance.",
4313 : .http_code = MHD_HTTP_CONFLICT
4314 : },
4315 :
4316 : {
4317 : /* 5124 */
4318 : .ec = TALER_EC_BANK_UNKNOWN_CREDITOR,
4319 : .hint =
4320 : "The client tried to create a transaction or an operation that credit an unknown account.",
4321 : .http_code = MHD_HTTP_CONFLICT
4322 : },
4323 :
4324 : {
4325 : /* 5125 */
4326 : .ec = TALER_EC_BANK_UNKNOWN_DEBTOR,
4327 : .hint =
4328 : "The client tried to create a transaction or an operation that debit an unknown account.",
4329 : .http_code = MHD_HTTP_CONFLICT
4330 : },
4331 :
4332 : {
4333 : /* 5126 */
4334 : .ec = TALER_EC_BANK_ACCOUNT_IS_EXCHANGE,
4335 : .hint =
4336 : "The client tried to perform an action prohibited for exchange accounts.",
4337 : .http_code = MHD_HTTP_CONFLICT
4338 : },
4339 :
4340 : {
4341 : /* 5127 */
4342 : .ec = TALER_EC_BANK_ACCOUNT_IS_NOT_EXCHANGE,
4343 : .hint =
4344 : "The client tried to perform an action reserved for exchange accounts.",
4345 : .http_code = MHD_HTTP_CONFLICT
4346 : },
4347 :
4348 : {
4349 : /* 5128 */
4350 : .ec = TALER_EC_BANK_BAD_CONVERSION,
4351 : .hint = "Received currency conversion is wrong.",
4352 : .http_code = MHD_HTTP_CONFLICT
4353 : },
4354 :
4355 : {
4356 : /* 5129 */
4357 : .ec = TALER_EC_BANK_MISSING_TAN_INFO,
4358 : .hint =
4359 : "The account referenced in this operation is missing tan info for the chosen channel.",
4360 : .http_code = MHD_HTTP_CONFLICT
4361 : },
4362 :
4363 : {
4364 : /* 5130 */
4365 : .ec = TALER_EC_BANK_CONFIRM_INCOMPLETE,
4366 : .hint =
4367 : "The client attempted to confirm a transaction with incomplete info.",
4368 : .http_code = MHD_HTTP_CONFLICT
4369 : },
4370 :
4371 : {
4372 : /* 5131 */
4373 : .ec = TALER_EC_BANK_TAN_RATE_LIMITED,
4374 : .hint =
4375 : "The request rate is too high. The server is refusing requests to guard against brute-force attacks.",
4376 : .http_code = MHD_HTTP_TOO_MANY_REQUESTS
4377 : },
4378 :
4379 : {
4380 : /* 5132 */
4381 : .ec = TALER_EC_BANK_TAN_CHANNEL_NOT_SUPPORTED,
4382 : .hint = "This TAN channel is not supported.",
4383 : .http_code = MHD_HTTP_NOT_IMPLEMENTED
4384 : },
4385 :
4386 : {
4387 : /* 5133 */
4388 : .ec = TALER_EC_BANK_TAN_CHANNEL_SCRIPT_FAILED,
4389 : .hint =
4390 : "Failed to send TAN using the helper script. Either script is not found, or script timeout, or script terminated with a non-successful result.",
4391 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
4392 : },
4393 :
4394 : {
4395 : /* 5134 */
4396 : .ec = TALER_EC_BANK_TAN_CHALLENGE_FAILED,
4397 : .hint = "The client's response to the challenge was invalid.",
4398 : .http_code = MHD_HTTP_FORBIDDEN
4399 : },
4400 :
4401 : {
4402 : /* 5135 */
4403 : .ec = TALER_EC_BANK_NON_ADMIN_PATCH_LEGAL_NAME,
4404 : .hint = "A non-admin user has tried to change their legal name.",
4405 : .http_code = MHD_HTTP_CONFLICT
4406 : },
4407 :
4408 : {
4409 : /* 5136 */
4410 : .ec = TALER_EC_BANK_NON_ADMIN_PATCH_DEBT_LIMIT,
4411 : .hint = "A non-admin user has tried to change their debt limit.",
4412 : .http_code = MHD_HTTP_CONFLICT
4413 : },
4414 :
4415 : {
4416 : /* 5137 */
4417 : .ec = TALER_EC_BANK_NON_ADMIN_PATCH_MISSING_OLD_PASSWORD,
4418 : .hint =
4419 : "A non-admin user tried to change their password without providing the current password.",
4420 : .http_code = MHD_HTTP_CONFLICT
4421 : },
4422 :
4423 : {
4424 : /* 5138 */
4425 : .ec = TALER_EC_BANK_PATCH_BAD_OLD_PASSWORD,
4426 : .hint = "Provided old password does not match current password.",
4427 : .http_code = MHD_HTTP_CONFLICT
4428 : },
4429 :
4430 : {
4431 : /* 5139 */
4432 : .ec = TALER_EC_BANK_PATCH_ADMIN_EXCHANGE,
4433 : .hint = "An admin user has tried to become an exchange.",
4434 : .http_code = MHD_HTTP_CONFLICT
4435 : },
4436 :
4437 : {
4438 : /* 5140 */
4439 : .ec = TALER_EC_BANK_NON_ADMIN_PATCH_CASHOUT,
4440 : .hint = "A non-admin user has tried to change their cashout account.",
4441 : .http_code = MHD_HTTP_CONFLICT
4442 : },
4443 :
4444 : {
4445 : /* 5141 */
4446 : .ec = TALER_EC_BANK_NON_ADMIN_PATCH_CONTACT,
4447 : .hint = "A non-admin user has tried to change their contact info.",
4448 : .http_code = MHD_HTTP_CONFLICT
4449 : },
4450 :
4451 : {
4452 : /* 5142 */
4453 : .ec = TALER_EC_BANK_ADMIN_CREDITOR,
4454 : .hint =
4455 : "The client tried to create a transaction that credits the administrator's account.",
4456 : .http_code = MHD_HTTP_CONFLICT
4457 : },
4458 :
4459 : {
4460 : /* 5143 */
4461 : .ec = TALER_EC_BANK_CHALLENGE_NOT_FOUND,
4462 : .hint = "The referenced challenge was not found.",
4463 : .http_code = MHD_HTTP_NOT_FOUND
4464 : },
4465 :
4466 : {
4467 : /* 5144 */
4468 : .ec = TALER_EC_BANK_TAN_CHALLENGE_EXPIRED,
4469 : .hint = "The referenced challenge has expired.",
4470 : .http_code = MHD_HTTP_CONFLICT
4471 : },
4472 :
4473 : {
4474 : /* 5145 */
4475 : .ec = TALER_EC_BANK_NON_ADMIN_SET_TAN_CHANNEL,
4476 : .hint = "A non-admin user has tried to create an account with 2fa.",
4477 : .http_code = MHD_HTTP_CONFLICT
4478 : },
4479 :
4480 : {
4481 : /* 5146 */
4482 : .ec = TALER_EC_BANK_NON_ADMIN_SET_MIN_CASHOUT,
4483 : .hint = "A non-admin user has tried to set their minimum cashout amount.",
4484 : .http_code = MHD_HTTP_CONFLICT
4485 : },
4486 :
4487 : {
4488 : /* 5147 */
4489 : .ec = TALER_EC_BANK_CONVERSION_AMOUNT_TO_SMALL,
4490 : .hint =
4491 : "The amount of the currency conversion is less than the minimum allowed.",
4492 : .http_code = MHD_HTTP_CONFLICT
4493 : },
4494 :
4495 : {
4496 : /* 5148 */
4497 : .ec = TALER_EC_BANK_AMOUNT_DIFFERS,
4498 : .hint = "Specified amount will not work for this withdrawal.",
4499 : .http_code = MHD_HTTP_CONFLICT
4500 : },
4501 :
4502 : {
4503 : /* 5149 */
4504 : .ec = TALER_EC_BANK_AMOUNT_REQUIRED,
4505 : .hint = "The backend requires an amount to be specified.",
4506 : .http_code = MHD_HTTP_CONFLICT
4507 : },
4508 :
4509 : {
4510 : /* 5150 */
4511 : .ec = TALER_EC_BANK_PASSWORD_TOO_SHORT,
4512 : .hint = "Provided password is too short.",
4513 : .http_code = MHD_HTTP_CONFLICT
4514 : },
4515 :
4516 : {
4517 : /* 5151 */
4518 : .ec = TALER_EC_BANK_PASSWORD_TOO_LONG,
4519 : .hint = "Provided password is too long.",
4520 : .http_code = MHD_HTTP_CONFLICT
4521 : },
4522 :
4523 : {
4524 : /* 5152 */
4525 : .ec = TALER_EC_BANK_ACCOUNT_LOCKED,
4526 : .hint =
4527 : "The bank account is locked, and the user cannot authenticate with their password.",
4528 : .http_code = MHD_HTTP_FORBIDDEN
4529 : },
4530 :
4531 : {
4532 : /* 5153 */
4533 : .ec = TALER_EC_BANK_UPDATE_ABORT_CONFLICT,
4534 : .hint =
4535 : "The client attempted to update the details of a transaction that was already aborted.",
4536 : .http_code = MHD_HTTP_CONFLICT
4537 : },
4538 :
4539 : {
4540 : /* 5154 */
4541 : .ec = TALER_EC_BANK_TRANSFER_WTID_REUSED,
4542 : .hint =
4543 : "The wtid for a request to transfer funds has already been used, but with a different request unpaid.",
4544 : .http_code = MHD_HTTP_CONFLICT
4545 : },
4546 :
4547 : {
4548 : /* 5155 */
4549 : .ec = TALER_EC_BANK_NON_ADMIN_SET_CONVERSION_RATE_CLASS,
4550 : .hint = "A non-admin user tried to set their conversion rate class.",
4551 : .http_code = MHD_HTTP_CONFLICT
4552 : },
4553 :
4554 : {
4555 : /* 5156 */
4556 : .ec = TALER_EC_BANK_CONVERSION_RATE_CLASS_UNKNOWN,
4557 : .hint = "The referenced conversion rate class was not found.",
4558 : .http_code = MHD_HTTP_CONFLICT
4559 : },
4560 :
4561 : {
4562 : /* 5157 */
4563 : .ec = TALER_EC_BANK_NAME_REUSE,
4564 : .hint = "The client tried to use an already taken name.",
4565 : .http_code = MHD_HTTP_CONFLICT
4566 : },
4567 :
4568 : {
4569 : /* 5158 */
4570 : .ec = TALER_EC_BANK_UNSUPPORTED_SUBJECT_FORMAT,
4571 : .hint = "This subject format is not supported.",
4572 : .http_code = MHD_HTTP_CONFLICT
4573 : },
4574 :
4575 : {
4576 : /* 5159 */
4577 : .ec = TALER_EC_BANK_DERIVATION_REUSE,
4578 : .hint = "The derived subject is already used.",
4579 : .http_code = MHD_HTTP_CONFLICT
4580 : },
4581 :
4582 : {
4583 : /* 5160 */
4584 : .ec = TALER_EC_BANK_BAD_SIGNATURE,
4585 : .hint = "The provided signature is invalid.",
4586 : .http_code = MHD_HTTP_FORBIDDEN
4587 : },
4588 :
4589 : {
4590 : /* 5161 */
4591 : .ec = TALER_EC_BANK_OLD_TIMESTAMP,
4592 : .hint = "The provided timestamp is too old.",
4593 : .http_code = MHD_HTTP_CONFLICT
4594 : },
4595 :
4596 : {
4597 : /* 5162 */
4598 : .ec = TALER_EC_BANK_TRANSFER_MAPPING_REUSED,
4599 : .hint =
4600 : "The `authorization_pub` for a request to transfer funds has already been used for another non-recurring transfer.",
4601 : .http_code = MHD_HTTP_CONFLICT
4602 : },
4603 :
4604 : {
4605 : /* 5163 */
4606 : .ec = TALER_EC_BANK_TRANSFER_MAPPING_UNKNOWN,
4607 : .hint =
4608 : "The authorization_pub for a request to transfer funds is not currently registered.",
4609 : .http_code = MHD_HTTP_CONFLICT
4610 : },
4611 :
4612 : {
4613 : /* 6100 */
4614 : .ec = TALER_EC_SYNC_ACCOUNT_UNKNOWN,
4615 : .hint = "The sync service failed to find the account in its database.",
4616 : .http_code = MHD_HTTP_NOT_FOUND
4617 : },
4618 :
4619 : {
4620 : /* 6101 */
4621 : .ec = TALER_EC_SYNC_BAD_IF_NONE_MATCH,
4622 : .hint =
4623 : "The SHA-512 hash provided in the If-None-Match header is malformed.",
4624 : .http_code = MHD_HTTP_BAD_REQUEST
4625 : },
4626 :
4627 : {
4628 : /* 6102 */
4629 : .ec = TALER_EC_SYNC_BAD_IF_MATCH,
4630 : .hint =
4631 : "The SHA-512 hash provided in the If-Match header is malformed or missing.",
4632 : .http_code = MHD_HTTP_BAD_REQUEST
4633 : },
4634 :
4635 : {
4636 : /* 6103 */
4637 : .ec = TALER_EC_SYNC_BAD_SYNC_SIGNATURE,
4638 : .hint =
4639 : "The signature provided in the \"Sync-Signature\" header is malformed or missing.",
4640 : .http_code = MHD_HTTP_BAD_REQUEST
4641 : },
4642 :
4643 : {
4644 : /* 6104 */
4645 : .ec = TALER_EC_SYNC_INVALID_SIGNATURE,
4646 : .hint =
4647 : "The signature provided in the \"Sync-Signature\" header does not match the account, old or new Etags.",
4648 : .http_code = MHD_HTTP_FORBIDDEN
4649 : },
4650 :
4651 : {
4652 : /* 6105 */
4653 : .ec = TALER_EC_SYNC_MALFORMED_CONTENT_LENGTH,
4654 : .hint = "The \"Content-length\" field for the upload is not a number.",
4655 : .http_code = MHD_HTTP_BAD_REQUEST
4656 : },
4657 :
4658 : {
4659 : /* 6106 */
4660 : .ec = TALER_EC_SYNC_EXCESSIVE_CONTENT_LENGTH,
4661 : .hint =
4662 : "The \"Content-length\" field for the upload is too big based on the server's terms of service.",
4663 : .http_code = MHD_HTTP_CONTENT_TOO_LARGE
4664 : },
4665 :
4666 : {
4667 : /* 6107 */
4668 : .ec = TALER_EC_SYNC_OUT_OF_MEMORY_ON_CONTENT_LENGTH,
4669 : .hint =
4670 : "The server is out of memory to handle the upload. Trying again later may succeed.",
4671 : .http_code = MHD_HTTP_CONTENT_TOO_LARGE
4672 : },
4673 :
4674 : {
4675 : /* 6108 */
4676 : .ec = TALER_EC_SYNC_INVALID_UPLOAD,
4677 : .hint = "The uploaded data does not match the Etag.",
4678 : .http_code = MHD_HTTP_BAD_REQUEST
4679 : },
4680 :
4681 : {
4682 : /* 6109 */
4683 : .ec = TALER_EC_SYNC_PAYMENT_GENERIC_TIMEOUT,
4684 : .hint =
4685 : "HTTP server experienced a timeout while awaiting promised payment.",
4686 : .http_code = MHD_HTTP_REQUEST_TIMEOUT
4687 : },
4688 :
4689 : {
4690 : /* 6110 */
4691 : .ec = TALER_EC_SYNC_PAYMENT_CREATE_BACKEND_ERROR,
4692 : .hint =
4693 : "The sync service could not set up the payment request with its own backend.",
4694 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
4695 : },
4696 :
4697 : {
4698 : /* 6111 */
4699 : .ec = TALER_EC_SYNC_PREVIOUS_BACKUP_UNKNOWN,
4700 : .hint =
4701 : "The sync service failed to find the backup to be updated in its database.",
4702 : .http_code = MHD_HTTP_NOT_FOUND
4703 : },
4704 :
4705 : {
4706 : /* 6112 */
4707 : .ec = TALER_EC_SYNC_MISSING_CONTENT_LENGTH,
4708 : .hint = "The \"Content-length\" field for the upload is missing.",
4709 : .http_code = MHD_HTTP_BAD_REQUEST
4710 : },
4711 :
4712 : {
4713 : /* 6113 */
4714 : .ec = TALER_EC_SYNC_GENERIC_BACKEND_ERROR,
4715 : .hint = "Sync had problems communicating with its payment backend.",
4716 : .http_code = MHD_HTTP_BAD_GATEWAY
4717 : },
4718 :
4719 : {
4720 : /* 6114 */
4721 : .ec = TALER_EC_SYNC_GENERIC_BACKEND_TIMEOUT,
4722 : .hint =
4723 : "Sync experienced a timeout communicating with its payment backend.",
4724 : .http_code = MHD_HTTP_GATEWAY_TIMEOUT
4725 : },
4726 :
4727 : {
4728 : /* 6115 */
4729 : .ec = TALER_EC_SYNC_CONFLICTING_WRITE,
4730 : .hint =
4731 : "The provided new content is based on an outdated backup: the previous write was overwritten in the meantime.",
4732 : .http_code = MHD_HTTP_CONFLICT
4733 : },
4734 :
4735 : {
4736 : /* 6116 */
4737 : .ec = TALER_EC_SYNC_INCONSISTENT_BACKUP,
4738 : .hint =
4739 : "The backup does not form a consistent linked list (e.g. the previous block does not match the given hash).",
4740 : .http_code = MHD_HTTP_CONFLICT
4741 : },
4742 :
4743 : {
4744 : /* 7000 */
4745 : .ec = TALER_EC_WALLET_EXCHANGE_PROTOCOL_VERSION_INCOMPATIBLE,
4746 : .hint =
4747 : "The wallet does not implement a version of the exchange protocol that is compatible with the protocol version of the exchange.",
4748 : .http_code = MHD_HTTP_NOT_IMPLEMENTED
4749 : },
4750 :
4751 : {
4752 : /* 7001 */
4753 : .ec = TALER_EC_WALLET_UNEXPECTED_EXCEPTION,
4754 : .hint =
4755 : "The wallet encountered an unexpected exception. This is likely a bug in the wallet implementation.",
4756 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
4757 : },
4758 :
4759 : {
4760 : /* 7002 */
4761 : .ec = TALER_EC_WALLET_RECEIVED_MALFORMED_RESPONSE,
4762 : .hint =
4763 : "The wallet received a response from a server, but the response cannot be parsed.",
4764 : .http_code = MHD_HTTP_UNINITIALIZED
4765 : },
4766 :
4767 : {
4768 : /* 7003 */
4769 : .ec = TALER_EC_WALLET_NETWORK_ERROR,
4770 : .hint =
4771 : "The wallet tried to make a network request, but it received no response.",
4772 : .http_code = MHD_HTTP_UNINITIALIZED
4773 : },
4774 :
4775 : {
4776 : /* 7004 */
4777 : .ec = TALER_EC_WALLET_HTTP_REQUEST_THROTTLED,
4778 : .hint = "The wallet tried to make a network request, but it was throttled.",
4779 : .http_code = MHD_HTTP_UNINITIALIZED
4780 : },
4781 :
4782 : {
4783 : /* 7005 */
4784 : .ec = TALER_EC_WALLET_UNEXPECTED_REQUEST_ERROR,
4785 : .hint =
4786 : "The wallet made a request to a service, but received an error response it does not know how to handle.",
4787 : .http_code = MHD_HTTP_UNINITIALIZED
4788 : },
4789 :
4790 : {
4791 : /* 7006 */
4792 : .ec = TALER_EC_WALLET_EXCHANGE_DENOMINATIONS_INSUFFICIENT,
4793 : .hint =
4794 : "The denominations offered by the exchange are insufficient. Likely the exchange is badly configured or not maintained.",
4795 : .http_code = MHD_HTTP_UNINITIALIZED
4796 : },
4797 :
4798 : {
4799 : /* 7007 */
4800 : .ec = TALER_EC_WALLET_CORE_API_OPERATION_UNKNOWN,
4801 : .hint = "The wallet does not support the operation requested by a client.",
4802 : .http_code = MHD_HTTP_UNINITIALIZED
4803 : },
4804 :
4805 : {
4806 : /* 7008 */
4807 : .ec = TALER_EC_WALLET_INVALID_TALER_PAY_URI,
4808 : .hint = "The given taler://pay URI is invalid.",
4809 : .http_code = MHD_HTTP_UNINITIALIZED
4810 : },
4811 :
4812 : {
4813 : /* 7009 */
4814 : .ec = TALER_EC_WALLET_EXCHANGE_COIN_SIGNATURE_INVALID,
4815 : .hint =
4816 : "The signature on a coin by the exchange's denomination key is invalid after unblinding it.",
4817 : .http_code = MHD_HTTP_UNINITIALIZED
4818 : },
4819 :
4820 : {
4821 : /* 7011 */
4822 : .ec = TALER_EC_WALLET_CORE_NOT_AVAILABLE,
4823 : .hint = "The wallet core service is not available.",
4824 : .http_code = MHD_HTTP_UNINITIALIZED
4825 : },
4826 :
4827 : {
4828 : /* 7012 */
4829 : .ec = TALER_EC_WALLET_WITHDRAWAL_OPERATION_ABORTED_BY_BANK,
4830 : .hint =
4831 : "The bank aborted a withdrawal operation, so the withdrawal cannot complete.",
4832 : .http_code = MHD_HTTP_UNINITIALIZED
4833 : },
4834 :
4835 : {
4836 : /* 7013 */
4837 : .ec = TALER_EC_WALLET_HTTP_REQUEST_GENERIC_TIMEOUT,
4838 : .hint = "An HTTP request made by the wallet timed out.",
4839 : .http_code = MHD_HTTP_UNINITIALIZED
4840 : },
4841 :
4842 : {
4843 : /* 7014 */
4844 : .ec = TALER_EC_WALLET_ORDER_ALREADY_CLAIMED,
4845 : .hint = "The order has already been claimed by another wallet.",
4846 : .http_code = MHD_HTTP_UNINITIALIZED
4847 : },
4848 :
4849 : {
4850 : /* 7015 */
4851 : .ec = TALER_EC_WALLET_WITHDRAWAL_GROUP_INCOMPLETE,
4852 : .hint =
4853 : "A group of withdrawal operations (typically for the same reserve at the same exchange) has errors and will be tried again later.",
4854 : .http_code = MHD_HTTP_UNINITIALIZED
4855 : },
4856 :
4857 : {
4858 : /* 7016 */
4859 : .ec = TALER_EC_WALLET_REWARD_COIN_SIGNATURE_INVALID,
4860 : .hint =
4861 : "The signature on a coin by the exchange's denomination key (obtained through the merchant via a reward) is invalid after unblinding it.",
4862 : .http_code = MHD_HTTP_UNINITIALIZED
4863 : },
4864 :
4865 : {
4866 : /* 7017 */
4867 : .ec = TALER_EC_WALLET_BANK_INTEGRATION_PROTOCOL_VERSION_INCOMPATIBLE,
4868 : .hint =
4869 : "The wallet does not implement a version of the bank integration API that is compatible with the version offered by the bank.",
4870 : .http_code = MHD_HTTP_UNINITIALIZED
4871 : },
4872 :
4873 : {
4874 : /* 7018 */
4875 : .ec = TALER_EC_WALLET_CONTRACT_TERMS_BASE_URL_MISMATCH,
4876 : .hint =
4877 : "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.",
4878 : .http_code = MHD_HTTP_UNINITIALIZED
4879 : },
4880 :
4881 : {
4882 : /* 7019 */
4883 : .ec = TALER_EC_WALLET_CONTRACT_TERMS_SIGNATURE_INVALID,
4884 : .hint = "The merchant's signature on the contract terms is invalid.",
4885 : .http_code = MHD_HTTP_UNINITIALIZED
4886 : },
4887 :
4888 : {
4889 : /* 7020 */
4890 : .ec = TALER_EC_WALLET_CONTRACT_TERMS_MALFORMED,
4891 : .hint = "The contract terms given by the merchant are malformed.",
4892 : .http_code = MHD_HTTP_UNINITIALIZED
4893 : },
4894 :
4895 : {
4896 : /* 7021 */
4897 : .ec = TALER_EC_WALLET_PENDING_OPERATION_FAILED,
4898 : .hint = "A pending operation failed, so the request cannot be completed.",
4899 : .http_code = MHD_HTTP_UNINITIALIZED
4900 : },
4901 :
4902 : {
4903 : /* 7022 */
4904 : .ec = TALER_EC_WALLET_PAY_MERCHANT_SERVER_ERROR,
4905 : .hint =
4906 : "A payment was attempted, but the merchant had an internal server error (5xx).",
4907 : .http_code = MHD_HTTP_UNINITIALIZED
4908 : },
4909 :
4910 : {
4911 : /* 7023 */
4912 : .ec = TALER_EC_WALLET_CRYPTO_WORKER_ERROR,
4913 : .hint = "The crypto worker failed.",
4914 : .http_code = MHD_HTTP_UNINITIALIZED
4915 : },
4916 :
4917 : {
4918 : /* 7024 */
4919 : .ec = TALER_EC_WALLET_CRYPTO_WORKER_BAD_REQUEST,
4920 : .hint = "The crypto worker received a bad request.",
4921 : .http_code = MHD_HTTP_UNINITIALIZED
4922 : },
4923 :
4924 : {
4925 : /* 7025 */
4926 : .ec = TALER_EC_WALLET_WITHDRAWAL_KYC_REQUIRED,
4927 : .hint = "A KYC step is required before withdrawal can proceed.",
4928 : .http_code = MHD_HTTP_UNINITIALIZED
4929 : },
4930 :
4931 : {
4932 : /* 7026 */
4933 : .ec = TALER_EC_WALLET_DEPOSIT_GROUP_INSUFFICIENT_BALANCE,
4934 : .hint =
4935 : "The wallet does not have sufficient balance to create a deposit group.",
4936 : .http_code = MHD_HTTP_UNINITIALIZED
4937 : },
4938 :
4939 : {
4940 : /* 7027 */
4941 : .ec = TALER_EC_WALLET_PEER_PUSH_PAYMENT_INSUFFICIENT_BALANCE,
4942 : .hint =
4943 : "The wallet does not have sufficient balance to create a peer push payment.",
4944 : .http_code = MHD_HTTP_UNINITIALIZED
4945 : },
4946 :
4947 : {
4948 : /* 7028 */
4949 : .ec = TALER_EC_WALLET_PEER_PULL_PAYMENT_INSUFFICIENT_BALANCE,
4950 : .hint =
4951 : "The wallet does not have sufficient balance to pay for an invoice.",
4952 : .http_code = MHD_HTTP_UNINITIALIZED
4953 : },
4954 :
4955 : {
4956 : /* 7029 */
4957 : .ec = TALER_EC_WALLET_REFRESH_GROUP_INCOMPLETE,
4958 : .hint =
4959 : "A group of refresh operations has errors and will be tried again later.",
4960 : .http_code = MHD_HTTP_UNINITIALIZED
4961 : },
4962 :
4963 : {
4964 : /* 7030 */
4965 : .ec = TALER_EC_WALLET_EXCHANGE_BASE_URL_MISMATCH,
4966 : .hint =
4967 : "The exchange's self-reported base URL does not match the one that the wallet is using.",
4968 : .http_code = MHD_HTTP_UNINITIALIZED
4969 : },
4970 :
4971 : {
4972 : /* 7031 */
4973 : .ec = TALER_EC_WALLET_ORDER_ALREADY_PAID,
4974 : .hint = "The order has already been paid by another wallet.",
4975 : .http_code = MHD_HTTP_UNINITIALIZED
4976 : },
4977 :
4978 : {
4979 : /* 7032 */
4980 : .ec = TALER_EC_WALLET_EXCHANGE_UNAVAILABLE,
4981 : .hint =
4982 : "An exchange that is required for some request is currently not available.",
4983 : .http_code = MHD_HTTP_UNINITIALIZED
4984 : },
4985 :
4986 : {
4987 : /* 7033 */
4988 : .ec = TALER_EC_WALLET_EXCHANGE_ENTRY_USED,
4989 : .hint =
4990 : "An exchange entry is still used by the exchange, so it cannot be deleted without purging.",
4991 : .http_code = MHD_HTTP_UNINITIALIZED
4992 : },
4993 :
4994 : {
4995 : /* 7034 */
4996 : .ec = TALER_EC_WALLET_DB_UNAVAILABLE,
4997 : .hint =
4998 : "The wallet database is unavailable and the wallet thus is not operational.",
4999 : .http_code = MHD_HTTP_UNINITIALIZED
5000 : },
5001 :
5002 : {
5003 : /* 7035 */
5004 : .ec = TALER_EC_WALLET_TALER_URI_MALFORMED,
5005 : .hint = "A `taler://` URI is malformed and cannot be parsed.",
5006 : .http_code = MHD_HTTP_UNINITIALIZED
5007 : },
5008 :
5009 : {
5010 : /* 7036 */
5011 : .ec = TALER_EC_WALLET_CORE_REQUEST_CANCELLED,
5012 : .hint =
5013 : "A wallet-core request was cancelled and therefore cannot provide a response.",
5014 : .http_code = MHD_HTTP_UNINITIALIZED
5015 : },
5016 :
5017 : {
5018 : /* 7037 */
5019 : .ec = TALER_EC_WALLET_EXCHANGE_TOS_NOT_ACCEPTED,
5020 : .hint =
5021 : "A wallet-core request failed because the user needs to first accept the exchange's terms of service.",
5022 : .http_code = MHD_HTTP_UNINITIALIZED
5023 : },
5024 :
5025 : {
5026 : /* 7038 */
5027 : .ec = TALER_EC_WALLET_EXCHANGE_ENTRY_UPDATE_CONFLICT,
5028 : .hint =
5029 : "An exchange entry could not be updated, as the exchange's new details conflict with the new details.",
5030 : .http_code = MHD_HTTP_UNINITIALIZED
5031 : },
5032 :
5033 : {
5034 : /* 7039 */
5035 : .ec = TALER_EC_WALLET_EXCHANGE_ENTRY_OUTDATED,
5036 : .hint = "The wallet's information about the exchange is outdated.",
5037 : .http_code = MHD_HTTP_UNINITIALIZED
5038 : },
5039 :
5040 : {
5041 : /* 7040 */
5042 : .ec = TALER_EC_WALLET_PAY_MERCHANT_KYC_MISSING,
5043 : .hint =
5044 : "The merchant needs to do KYC first, the payment could not be completed.",
5045 : .http_code = MHD_HTTP_UNINITIALIZED
5046 : },
5047 :
5048 : {
5049 : /* 7041 */
5050 : .ec = TALER_EC_WALLET_PEER_PULL_DEBIT_PURSE_GONE,
5051 : .hint =
5052 : "A peer-pull-debit transaction was aborted because the exchange reported the purse as gone.",
5053 : .http_code = MHD_HTTP_UNINITIALIZED
5054 : },
5055 :
5056 : {
5057 : /* 7042 */
5058 : .ec = TALER_EC_WALLET_TRANSACTION_ABORTED_BY_USER,
5059 : .hint = "A transaction was aborted on explicit request by the user.",
5060 : .http_code = MHD_HTTP_UNINITIALIZED
5061 : },
5062 :
5063 : {
5064 : /* 7043 */
5065 : .ec = TALER_EC_WALLET_TRANSACTION_ABANDONED_BY_USER,
5066 : .hint = "A transaction was abandoned on explicit request by the user.",
5067 : .http_code = MHD_HTTP_UNINITIALIZED
5068 : },
5069 :
5070 : {
5071 : /* 7044 */
5072 : .ec = TALER_EC_WALLET_PAY_MERCHANT_ORDER_GONE,
5073 : .hint =
5074 : "A payment was attempted, but the merchant claims the order is gone (likely expired).",
5075 : .http_code = MHD_HTTP_UNINITIALIZED
5076 : },
5077 :
5078 : {
5079 : /* 7045 */
5080 : .ec = TALER_EC_WALLET_EXCHANGE_ENTRY_NOT_FOUND,
5081 : .hint = "The wallet does not have an entry for the requested exchange.",
5082 : .http_code = MHD_HTTP_UNINITIALIZED
5083 : },
5084 :
5085 : {
5086 : /* 7046 */
5087 : .ec = TALER_EC_WALLET_REQUEST_TRANSACTION_STATE_UNSUPPORTED,
5088 : .hint =
5089 : "The wallet is not able to process the request due to the transaction's state.",
5090 : .http_code = MHD_HTTP_UNINITIALIZED
5091 : },
5092 :
5093 : {
5094 : /* 7047 */
5095 : .ec = TALER_EC_WALLET_TRANSACTION_PROTOCOL_VIOLATION,
5096 : .hint =
5097 : "A transaction could not be processed due to an unrecoverable protocol violation.",
5098 : .http_code = MHD_HTTP_UNINITIALIZED
5099 : },
5100 :
5101 : {
5102 : /* 7048 */
5103 : .ec = TALER_EC_WALLET_CORE_API_BAD_REQUEST,
5104 : .hint = "A parameter in the request is malformed or missing.",
5105 : .http_code = MHD_HTTP_UNINITIALIZED
5106 : },
5107 :
5108 : {
5109 : /* 7049 */
5110 : .ec = TALER_EC_WALLET_MERCHANT_ORDER_NOT_FOUND,
5111 : .hint = "The order could not be found. Maybe the merchant deleted it.",
5112 : .http_code = MHD_HTTP_UNINITIALIZED
5113 : },
5114 :
5115 : {
5116 : /* 7050 */
5117 : .ec = TALER_EC_WALLET_PAY_MERCHANT_INSUFFICIENT_BALANCE,
5118 : .hint = "The wallet's balance for paying a merchant is insufficient.",
5119 : .http_code = MHD_HTTP_UNINITIALIZED
5120 : },
5121 :
5122 : {
5123 : /* 7051 */
5124 : .ec = TALER_EC_WALLET_PURCHASE_NOT_FOUND,
5125 : .hint = "The wallet does not have a purchase for the requested order.",
5126 : .http_code = MHD_HTTP_UNINITIALIZED
5127 : },
5128 :
5129 : {
5130 : /* 7052 */
5131 : .ec = TALER_EC_WALLET_TRANSACTION_NOT_FOUND,
5132 : .hint =
5133 : "The wallet does not have a transaction with the requested transaction identifier.",
5134 : .http_code = MHD_HTTP_UNINITIALIZED
5135 : },
5136 :
5137 : {
5138 : /* 7053 */
5139 : .ec = TALER_EC_WALLET_TRANSACTION_ACTION_UNSUPPORTED,
5140 : .hint =
5141 : "The requested action is not supported for this type of transaction.",
5142 : .http_code = MHD_HTTP_UNINITIALIZED
5143 : },
5144 :
5145 : {
5146 : /* 7054 */
5147 : .ec = TALER_EC_WALLET_KYC_LIMIT_EXCEEDED,
5148 : .hint =
5149 : "The operation would exceed a limit imposed by the exchange that the user cannot raise by completing a KYC process.",
5150 : .http_code = MHD_HTTP_UNINITIALIZED
5151 : },
5152 :
5153 : {
5154 : /* 7055 */
5155 : .ec = TALER_EC_WALLET_NO_SUITABLE_EXCHANGE,
5156 : .hint =
5157 : "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.",
5158 : .http_code = MHD_HTTP_UNINITIALIZED
5159 : },
5160 :
5161 : {
5162 : /* 7056 */
5163 : .ec = TALER_EC_WALLET_BANK_ACCOUNT_NOT_FOUND,
5164 : .hint =
5165 : "The wallet does not have a known bank account with the requested identifier.",
5166 : .http_code = MHD_HTTP_UNINITIALIZED
5167 : },
5168 :
5169 : {
5170 : /* 7057 */
5171 : .ec = TALER_EC_WALLET_PEER_CONTRACT_NOT_FOUND,
5172 : .hint =
5173 : "The exchange does not know the contract of this peer-to-peer payment. It may have expired.",
5174 : .http_code = MHD_HTTP_UNINITIALIZED
5175 : },
5176 :
5177 : {
5178 : /* 7058 */
5179 : .ec = TALER_EC_WALLET_PEER_PUSH_CREDIT_PURSE_GONE,
5180 : .hint =
5181 : "The purse of this peer-to-peer push payment is gone. The sender likely aborted the payment.",
5182 : .http_code = MHD_HTTP_UNINITIALIZED
5183 : },
5184 :
5185 : {
5186 : /* 7059 */
5187 : .ec = TALER_EC_WALLET_PEER_PULL_DEBIT_ALREADY_PAID,
5188 : .hint = "This invoice has already been paid, possibly by another wallet.",
5189 : .http_code = MHD_HTTP_UNINITIALIZED
5190 : },
5191 :
5192 : {
5193 : /* 7060 */
5194 : .ec = TALER_EC_WALLET_TOKENS_IN_USE,
5195 : .hint =
5196 : "The tokens can not be deleted, as at least one of them is currently being used in a transaction.",
5197 : .http_code = MHD_HTTP_UNINITIALIZED
5198 : },
5199 :
5200 : {
5201 : /* 7061 */
5202 : .ec = TALER_EC_WALLET_DB_BACKEND_UNSUPPORTED,
5203 : .hint =
5204 : "The operation is not supported by the database backend that the wallet is currently running on.",
5205 : .http_code = MHD_HTTP_UNINITIALIZED
5206 : },
5207 :
5208 : {
5209 : /* 7062 */
5210 : .ec = TALER_EC_WALLET_MAILBOX_UNAVAILABLE,
5211 : .hint = "The wallet could not use the mailbox service.",
5212 : .http_code = MHD_HTTP_UNINITIALIZED
5213 : },
5214 :
5215 : {
5216 : /* 7063 */
5217 : .ec = TALER_EC_WALLET_ALIAS_REGISTRATION_FAILED,
5218 : .hint =
5219 : "The wallet could not register an alias with the directory service.",
5220 : .http_code = MHD_HTTP_UNINITIALIZED
5221 : },
5222 :
5223 : {
5224 : /* 7064 */
5225 : .ec = TALER_EC_WALLET_CONTRACT_TERMS_UNSUPPORTED,
5226 : .hint =
5227 : "The contract terms use a feature that this version of the wallet does not support. Updating the wallet may help.",
5228 : .http_code = MHD_HTTP_UNINITIALIZED
5229 : },
5230 :
5231 : {
5232 : /* 7065 */
5233 : .ec = TALER_EC_WALLET_EXCHANGE_SIGNATURE_INVALID,
5234 : .hint =
5235 : "The exchange served data that is not correctly signed by its master key. The wallet refuses to use this exchange.",
5236 : .http_code = MHD_HTTP_UNINITIALIZED
5237 : },
5238 :
5239 : {
5240 : /* 7066 */
5241 : .ec = TALER_EC_WALLET_EXCHANGE_KEYS_NOT_ACCEPTED,
5242 : .hint =
5243 : "The exchange presents a master public key or currency that the user has not accepted yet. The operation was refused.",
5244 : .http_code = MHD_HTTP_UNINITIALIZED
5245 : },
5246 :
5247 : {
5248 : /* 7067 */
5249 : .ec = TALER_EC_WALLET_EXCHANGE_NO_KEY_CHANGE_PENDING,
5250 : .hint =
5251 : "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.",
5252 : .http_code = MHD_HTTP_UNINITIALIZED
5253 : },
5254 :
5255 : {
5256 : /* 7068 */
5257 : .ec = TALER_EC_WALLET_EXCHANGE_KEY_CHANGE_MISMATCH,
5258 : .hint =
5259 : "The key set that was confirmed is not the one that the exchange currently presents.",
5260 : .http_code = MHD_HTTP_UNINITIALIZED
5261 : },
5262 :
5263 : {
5264 : /* 7069 */
5265 : .ec = TALER_EC_WALLET_PEER_PUSH_PAYMENT_QUOTE_CHANGED,
5266 : .hint =
5267 : "The values of a reviewed peer push payment changed before confirmation. The caller must prepare and show the payment again.",
5268 : .http_code = MHD_HTTP_UNINITIALIZED
5269 : },
5270 :
5271 : {
5272 : /* 7070 */
5273 : .ec = TALER_EC_WALLET_TRANSACTION_COMPLETED_BY_OTHER_WALLET,
5274 : .hint = "The operation was completed or taken over by another wallet.",
5275 : .http_code = MHD_HTTP_UNINITIALIZED
5276 : },
5277 :
5278 : {
5279 : /* 7071 */
5280 : .ec = TALER_EC_WALLET_REFRESH_GROUP_FAILED,
5281 : .hint = "Refreshing one or more coins failed permanently.",
5282 : .http_code = MHD_HTTP_UNINITIALIZED
5283 : },
5284 :
5285 : {
5286 : /* 7072 */
5287 : .ec = TALER_EC_WALLET_RECOUP_GROUP_FAILED,
5288 : .hint = "Recouping one or more revoked coins failed permanently.",
5289 : .http_code = MHD_HTTP_UNINITIALIZED
5290 : },
5291 :
5292 : {
5293 : /* 7073 */
5294 : .ec = TALER_EC_WALLET_REFUND_GROUP_FAILED,
5295 : .hint = "One or more refunds were permanently rejected by the exchange.",
5296 : .http_code = MHD_HTTP_UNINITIALIZED
5297 : },
5298 :
5299 : {
5300 : /* 7074 */
5301 : .ec = TALER_EC_WALLET_TRANSACTION_RECOVERY_FAILED,
5302 : .hint =
5303 : "Recovery of the transaction inputs failed or the recovery operation is missing.",
5304 : .http_code = MHD_HTTP_UNINITIALIZED
5305 : },
5306 :
5307 : {
5308 : /* 7075 */
5309 : .ec = TALER_EC_WALLET_TRANSACTION_DEPENDENCY_FAILED,
5310 : .hint =
5311 : "An operation required to complete the transaction failed or is missing.",
5312 : .http_code = MHD_HTTP_UNINITIALIZED
5313 : },
5314 :
5315 : {
5316 : /* 8000 */
5317 : .ec = TALER_EC_ANASTASIS_GENERIC_BACKEND_TIMEOUT,
5318 : .hint = "The service encountered a timeout with its payment backend.",
5319 : .http_code = MHD_HTTP_GATEWAY_TIMEOUT
5320 : },
5321 :
5322 : {
5323 : /* 8001 */
5324 : .ec = TALER_EC_ANASTASIS_GENERIC_INVALID_PAYMENT_REQUEST,
5325 : .hint = "The backend requested payment, but the request is malformed.",
5326 : .http_code = MHD_HTTP_UNINITIALIZED
5327 : },
5328 :
5329 : {
5330 : /* 8002 */
5331 : .ec = TALER_EC_ANASTASIS_GENERIC_BACKEND_ERROR,
5332 : .hint =
5333 : "The backend received an unexpected response from the payment processor.",
5334 : .http_code = MHD_HTTP_BAD_GATEWAY
5335 : },
5336 :
5337 : {
5338 : /* 8003 */
5339 : .ec = TALER_EC_ANASTASIS_GENERIC_MISSING_CONTENT_LENGTH,
5340 : .hint = "The \"Content-length\" field for the upload is missing.",
5341 : .http_code = MHD_HTTP_BAD_REQUEST
5342 : },
5343 :
5344 : {
5345 : /* 8004 */
5346 : .ec = TALER_EC_ANASTASIS_GENERIC_MALFORMED_CONTENT_LENGTH,
5347 : .hint = "The \"Content-length\" field for the upload is malformed.",
5348 : .http_code = MHD_HTTP_BAD_REQUEST
5349 : },
5350 :
5351 : {
5352 : /* 8005 */
5353 : .ec = TALER_EC_ANASTASIS_GENERIC_ORDER_CREATE_BACKEND_ERROR,
5354 : .hint = "The backend failed to setup an order with the payment processor.",
5355 : .http_code = MHD_HTTP_BAD_GATEWAY
5356 : },
5357 :
5358 : {
5359 : /* 8006 */
5360 : .ec = TALER_EC_ANASTASIS_GENERIC_PAYMENT_CHECK_UNAUTHORIZED,
5361 : .hint =
5362 : "The backend was not authorized to check for payment with the payment processor.",
5363 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
5364 : },
5365 :
5366 : {
5367 : /* 8007 */
5368 : .ec = TALER_EC_ANASTASIS_GENERIC_PAYMENT_CHECK_START_FAILED,
5369 : .hint =
5370 : "The backend could not check payment status with the payment processor.",
5371 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
5372 : },
5373 :
5374 : {
5375 : /* 8008 */
5376 : .ec = TALER_EC_ANASTASIS_GENERIC_PROVIDER_UNREACHABLE,
5377 : .hint = "The Anastasis provider could not be reached.",
5378 : .http_code = MHD_HTTP_UNINITIALIZED
5379 : },
5380 :
5381 : {
5382 : /* 8009 */
5383 : .ec = TALER_EC_ANASTASIS_PAYMENT_GENERIC_TIMEOUT,
5384 : .hint =
5385 : "HTTP server experienced a timeout while awaiting promised payment.",
5386 : .http_code = MHD_HTTP_REQUEST_TIMEOUT
5387 : },
5388 :
5389 : {
5390 : /* 8108 */
5391 : .ec = TALER_EC_ANASTASIS_TRUTH_UNKNOWN,
5392 : .hint = "The key share is unknown to the provider.",
5393 : .http_code = MHD_HTTP_NOT_FOUND
5394 : },
5395 :
5396 : {
5397 : /* 8109 */
5398 : .ec = TALER_EC_ANASTASIS_TRUTH_AUTHORIZATION_METHOD_NO_LONGER_SUPPORTED,
5399 : .hint =
5400 : "The authorization method used for the key share is no longer supported by the provider.",
5401 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
5402 : },
5403 :
5404 : {
5405 : /* 8110 */
5406 : .ec = TALER_EC_ANASTASIS_TRUTH_CHALLENGE_RESPONSE_REQUIRED,
5407 : .hint = "The client needs to respond to the challenge.",
5408 : .http_code = MHD_HTTP_FORBIDDEN
5409 : },
5410 :
5411 : {
5412 : /* 8111 */
5413 : .ec = TALER_EC_ANASTASIS_TRUTH_CHALLENGE_FAILED,
5414 : .hint = "The client's response to the challenge was invalid.",
5415 : .http_code = MHD_HTTP_FORBIDDEN
5416 : },
5417 :
5418 : {
5419 : /* 8112 */
5420 : .ec = TALER_EC_ANASTASIS_TRUTH_CHALLENGE_UNKNOWN,
5421 : .hint =
5422 : "The backend is not aware of having issued the provided challenge code. Either this is the wrong code, or it has expired.",
5423 : .http_code = MHD_HTTP_NOT_FOUND
5424 : },
5425 :
5426 : {
5427 : /* 8114 */
5428 : .ec = TALER_EC_ANASTASIS_TRUTH_AUTHORIZATION_START_FAILED,
5429 : .hint = "The backend failed to initiate the authorization process.",
5430 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
5431 : },
5432 :
5433 : {
5434 : /* 8115 */
5435 : .ec = TALER_EC_ANASTASIS_TRUTH_KEY_SHARE_GONE,
5436 : .hint =
5437 : "The authorization succeeded, but the key share is no longer available.",
5438 : .http_code = MHD_HTTP_NOT_FOUND
5439 : },
5440 :
5441 : {
5442 : /* 8116 */
5443 : .ec = TALER_EC_ANASTASIS_TRUTH_ORDER_DISAPPEARED,
5444 : .hint =
5445 : "The backend no longer knows about the order that the client was asked to pay for.",
5446 : .http_code = MHD_HTTP_BAD_GATEWAY
5447 : },
5448 :
5449 : {
5450 : /* 8117 */
5451 : .ec = TALER_EC_ANASTASIS_TRUTH_BACKEND_EXCHANGE_BAD,
5452 : .hint = "The backend itself reported a bad exchange interaction.",
5453 : .http_code = MHD_HTTP_BAD_GATEWAY
5454 : },
5455 :
5456 : {
5457 : /* 8118 */
5458 : .ec = TALER_EC_ANASTASIS_TRUTH_UNEXPECTED_PAYMENT_STATUS,
5459 : .hint = "The backend reported an unexpected payment status.",
5460 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
5461 : },
5462 :
5463 : {
5464 : /* 8119 */
5465 : .ec = TALER_EC_ANASTASIS_TRUTH_PAYMENT_CREATE_BACKEND_ERROR,
5466 : .hint = "The backend failed to setup the order for payment.",
5467 : .http_code = MHD_HTTP_BAD_GATEWAY
5468 : },
5469 :
5470 : {
5471 : /* 8120 */
5472 : .ec = TALER_EC_ANASTASIS_TRUTH_DECRYPTION_FAILED,
5473 : .hint = "The decryption of the key share failed with the provided key.",
5474 : .http_code = MHD_HTTP_BAD_REQUEST
5475 : },
5476 :
5477 : {
5478 : /* 8121 */
5479 : .ec = TALER_EC_ANASTASIS_TRUTH_RATE_LIMITED,
5480 : .hint =
5481 : "The request rate is too high. The server is refusing requests to guard against brute-force attacks.",
5482 : .http_code = MHD_HTTP_TOO_MANY_REQUESTS
5483 : },
5484 :
5485 : {
5486 : /* 8123 */
5487 : .ec = TALER_EC_ANASTASIS_TRUTH_CHALLENGE_WRONG_METHOD,
5488 : .hint =
5489 : "A request to issue a challenge is not valid for this authentication method.",
5490 : .http_code = MHD_HTTP_BAD_REQUEST
5491 : },
5492 :
5493 : {
5494 : /* 8150 */
5495 : .ec = TALER_EC_ANASTASIS_TRUTH_UPLOAD_UUID_EXISTS,
5496 : .hint =
5497 : "The backend failed to store the key share because the UUID is already in use.",
5498 : .http_code = MHD_HTTP_CONFLICT
5499 : },
5500 :
5501 : {
5502 : /* 8151 */
5503 : .ec = TALER_EC_ANASTASIS_TRUTH_UPLOAD_METHOD_NOT_SUPPORTED,
5504 : .hint =
5505 : "The backend failed to store the key share because the authorization method is not supported.",
5506 : .http_code = MHD_HTTP_BAD_REQUEST
5507 : },
5508 :
5509 : {
5510 : /* 8200 */
5511 : .ec = TALER_EC_ANASTASIS_SMS_PHONE_INVALID,
5512 : .hint = "The provided phone number is not an acceptable number.",
5513 : .http_code = MHD_HTTP_CONFLICT
5514 : },
5515 :
5516 : {
5517 : /* 8201 */
5518 : .ec = TALER_EC_ANASTASIS_SMS_HELPER_EXEC_FAILED,
5519 : .hint = "Failed to run the SMS transmission helper process.",
5520 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
5521 : },
5522 :
5523 : {
5524 : /* 8202 */
5525 : .ec = TALER_EC_ANASTASIS_SMS_HELPER_COMMAND_FAILED,
5526 : .hint =
5527 : "Provider failed to send SMS. Helper terminated with a non-successful result.",
5528 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
5529 : },
5530 :
5531 : {
5532 : /* 8210 */
5533 : .ec = TALER_EC_ANASTASIS_EMAIL_INVALID,
5534 : .hint = "The provided email address is not an acceptable address.",
5535 : .http_code = MHD_HTTP_CONFLICT
5536 : },
5537 :
5538 : {
5539 : /* 8211 */
5540 : .ec = TALER_EC_ANASTASIS_EMAIL_HELPER_EXEC_FAILED,
5541 : .hint = "Failed to run the email transmission helper process.",
5542 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
5543 : },
5544 :
5545 : {
5546 : /* 8212 */
5547 : .ec = TALER_EC_ANASTASIS_EMAIL_HELPER_COMMAND_FAILED,
5548 : .hint =
5549 : "The provider failed to send email. The helper terminated with a non-successful result.",
5550 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
5551 : },
5552 :
5553 : {
5554 : /* 8220 */
5555 : .ec = TALER_EC_ANASTASIS_POST_INVALID,
5556 : .hint = "The provided postal address is not an acceptable address.",
5557 : .http_code = MHD_HTTP_CONFLICT
5558 : },
5559 :
5560 : {
5561 : /* 8221 */
5562 : .ec = TALER_EC_ANASTASIS_POST_HELPER_EXEC_FAILED,
5563 : .hint = "Failed to run the mail transmission helper process.",
5564 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
5565 : },
5566 :
5567 : {
5568 : /* 8222 */
5569 : .ec = TALER_EC_ANASTASIS_POST_HELPER_COMMAND_FAILED,
5570 : .hint =
5571 : "Provider failed to send mail. Helper terminated with a non-successful result.",
5572 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
5573 : },
5574 :
5575 : {
5576 : /* 8230 */
5577 : .ec = TALER_EC_ANASTASIS_IBAN_INVALID,
5578 : .hint = "The provided IBAN address is not an acceptable IBAN.",
5579 : .http_code = MHD_HTTP_CONFLICT
5580 : },
5581 :
5582 : {
5583 : /* 8231 */
5584 : .ec = TALER_EC_ANASTASIS_IBAN_MISSING_TRANSFER,
5585 : .hint =
5586 : "The provider has not yet received the IBAN wire transfer authorizing the disclosure of the key share.",
5587 : .http_code = MHD_HTTP_FORBIDDEN
5588 : },
5589 :
5590 : {
5591 : /* 8240 */
5592 : .ec = TALER_EC_ANASTASIS_TOTP_KEY_MISSING,
5593 : .hint = "The backend did not find a TOTP key in the data provided.",
5594 : .http_code = MHD_HTTP_CONFLICT
5595 : },
5596 :
5597 : {
5598 : /* 8241 */
5599 : .ec = TALER_EC_ANASTASIS_TOTP_KEY_INVALID,
5600 : .hint =
5601 : "The key provided does not satisfy the format restrictions for an Anastasis TOTP key.",
5602 : .http_code = MHD_HTTP_CONFLICT
5603 : },
5604 :
5605 : {
5606 : /* 8250 */
5607 : .ec = TALER_EC_ANASTASIS_ADDRESS_UNREACHABLE,
5608 : .hint =
5609 : "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.",
5610 : .http_code = MHD_HTTP_SERVICE_UNAVAILABLE
5611 : },
5612 :
5613 : {
5614 : /* 8251 */
5615 : .ec = TALER_EC_ANASTASIS_HELPER_MISCONFIGURED,
5616 : .hint =
5617 : "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.",
5618 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
5619 : },
5620 :
5621 : {
5622 : /* 8301 */
5623 : .ec = TALER_EC_ANASTASIS_POLICY_BAD_IF_NONE_MATCH,
5624 : .hint = "The given if-none-match header is malformed.",
5625 : .http_code = MHD_HTTP_BAD_REQUEST
5626 : },
5627 :
5628 : {
5629 : /* 8304 */
5630 : .ec = TALER_EC_ANASTASIS_POLICY_OUT_OF_MEMORY_ON_CONTENT_LENGTH,
5631 : .hint =
5632 : "The server is out of memory to handle the upload. Trying again later may succeed.",
5633 : .http_code = MHD_HTTP_CONTENT_TOO_LARGE
5634 : },
5635 :
5636 : {
5637 : /* 8305 */
5638 : .ec = TALER_EC_ANASTASIS_POLICY_BAD_SIGNATURE,
5639 : .hint =
5640 : "The signature provided in the \"Anastasis-Policy-Signature\" header is malformed or missing.",
5641 : .http_code = MHD_HTTP_BAD_REQUEST
5642 : },
5643 :
5644 : {
5645 : /* 8306 */
5646 : .ec = TALER_EC_ANASTASIS_POLICY_BAD_IF_MATCH,
5647 : .hint = "The given if-match header is malformed.",
5648 : .http_code = MHD_HTTP_BAD_REQUEST
5649 : },
5650 :
5651 : {
5652 : /* 8307 */
5653 : .ec = TALER_EC_ANASTASIS_POLICY_INVALID_UPLOAD,
5654 : .hint = "The uploaded data does not match the Etag.",
5655 : .http_code = MHD_HTTP_BAD_REQUEST
5656 : },
5657 :
5658 : {
5659 : /* 8350 */
5660 : .ec = TALER_EC_ANASTASIS_POLICY_NOT_FOUND,
5661 : .hint = "The provider is unaware of the requested policy.",
5662 : .http_code = MHD_HTTP_NOT_FOUND
5663 : },
5664 :
5665 : {
5666 : /* 8400 */
5667 : .ec = TALER_EC_ANASTASIS_REDUCER_ACTION_INVALID,
5668 : .hint = "The given action is invalid for the current state of the reducer.",
5669 : .http_code = MHD_HTTP_UNINITIALIZED
5670 : },
5671 :
5672 : {
5673 : /* 8401 */
5674 : .ec = TALER_EC_ANASTASIS_REDUCER_STATE_INVALID,
5675 : .hint = "The given state of the reducer is invalid.",
5676 : .http_code = MHD_HTTP_UNINITIALIZED
5677 : },
5678 :
5679 : {
5680 : /* 8402 */
5681 : .ec = TALER_EC_ANASTASIS_REDUCER_INPUT_INVALID,
5682 : .hint = "The given input to the reducer is invalid.",
5683 : .http_code = MHD_HTTP_UNINITIALIZED
5684 : },
5685 :
5686 : {
5687 : /* 8403 */
5688 : .ec = TALER_EC_ANASTASIS_REDUCER_AUTHENTICATION_METHOD_NOT_SUPPORTED,
5689 : .hint =
5690 : "The selected authentication method does not work for the Anastasis provider.",
5691 : .http_code = MHD_HTTP_UNINITIALIZED
5692 : },
5693 :
5694 : {
5695 : /* 8404 */
5696 : .ec = TALER_EC_ANASTASIS_REDUCER_INPUT_INVALID_FOR_STATE,
5697 : .hint = "The given input and action do not work for the current state.",
5698 : .http_code = MHD_HTTP_UNINITIALIZED
5699 : },
5700 :
5701 : {
5702 : /* 8405 */
5703 : .ec = TALER_EC_ANASTASIS_REDUCER_BACKEND_FAILURE,
5704 : .hint =
5705 : "The service experienced an unexpected failure while interacting with the backend.",
5706 : .http_code = MHD_HTTP_UNINITIALIZED
5707 : },
5708 :
5709 : {
5710 : /* 8406 */
5711 : .ec = TALER_EC_ANASTASIS_REDUCER_RESOURCE_MALFORMED,
5712 : .hint =
5713 : "The contents of a resource file did not match the expected format.",
5714 : .http_code = MHD_HTTP_UNINITIALIZED
5715 : },
5716 :
5717 : {
5718 : /* 8407 */
5719 : .ec = TALER_EC_ANASTASIS_REDUCER_RESOURCE_MISSING,
5720 : .hint = "A required resource file is missing.",
5721 : .http_code = MHD_HTTP_UNINITIALIZED
5722 : },
5723 :
5724 : {
5725 : /* 8408 */
5726 : .ec = TALER_EC_ANASTASIS_REDUCER_INPUT_REGEX_FAILED,
5727 : .hint = "An input did not match the regular expression.",
5728 : .http_code = MHD_HTTP_UNINITIALIZED
5729 : },
5730 :
5731 : {
5732 : /* 8409 */
5733 : .ec = TALER_EC_ANASTASIS_REDUCER_INPUT_VALIDATION_FAILED,
5734 : .hint = "An input did not match the custom validation logic.",
5735 : .http_code = MHD_HTTP_UNINITIALIZED
5736 : },
5737 :
5738 : {
5739 : /* 8410 */
5740 : .ec = TALER_EC_ANASTASIS_REDUCER_POLICY_LOOKUP_FAILED,
5741 : .hint =
5742 : "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.",
5743 : .http_code = MHD_HTTP_UNINITIALIZED
5744 : },
5745 :
5746 : {
5747 : /* 8411 */
5748 : .ec = TALER_EC_ANASTASIS_REDUCER_BACKUP_PROVIDER_FAILED,
5749 : .hint = "Anastasis provider reported a fatal failure.",
5750 : .http_code = MHD_HTTP_UNINITIALIZED
5751 : },
5752 :
5753 : {
5754 : /* 8412 */
5755 : .ec = TALER_EC_ANASTASIS_REDUCER_PROVIDER_CONFIG_FAILED,
5756 : .hint =
5757 : "Anastasis provider failed to respond to the configuration request.",
5758 : .http_code = MHD_HTTP_UNINITIALIZED
5759 : },
5760 :
5761 : {
5762 : /* 8413 */
5763 : .ec = TALER_EC_ANASTASIS_REDUCER_POLICY_MALFORMED,
5764 : .hint =
5765 : "The downloaded policy is malformed. This was likely caused by a client error while creating the backup.",
5766 : .http_code = MHD_HTTP_UNINITIALIZED
5767 : },
5768 :
5769 : {
5770 : /* 8414 */
5771 : .ec = TALER_EC_ANASTASIS_REDUCER_NETWORK_FAILED,
5772 : .hint = "The policy could not be obtained, likely due to a network issue.",
5773 : .http_code = MHD_HTTP_UNINITIALIZED
5774 : },
5775 :
5776 : {
5777 : /* 8415 */
5778 : .ec = TALER_EC_ANASTASIS_REDUCER_SECRET_MALFORMED,
5779 : .hint = "The recovered secret did not match the required syntax.",
5780 : .http_code = MHD_HTTP_UNINITIALIZED
5781 : },
5782 :
5783 : {
5784 : /* 8416 */
5785 : .ec = TALER_EC_ANASTASIS_REDUCER_CHALLENGE_DATA_TOO_BIG,
5786 : .hint =
5787 : "The challenge data provided is too large for the available providers.",
5788 : .http_code = MHD_HTTP_UNINITIALIZED
5789 : },
5790 :
5791 : {
5792 : /* 8417 */
5793 : .ec = TALER_EC_ANASTASIS_REDUCER_SECRET_TOO_BIG,
5794 : .hint = "The provided core secret is too large for some of the providers.",
5795 : .http_code = MHD_HTTP_UNINITIALIZED
5796 : },
5797 :
5798 : {
5799 : /* 8418 */
5800 : .ec = TALER_EC_ANASTASIS_REDUCER_PROVIDER_INVALID_CONFIG,
5801 : .hint = "The provider returned an invalid configuration.",
5802 : .http_code = MHD_HTTP_UNINITIALIZED
5803 : },
5804 :
5805 : {
5806 : /* 8419 */
5807 : .ec = TALER_EC_ANASTASIS_REDUCER_INTERNAL_ERROR,
5808 : .hint =
5809 : "The reducer encountered an internal error, likely a bug that needs to be reported.",
5810 : .http_code = MHD_HTTP_UNINITIALIZED
5811 : },
5812 :
5813 : {
5814 : /* 8420 */
5815 : .ec = TALER_EC_ANASTASIS_REDUCER_PROVIDERS_ALREADY_SYNCED,
5816 : .hint = "The reducer already synchronized with all providers.",
5817 : .http_code = MHD_HTTP_UNINITIALIZED
5818 : },
5819 :
5820 : {
5821 : /* 8606 */
5822 : .ec = TALER_EC_DONAU_GENERIC_INVALID_DENOMINATION_CIPHER_FOR_OPERATION,
5823 : .hint =
5824 : "The requested operation is not valid for the cipher used by the selected denomination.",
5825 : .http_code = MHD_HTTP_BAD_REQUEST
5826 : },
5827 :
5828 : {
5829 : /* 8607 */
5830 : .ec = TALER_EC_DONAU_GENERIC_KEYS_MISSING,
5831 : .hint =
5832 : "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.",
5833 : .http_code = MHD_HTTP_SERVICE_UNAVAILABLE
5834 : },
5835 :
5836 : {
5837 : /* 8608 */
5838 : .ec = TALER_EC_DONAU_CHARITY_SIGNATURE_INVALID,
5839 : .hint = "The signature of the charity key is not valid.",
5840 : .http_code = MHD_HTTP_FORBIDDEN
5841 : },
5842 :
5843 : {
5844 : /* 8609 */
5845 : .ec = TALER_EC_DONAU_CHARITY_NOT_FOUND,
5846 : .hint = "The charity is unknown.",
5847 : .http_code = MHD_HTTP_NOT_FOUND
5848 : },
5849 :
5850 : {
5851 : /* 8610 */
5852 : .ec = TALER_EC_DONAU_EXCEEDING_DONATION_LIMIT,
5853 : .hint =
5854 : "The donation amount specified in the request exceeds the limit of the charity.",
5855 : .http_code = MHD_HTTP_CONFLICT
5856 : },
5857 :
5858 : {
5859 : /* 8611 */
5860 : .ec = TALER_EC_DONAU_GENERIC_DONATION_UNIT_UNKNOWN,
5861 : .hint =
5862 : "The Donau is not aware of the donation unit requested for the operation.",
5863 : .http_code = MHD_HTTP_NOT_FOUND
5864 : },
5865 :
5866 : {
5867 : /* 8612 */
5868 : .ec = TALER_EC_DONAU_DONATION_UNIT_HELPER_UNAVAILABLE,
5869 : .hint =
5870 : "The Donau failed to talk to the process responsible for its private donation unit keys or the helpers had no donation units (properly) configured.",
5871 : .http_code = MHD_HTTP_BAD_GATEWAY
5872 : },
5873 :
5874 : {
5875 : /* 8613 */
5876 : .ec = TALER_EC_DONAU_SIGNKEY_HELPER_UNAVAILABLE,
5877 : .hint =
5878 : "The Donau failed to talk to the process responsible for its private signing keys.",
5879 : .http_code = MHD_HTTP_BAD_GATEWAY
5880 : },
5881 :
5882 : {
5883 : /* 8614 */
5884 : .ec = TALER_EC_DONAU_SIGNKEY_HELPER_BUG,
5885 : .hint =
5886 : "The response from the online signing key helper process was malformed.",
5887 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
5888 : },
5889 :
5890 : {
5891 : /* 8615 */
5892 : .ec = TALER_EC_DONAU_GENERIC_WRONG_NUMBER_OF_SEGMENTS,
5893 : .hint =
5894 : "The number of segments included in the URI does not match the number of segments expected by the endpoint.",
5895 : .http_code = MHD_HTTP_NOT_FOUND
5896 : },
5897 :
5898 : {
5899 : /* 8616 */
5900 : .ec = TALER_EC_DONAU_DONATION_RECEIPT_SIGNATURE_INVALID,
5901 : .hint = "The signature of the donation receipt is not valid.",
5902 : .http_code = MHD_HTTP_FORBIDDEN
5903 : },
5904 :
5905 : {
5906 : /* 8617 */
5907 : .ec = TALER_EC_DONAU_DONOR_IDENTIFIER_NONCE_REUSE,
5908 : .hint =
5909 : "The client reused a unique donor identifier nonce, which is not allowed.",
5910 : .http_code = MHD_HTTP_CONFLICT
5911 : },
5912 :
5913 : {
5914 : /* 8618 */
5915 : .ec = TALER_EC_DONAU_CHARITY_PUB_EXISTS,
5916 : .hint = "A charity with the same public key is already registered.",
5917 : .http_code = MHD_HTTP_NOT_FOUND
5918 : },
5919 :
5920 : {
5921 : /* 8619 */
5922 : .ec = TALER_EC_DONAU_GENERIC_DONATION_UNIT_EXPIRED,
5923 : .hint = "The donation unit has expired and cannot be used any longer.",
5924 : .http_code = MHD_HTTP_GONE
5925 : },
5926 :
5927 : {
5928 : /* 8620 */
5929 : .ec = TALER_EC_DONAU_GENERIC_DONATION_UNIT_TOO_EARLY,
5930 : .hint =
5931 : "The donation unit is not yet valid. The client should repeat the request in the future when it might succeed.",
5932 : .http_code = MHD_HTTP_TOO_EARLY
5933 : },
5934 :
5935 : {
5936 : /* 8621 */
5937 : .ec = TALER_EC_DONAU_GENERIC_DONATION_UNIT_WRONG_YEAR,
5938 : .hint =
5939 : "The donation unit is not valid for the year specified by the client.",
5940 : .http_code = MHD_HTTP_CONFLICT
5941 : },
5942 :
5943 : {
5944 : /* 9000 */
5945 : .ec = TALER_EC_LIBEUFIN_NEXUS_GENERIC_ERROR,
5946 : .hint =
5947 : "A generic error occurred in the LibEuFin nexus. See the enclosed details JSON for more information.",
5948 : .http_code = MHD_HTTP_UNINITIALIZED
5949 : },
5950 :
5951 : {
5952 : /* 9001 */
5953 : .ec = TALER_EC_LIBEUFIN_NEXUS_UNCAUGHT_EXCEPTION,
5954 : .hint = "An uncaught exception happened in the LibEuFin nexus service.",
5955 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
5956 : },
5957 :
5958 : {
5959 : /* 9500 */
5960 : .ec = TALER_EC_LIBEUFIN_SANDBOX_GENERIC_ERROR,
5961 : .hint =
5962 : "A generic error occurred in the LibEuFin sandbox. See the enclosed details JSON for more information.",
5963 : .http_code = MHD_HTTP_UNINITIALIZED
5964 : },
5965 :
5966 : {
5967 : /* 9501 */
5968 : .ec = TALER_EC_LIBEUFIN_SANDBOX_UNCAUGHT_EXCEPTION,
5969 : .hint = "An uncaught exception happened in the LibEuFin sandbox service.",
5970 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
5971 : },
5972 :
5973 : {
5974 : /* 9600 */
5975 : .ec = TALER_EC_TALDIR_METHOD_NOT_SUPPORTED,
5976 : .hint = "This validation method is not supported by the service.",
5977 : .http_code = MHD_HTTP_NOT_FOUND
5978 : },
5979 :
5980 : {
5981 : /* 9601 */
5982 : .ec = TALER_EC_TALDIR_REGISTER_RATE_LIMITED,
5983 : .hint = "Number of allowed attempts for initiating a challenge exceeded.",
5984 : .http_code = MHD_HTTP_TOO_MANY_REQUESTS
5985 : },
5986 :
5987 : {
5988 : /* 9750 */
5989 : .ec = TALER_EC_CHALLENGER_GENERIC_CLIENT_UNKNOWN,
5990 : .hint =
5991 : "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.",
5992 : .http_code = MHD_HTTP_NOT_FOUND
5993 : },
5994 :
5995 : {
5996 : /* 9751 */
5997 : .ec = TALER_EC_CHALLENGER_GENERIC_CLIENT_FORBIDDEN_BAD_REDIRECT_URI,
5998 : .hint = "The client is not authorized to use the given redirect URI.",
5999 : .http_code = MHD_HTTP_UNAUTHORIZED
6000 : },
6001 :
6002 : {
6003 : /* 9752 */
6004 : .ec = TALER_EC_CHALLENGER_HELPER_EXEC_FAILED,
6005 : .hint =
6006 : "The service failed to execute its helper process to send the challenge.",
6007 : .http_code = MHD_HTTP_BAD_GATEWAY
6008 : },
6009 :
6010 : {
6011 : /* 9753 */
6012 : .ec = TALER_EC_CHALLENGER_GRANT_UNKNOWN,
6013 : .hint =
6014 : "The authorization grant is unknown to the service (it could also have been redeemed already or have expired).",
6015 : .http_code = MHD_HTTP_BAD_REQUEST
6016 : },
6017 :
6018 : {
6019 : /* 9754 */
6020 : .ec = TALER_EC_CHALLENGER_CLIENT_FORBIDDEN_BAD_CODE,
6021 : .hint = "The code given is not even well-formed.",
6022 : .http_code = MHD_HTTP_BAD_REQUEST
6023 : },
6024 :
6025 : {
6026 : /* 9755 */
6027 : .ec = TALER_EC_CHALLENGER_GENERIC_VALIDATION_UNKNOWN,
6028 : .hint =
6029 : "The service is not aware of the referenced validation process, or it has expired.",
6030 : .http_code = MHD_HTTP_NOT_FOUND
6031 : },
6032 :
6033 : {
6034 : /* 9756 */
6035 : .ec = TALER_EC_CHALLENGER_CLIENT_FORBIDDEN_INVALID_CODE,
6036 : .hint =
6037 : "Deprecated, no longer returned by any endpoint. The value stays reserved and must not be reused. Was: the code given is not valid.",
6038 : .http_code = MHD_HTTP_FORBIDDEN
6039 : },
6040 :
6041 : {
6042 : /* 9757 */
6043 : .ec = TALER_EC_CHALLENGER_TOO_MANY_ATTEMPTS,
6044 : .hint =
6045 : "Too many attempts have been made, validation is temporarily disabled for this address.",
6046 : .http_code = MHD_HTTP_TOO_MANY_REQUESTS
6047 : },
6048 :
6049 : {
6050 : /* 9758 */
6051 : .ec = TALER_EC_CHALLENGER_INVALID_PIN,
6052 : .hint = "The TAN code provided is incorrect.",
6053 : .http_code = MHD_HTTP_FORBIDDEN
6054 : },
6055 :
6056 : {
6057 : /* 9759 */
6058 : .ec = TALER_EC_CHALLENGER_MISSING_ADDRESS,
6059 : .hint =
6060 : "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.",
6061 : .http_code = MHD_HTTP_CONFLICT
6062 : },
6063 :
6064 : {
6065 : /* 9760 */
6066 : .ec = TALER_EC_CHALLENGER_CLIENT_FORBIDDEN_READ_ONLY,
6067 : .hint = "The client is not allowed to change the address being validated.",
6068 : .http_code = MHD_HTTP_FORBIDDEN
6069 : },
6070 :
6071 : {
6072 : /* 9761 */
6073 : .ec = TALER_EC_CHALLENGER_NO_CHALLENGE_TRANSMITTED,
6074 : .hint =
6075 : "No challenge was ever transmitted for this validation, so it cannot be solved yet. The user must provide their address first.",
6076 : .http_code = MHD_HTTP_CONFLICT
6077 : },
6078 :
6079 : {
6080 : /* 9762 */
6081 : .ec = TALER_EC_CHALLENGER_ADDRESS_RESTRICTION_VIOLATED,
6082 : .hint =
6083 : "An address field does not match the regular expression configured for it. The detail names the offending field.",
6084 : .http_code = MHD_HTTP_BAD_REQUEST
6085 : },
6086 :
6087 : {
6088 : /* 9763 */
6089 : .ec = TALER_EC_CHALLENGER_ADDRESS_RESTRICTION_MALFORMED,
6090 : .hint =
6091 : "The address restriction configured for this field is missing its regular expression or the expression failed to compile. This is a server misconfiguration.",
6092 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
6093 : },
6094 :
6095 : {
6096 : /* 9764 */
6097 : .ec = TALER_EC_CHALLENGER_TOO_MANY_ADDRESS_CHANGES,
6098 : .hint =
6099 : "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.",
6100 : .http_code = MHD_HTTP_TOO_MANY_REQUESTS
6101 : },
6102 :
6103 : {
6104 : /* 9765 */
6105 : .ec = TALER_EC_CHALLENGER_TOO_MANY_PIN_TRANSMISSIONS,
6106 : .hint =
6107 : "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.",
6108 : .http_code = MHD_HTTP_TOO_MANY_REQUESTS
6109 : },
6110 :
6111 : {
6112 : /* 9766 */
6113 : .ec = TALER_EC_CHALLENGER_NO_PIN_ATTEMPTS_LEFT,
6114 : .hint =
6115 : "The number of attempts to enter the TAN has been exhausted. The user may still request a retransmission or change the address.",
6116 : .http_code = MHD_HTTP_TOO_MANY_REQUESTS
6117 : },
6118 :
6119 : {
6120 : /* 9767 */
6121 : .ec = TALER_EC_CHALLENGER_CLIENT_AUTHENTICATION_FAILED,
6122 : .hint =
6123 : "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.",
6124 : .http_code = MHD_HTTP_UNAUTHORIZED
6125 : },
6126 :
6127 : {
6128 : /* 9768 */
6129 : .ec = TALER_EC_CHALLENGER_TOKEN_UNKNOWN,
6130 : .hint =
6131 : "The access token presented is malformed, unknown or expired. Malformed and unknown tokens are deliberately not distinguished.",
6132 : .http_code = MHD_HTTP_UNAUTHORIZED
6133 : },
6134 :
6135 : {
6136 : /* 9769 */
6137 : .ec = TALER_EC_CHALLENGER_ADDRESS_UNUSABLE,
6138 : .hint =
6139 : "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.",
6140 : .http_code = MHD_HTTP_BAD_REQUEST
6141 : },
6142 :
6143 : {
6144 : /* 9770 */
6145 : .ec = TALER_EC_CHALLENGER_ADDRESS_UNREACHABLE,
6146 : .hint =
6147 : "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.",
6148 : .http_code = MHD_HTTP_SERVICE_UNAVAILABLE
6149 : },
6150 :
6151 : {
6152 : /* 9771 */
6153 : .ec = TALER_EC_CHALLENGER_HELPER_MISCONFIGURED,
6154 : .hint =
6155 : "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.",
6156 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
6157 : },
6158 :
6159 : {
6160 : /* 9772 */
6161 : .ec = TALER_EC_CHALLENGER_VALIDATION_FAILED,
6162 : .hint =
6163 : "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.",
6164 : .http_code = MHD_HTTP_GONE
6165 : },
6166 :
6167 : {
6168 : /* 9800 */
6169 : .ec = TALER_EC_PAIVANA_PAYMENT_MISSING,
6170 : .hint =
6171 : "The request is invalid as the specified order is unpaid. The client should only call this endpoint after paying the order.",
6172 : .http_code = MHD_HTTP_CONFLICT
6173 : },
6174 :
6175 : {
6176 : /* 9801 */
6177 : .ec = TALER_EC_PAIVANA_BACKEND_REFUSED,
6178 : .hint =
6179 : "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.",
6180 : .http_code = MHD_HTTP_BAD_GATEWAY
6181 : },
6182 :
6183 : {
6184 : /* 9802 */
6185 : .ec = TALER_EC_PAIVANA_ORDER_UNKNOWN,
6186 : .hint =
6187 : "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.",
6188 : .http_code = MHD_HTTP_NOT_FOUND
6189 : },
6190 :
6191 : {
6192 : /* 9803 */
6193 : .ec = TALER_EC_PAIVANA_BACKEND_ERROR,
6194 : .hint =
6195 : "The merchant backend returned an unexpected status code. This is probably a protocol incompatibility that should be reported to the developers.",
6196 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
6197 : },
6198 :
6199 : {
6200 : /* 9804 */
6201 : .ec = TALER_EC_PAIVANA_GET_ORDER_FAILED,
6202 : .hint =
6203 : "Paivana failed to initialize the request to check the payment status. This should never happen. The system administrator should consult the logs.",
6204 : .http_code = MHD_HTTP_INTERNAL_SERVER_ERROR
6205 : },
6206 :
6207 : {
6208 : /* 9805 */
6209 : .ec = TALER_EC_PAIVANA_WRONG_ORDER,
6210 : .hint =
6211 : "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.",
6212 : .http_code = MHD_HTTP_CONFLICT
6213 : },
6214 :
6215 : {
6216 : /* 9806 */
6217 : .ec = TALER_EC_PAIVANA_TOO_LATE,
6218 : .hint =
6219 : "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.",
6220 : .http_code = MHD_HTTP_GONE
6221 : },
6222 :
6223 : {
6224 : /* 9807 */
6225 : .ec = TALER_EC_PAIVANA_TEMPLATE_UNKNOWN,
6226 : .hint =
6227 : "The payment template specified in the request is unknown to the backend.",
6228 : .http_code = MHD_HTTP_NOT_FOUND
6229 : },
6230 :
6231 : {
6232 : /* 9808 */
6233 : .ec = TALER_EC_PAIVANA_PAYWALL_DISABLED,
6234 : .hint =
6235 : "The paywall functionality is currently disabled. Thus, proofs of payment are unnecessary and also not supported.",
6236 : .http_code = MHD_HTTP_NOT_IMPLEMENTED
6237 : },
6238 :
6239 : {
6240 : /* 9809 */
6241 : .ec = TALER_EC_PAIVANA_INVALID_TARGET,
6242 : .hint =
6243 : "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.",
6244 : .http_code = MHD_HTTP_CONFLICT
6245 : },
6246 :
6247 : {
6248 : /* 9999 */
6249 : .ec = TALER_EC_END,
6250 : .hint = "End of error code range.",
6251 : .http_code = MHD_HTTP_UNINITIALIZED
6252 : },
6253 :
6254 :
6255 : };
6256 :
6257 :
6258 : /**
6259 : * The length of @e code_hint_pairs.
6260 : */
6261 : static const unsigned int code_hint_pairs_length = 806;
6262 :
6263 :
6264 : const char *
6265 152 : TALER_ErrorCode_get_hint (enum TALER_ErrorCode ec)
6266 : {
6267 152 : unsigned int lower = 0;
6268 152 : unsigned int upper = code_hint_pairs_length - 1;
6269 152 : unsigned int mid = upper / 2;
6270 1224 : while (lower <= upper)
6271 : {
6272 1224 : mid = (upper + lower) / 2;
6273 1224 : if (code_hint_pairs[mid].ec < ec)
6274 : {
6275 326 : lower = mid + 1;
6276 : }
6277 898 : else if (code_hint_pairs[mid].ec > ec)
6278 : {
6279 746 : upper = mid - 1;
6280 : }
6281 : else
6282 : {
6283 152 : return code_hint_pairs[mid].hint;
6284 : }
6285 : }
6286 0 : return "<no hint found>";
6287 : }
6288 :
6289 :
6290 : unsigned int
6291 37 : TALER_ErrorCode_get_http_status (enum TALER_ErrorCode ec)
6292 : {
6293 37 : unsigned int lower = 0;
6294 37 : unsigned int upper = code_hint_pairs_length - 1;
6295 37 : unsigned int mid = upper / 2;
6296 255 : while (lower <= upper)
6297 : {
6298 255 : mid = (upper + lower) / 2;
6299 255 : if (code_hint_pairs[mid].ec < ec)
6300 : {
6301 55 : lower = mid + 1;
6302 : }
6303 200 : else if (code_hint_pairs[mid].ec > ec)
6304 : {
6305 163 : upper = mid - 1;
6306 : }
6307 : else
6308 : {
6309 37 : return code_hint_pairs[mid].http_code;
6310 : }
6311 : }
6312 0 : return UINT_MAX;
6313 : }
6314 :
6315 :
6316 : unsigned int
6317 35 : TALER_ErrorCode_get_http_status_safe (enum TALER_ErrorCode ec)
6318 : {
6319 : unsigned int hc;
6320 :
6321 35 : hc = TALER_ErrorCode_get_http_status (ec);
6322 35 : if ( (0 == hc) ||
6323 : (UINT_MAX == hc) )
6324 0 : return MHD_HTTP_INTERNAL_SERVER_ERROR;
6325 35 : return hc;
6326 : }
6327 :
6328 :
6329 : void __attribute__ ((constructor))
6330 : TALER_ErrorCode_check_invariants (void);
6331 :
6332 : void __attribute__ ((constructor))
6333 777 : TALER_ErrorCode_check_invariants (void)
6334 : {
6335 626262 : for (unsigned int i = 1; i < code_hint_pairs_length; i++)
6336 625485 : GNUNET_assert (code_hint_pairs[i - 1].ec <
6337 : code_hint_pairs[i].ec);
6338 777 : }
|