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