diff options
Diffstat (limited to 'gnu-taler-error-codes')
-rw-r--r-- | gnu-taler-error-codes/.gitignore | 1 | ||||
-rw-r--r-- | gnu-taler-error-codes/Makefile | 7 | ||||
-rw-r--r-- | gnu-taler-error-codes/py.header | 30 | ||||
-rw-r--r-- | gnu-taler-error-codes/py.template | 9 | ||||
-rw-r--r-- | gnu-taler-error-codes/registry.rec | 106 |
5 files changed, 105 insertions, 48 deletions
diff --git a/gnu-taler-error-codes/.gitignore b/gnu-taler-error-codes/.gitignore index 2379b4c..2eed484 100644 --- a/gnu-taler-error-codes/.gitignore +++ b/gnu-taler-error-codes/.gitignore | |||
@@ -3,3 +3,4 @@ | |||
3 | *.h | 3 | *.h |
4 | *.tmp | 4 | *.tmp |
5 | *.ts | 5 | *.ts |
6 | taler_error_codes.py | ||
diff --git a/gnu-taler-error-codes/Makefile b/gnu-taler-error-codes/Makefile index 502c6f2..b7885f5 100644 --- a/gnu-taler-error-codes/Makefile +++ b/gnu-taler-error-codes/Makefile | |||
@@ -1,6 +1,7 @@ | |||
1 | FILES=taler_error_codes.h \ | 1 | FILES=taler_error_codes.h \ |
2 | taler_error_codes.c \ | 2 | taler_error_codes.c \ |
3 | taler_error_codes.ts \ | 3 | taler_error_codes.ts \ |
4 | taler_error_codes.py \ | ||
4 | taler_error_codes.kt | 5 | taler_error_codes.kt |
5 | 6 | ||
6 | all: check $(FILES) | 7 | all: check $(FILES) |
@@ -58,5 +59,11 @@ taler_error_codes.kt.tmp: combined.tmp kt.template | |||
58 | taler_error_codes.kt: kt.header taler_error_codes.kt.tmp kt.footer | 59 | taler_error_codes.kt: kt.header taler_error_codes.kt.tmp kt.footer |
59 | cat $^ > $@ | 60 | cat $^ > $@ |
60 | 61 | ||
62 | taler_error_codes.py.tmp: combined.tmp py.template | ||
63 | ../format.sh py.template < combined.tmp > $@ | ||
64 | |||
65 | taler_error_codes.py: py.header taler_error_codes.py.tmp | ||
66 | cat $^ > $@ | ||
67 | |||
61 | 68 | ||
62 | .PHONY: check clean distclean prep | 69 | .PHONY: check clean distclean prep |
diff --git a/gnu-taler-error-codes/py.header b/gnu-taler-error-codes/py.header new file mode 100644 index 0000000..dea0c21 --- /dev/null +++ b/gnu-taler-error-codes/py.header | |||
@@ -0,0 +1,30 @@ | |||
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 | |||
24 | from enum import IntEnum,unique | ||
25 | |||
26 | """ | ||
27 | Error codes used by GNU Taler. | ||
28 | """ | ||
29 | @unique | ||
30 | class ErrorCode(IntEnum): | ||
diff --git a/gnu-taler-error-codes/py.template b/gnu-taler-error-codes/py.template new file mode 100644 index 0000000..292678d --- /dev/null +++ b/gnu-taler-error-codes/py.template | |||
@@ -0,0 +1,9 @@ | |||
1 | |||
2 | |||
3 | """ | ||
4 | {{Description}} | ||
5 | Returned with an HTTP status code of #MHD_HTTP_{{HttpStatus_Identifier}} ({{HttpStatus_Value}}). | ||
6 | (A value of 0 indicates that the error is generated client-side). | ||
7 | """ | ||
8 | {{Name}} = {{Value}} | ||
9 | |||
diff --git a/gnu-taler-error-codes/registry.rec b/gnu-taler-error-codes/registry.rec index 787003a..0e97524 100644 --- a/gnu-taler-error-codes/registry.rec +++ b/gnu-taler-error-codes/registry.rec | |||
@@ -45,12 +45,12 @@ HttpStatus: 0 | |||
45 | Value: 4 | 45 | Value: 4 |
46 | Name: EXCHANGE_BAD_CONFIGURATION | 46 | Name: EXCHANGE_BAD_CONFIGURATION |
47 | Description: Exchange is badly configured and thus cannot operate. | 47 | Description: Exchange is badly configured and thus cannot operate. |
48 | HttpStatus: 0 | 48 | HttpStatus: 500 |
49 | 49 | ||
50 | Value: 5 | 50 | Value: 5 |
51 | Name: INTERNAL_INVARIANT_FAILURE | 51 | Name: INTERNAL_INVARIANT_FAILURE |
52 | Description: Internal assertion error. | 52 | Description: Internal assertion error. |
53 | HttpStatus: 0 | 53 | HttpStatus: 500 |
54 | 54 | ||
55 | Value: 6 | 55 | Value: 6 |
56 | Name: TIMEOUT | 56 | Name: TIMEOUT |
@@ -195,42 +195,42 @@ HttpStatus: 409 | |||
195 | Value: 1014 | 195 | Value: 1014 |
196 | Name: DB_COIN_HISTORY_STORE_ERROR | 196 | Name: DB_COIN_HISTORY_STORE_ERROR |
197 | Description: We failed to update the database of known coins. | 197 | Description: We failed to update the database of known coins. |
198 | HttpStatus: 0 | 198 | HttpStatus: 500 |
199 | 199 | ||
200 | Value: 1050 | 200 | Value: 1050 |
201 | Name: COINS_INVALID_COIN_PUB | 201 | Name: COINS_INVALID_COIN_PUB |
202 | Description: The public key of given to a /coins/ handler was malformed. | 202 | Description: The public key of given to a /coins/ handler was malformed. |
203 | HttpStatus: 0 | 203 | HttpStatus: 400 |
204 | 204 | ||
205 | Value: 1051 | 205 | Value: 1051 |
206 | Name: RESERVES_INVALID_RESERVE_PUB | 206 | Name: RESERVES_INVALID_RESERVE_PUB |
207 | Description: The reserve key of given to a /reserves/ handler was malformed. | 207 | Description: The reserve key of given to a /reserves/ handler was malformed. |
208 | HttpStatus: 0 | 208 | HttpStatus: 400 |
209 | 209 | ||
210 | Value: 1052 | 210 | Value: 1052 |
211 | Name: TRANSFERS_INVALID_WTID | 211 | Name: TRANSFERS_INVALID_WTID |
212 | Description: The public key of given to a /transfers/ handler was malformed. | 212 | Description: The public key of given to a /transfers/ handler was malformed. |
213 | HttpStatus: 0 | 213 | HttpStatus: 400 |
214 | 214 | ||
215 | Value: 1053 | 215 | Value: 1053 |
216 | Name: DEPOSITS_INVALID_H_WIRE | 216 | Name: DEPOSITS_INVALID_H_WIRE |
217 | Description: The wire hash of given to a /deposits/ handler was malformed. | 217 | Description: The wire hash of given to a /deposits/ handler was malformed. |
218 | HttpStatus: 0 | 218 | HttpStatus: 400 |
219 | 219 | ||
220 | Value: 1054 | 220 | Value: 1054 |
221 | Name: DEPOSITS_INVALID_MERCHANT_PUB | 221 | Name: DEPOSITS_INVALID_MERCHANT_PUB |
222 | Description: The merchant key of given to a /deposits/ handler was malformed. | 222 | Description: The merchant key of given to a /deposits/ handler was malformed. |
223 | HttpStatus: 0 | 223 | HttpStatus: 400 |
224 | 224 | ||
225 | Value: 1055 | 225 | Value: 1055 |
226 | Name: DEPOSITS_INVALID_H_CONTRACT_TERMS | 226 | Name: DEPOSITS_INVALID_H_CONTRACT_TERMS |
227 | Description: The hash of the contract terms given to a /deposits/ handler was malformed. | 227 | Description: The hash of the contract terms given to a /deposits/ handler was malformed. |
228 | HttpStatus: 0 | 228 | HttpStatus: 400 |
229 | 229 | ||
230 | Value: 1056 | 230 | Value: 1056 |
231 | Name: DEPOSITS_INVALID_COIN_PUB | 231 | Name: DEPOSITS_INVALID_COIN_PUB |
232 | Description: The coin public key of given to a /deposits/ handler was malformed. | 232 | Description: The coin public key of given to a /deposits/ handler was malformed. |
233 | HttpStatus: 0 | 233 | HttpStatus: 400 |
234 | 234 | ||
235 | Value: 1057 | 235 | Value: 1057 |
236 | Name: DEPOSITS_INVALID_BODY_BY_EXCHANGE | 236 | Name: DEPOSITS_INVALID_BODY_BY_EXCHANGE |
@@ -300,7 +300,7 @@ HttpStatus: 404 | |||
300 | Value: 1111 | 300 | Value: 1111 |
301 | Name: WITHDRAW_RESERVE_SIGNATURE_INVALID | 301 | Name: WITHDRAW_RESERVE_SIGNATURE_INVALID |
302 | Description: The signature of the reserve is not valid. | 302 | Description: The signature of the reserve is not valid. |
303 | HttpStatus: 400 | 303 | HttpStatus: 403 |
304 | 304 | ||
305 | Value: 1112 | 305 | Value: 1112 |
306 | Name: WITHDRAW_HISTORY_DB_ERROR_INSUFFICIENT_FUNDS | 306 | Name: WITHDRAW_HISTORY_DB_ERROR_INSUFFICIENT_FUNDS |
@@ -349,8 +349,8 @@ HttpStatus: 500 | |||
349 | 349 | ||
350 | Value: 1151 | 350 | Value: 1151 |
351 | Name: RESERVE_STATUS_UNKNOWN | 351 | Name: RESERVE_STATUS_UNKNOWN |
352 | Description: The reserve status was requested using a unknown key, to be returned with 404 Not Found. | 352 | Description: The reserve status was requested using a unknown key. |
353 | HttpStatus: 0 | 353 | HttpStatus: 404 |
354 | 354 | ||
355 | Value: 1152 | 355 | Value: 1152 |
356 | Name: RESERVE_STATUS_REPLY_MALFORMED | 356 | Name: RESERVE_STATUS_REPLY_MALFORMED |
@@ -385,12 +385,12 @@ HttpStatus: 404 | |||
385 | Value: 1205 | 385 | Value: 1205 |
386 | Name: DEPOSIT_COIN_SIGNATURE_INVALID | 386 | Name: DEPOSIT_COIN_SIGNATURE_INVALID |
387 | Description: The signature made by the coin over the deposit permission is not valid. | 387 | Description: The signature made by the coin over the deposit permission is not valid. |
388 | HttpStatus: 400 | 388 | HttpStatus: 403 |
389 | 389 | ||
390 | Value: 1206 | 390 | Value: 1206 |
391 | Name: DEPOSIT_DENOMINATION_SIGNATURE_INVALID | 391 | Name: DEPOSIT_DENOMINATION_SIGNATURE_INVALID |
392 | Description: The signature of the denomination key over the coin is not valid. | 392 | Description: The signature of the denomination key over the coin is not valid. |
393 | HttpStatus: 400 | 393 | HttpStatus: 403 |
394 | 394 | ||
395 | Value: 1207 | 395 | Value: 1207 |
396 | Name: DEPOSIT_NEGATIVE_VALUE_AFTER_FEE | 396 | Name: DEPOSIT_NEGATIVE_VALUE_AFTER_FEE |
@@ -445,7 +445,7 @@ HttpStatus: 0 | |||
445 | Value: 1222 | 445 | Value: 1222 |
446 | Name: DEPOSIT_CURRENCY_MISMATCH | 446 | Name: DEPOSIT_CURRENCY_MISMATCH |
447 | Description: The currency specified for the deposit is different from the currency of the coin. | 447 | Description: The currency specified for the deposit is different from the currency of the coin. |
448 | HttpStatus: 412 | 448 | HttpStatus: 400 |
449 | 449 | ||
450 | Value: 1300 | 450 | Value: 1300 |
451 | Name: MELT_INSUFFICIENT_FUNDS | 451 | Name: MELT_INSUFFICIENT_FUNDS |
@@ -480,12 +480,12 @@ HttpStatus: 400 | |||
480 | Value: 1306 | 480 | Value: 1306 |
481 | Name: MELT_DENOMINATION_SIGNATURE_INVALID | 481 | Name: MELT_DENOMINATION_SIGNATURE_INVALID |
482 | Description: The denomination key signature on the melted coin is invalid. | 482 | Description: The denomination key signature on the melted coin is invalid. |
483 | HttpStatus: 400 | 483 | HttpStatus: 403 |
484 | 484 | ||
485 | Value: 1307 | 485 | Value: 1307 |
486 | Name: MELT_COIN_SIGNATURE_INVALID | 486 | Name: MELT_COIN_SIGNATURE_INVALID |
487 | Description: The signature made with the coin to be melted is invalid. | 487 | Description: The signature made with the coin to be melted is invalid. |
488 | HttpStatus: 400 | 488 | HttpStatus: 403 |
489 | 489 | ||
490 | Value: 1308 | 490 | Value: 1308 |
491 | Name: MELT_HISTORY_DB_ERROR_INSUFFICIENT_FUNDS | 491 | Name: MELT_HISTORY_DB_ERROR_INSUFFICIENT_FUNDS |
@@ -495,7 +495,7 @@ HttpStatus: 500 | |||
495 | Value: 1309 | 495 | Value: 1309 |
496 | Name: MELT_COIN_EXPIRED_NO_ZOMBIE | 496 | Name: MELT_COIN_EXPIRED_NO_ZOMBIE |
497 | Description: 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). | 497 | Description: 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). |
498 | HttpStatus: 0 | 498 | HttpStatus: 400 |
499 | 499 | ||
500 | Value: 1310 | 500 | Value: 1310 |
501 | Name: MELT_INVALID_SIGNATURE_BY_EXCHANGE | 501 | Name: MELT_INVALID_SIGNATURE_BY_EXCHANGE |
@@ -505,7 +505,7 @@ HttpStatus: 0 | |||
505 | Value: 1311 | 505 | Value: 1311 |
506 | Name: MELT_CURRENCY_MISMATCH | 506 | Name: MELT_CURRENCY_MISMATCH |
507 | Description: The currency specified for the melt amount is different from the currency of the coin. | 507 | Description: The currency specified for the melt amount is different from the currency of the coin. |
508 | HttpStatus: 412 | 508 | HttpStatus: 400 |
509 | 509 | ||
510 | Value: 1351 | 510 | Value: 1351 |
511 | Name: REFRESH_RECOUP_DENOMINATION_KEY_NOT_FOUND | 511 | Name: REFRESH_RECOUP_DENOMINATION_KEY_NOT_FOUND |
@@ -540,7 +540,7 @@ HttpStatus: 500 | |||
540 | Value: 1372 | 540 | Value: 1372 |
541 | Name: REVEAL_SESSION_UNKNOWN | 541 | Name: REVEAL_SESSION_UNKNOWN |
542 | Description: The exchange is unaware of the refresh session specified in the request. | 542 | Description: The exchange is unaware of the refresh session specified in the request. |
543 | HttpStatus: 400 | 543 | HttpStatus: 404 |
544 | 544 | ||
545 | Value: 1373 | 545 | Value: 1373 |
546 | Name: REVEAL_DB_FETCH_SESSION_ERROR | 546 | Name: REVEAL_DB_FETCH_SESSION_ERROR |
@@ -590,7 +590,7 @@ HttpStatus: 400 | |||
590 | Value: 1382 | 590 | Value: 1382 |
591 | Name: REVEAL_LINK_SIGNATURE_INVALID | 591 | Name: REVEAL_LINK_SIGNATURE_INVALID |
592 | Description: The signature made with the coin over the link data is invalid. | 592 | Description: The signature made with the coin over the link data is invalid. |
593 | HttpStatus: 400 | 593 | HttpStatus: 403 |
594 | 594 | ||
595 | Value: 1383 | 595 | Value: 1383 |
596 | Name: REVEAL_KEYS_MISSING | 596 | Name: REVEAL_KEYS_MISSING |
@@ -600,7 +600,7 @@ HttpStatus: 500 | |||
600 | Value: 1384 | 600 | Value: 1384 |
601 | Name: REVEAL_INVALID_RCH | 601 | Name: REVEAL_INVALID_RCH |
602 | Description: The refresh session hash given to a /refreshes/ handler was malformed. | 602 | Description: The refresh session hash given to a /refreshes/ handler was malformed. |
603 | HttpStatus: 0 | 603 | HttpStatus: 400 |
604 | 604 | ||
605 | Value: 1385 | 605 | Value: 1385 |
606 | Name: REVEAL_REPLY_MALFORMED | 606 | Name: REVEAL_REPLY_MALFORMED |
@@ -685,7 +685,7 @@ HttpStatus: 400 | |||
685 | Value: 1513 | 685 | Value: 1513 |
686 | Name: REFUND_MERCHANT_SIGNATURE_INVALID | 686 | Name: REFUND_MERCHANT_SIGNATURE_INVALID |
687 | Description: The signature of the merchant is invalid. | 687 | Description: The signature of the merchant is invalid. |
688 | HttpStatus: 400 | 688 | HttpStatus: 403 |
689 | 689 | ||
690 | Value: 1514 | 690 | Value: 1514 |
691 | Name: REFUND_MERCHANT_SIGNING_FAILED | 691 | Name: REFUND_MERCHANT_SIGNING_FAILED |
@@ -775,7 +775,7 @@ HttpStatus: 500 | |||
775 | Value: 1804 | 775 | Value: 1804 |
776 | Name: DEPOSITS_GET_MERCHANT_SIGNATURE_INVALID | 776 | Name: DEPOSITS_GET_MERCHANT_SIGNATURE_INVALID |
777 | Description: The signature of the merchant is invalid. | 777 | Description: The signature of the merchant is invalid. |
778 | HttpStatus: 400 | 778 | HttpStatus: 403 |
779 | 779 | ||
780 | Value: 1850 | 780 | Value: 1850 |
781 | Name: RECOUP_DENOMINATION_KEY_UNKNOWN | 781 | Name: RECOUP_DENOMINATION_KEY_UNKNOWN |
@@ -790,7 +790,7 @@ HttpStatus: 403 | |||
790 | Value: 1852 | 790 | Value: 1852 |
791 | Name: RECOUP_DENOMINATION_SIGNATURE_INVALID | 791 | Name: RECOUP_DENOMINATION_SIGNATURE_INVALID |
792 | Description: The signature of the denomination key over the coin is not valid. | 792 | Description: The signature of the denomination key over the coin is not valid. |
793 | HttpStatus: 400 | 793 | HttpStatus: 403 |
794 | 794 | ||
795 | Value: 1853 | 795 | Value: 1853 |
796 | Name: RECOUP_DB_FETCH_FAILED | 796 | Name: RECOUP_DB_FETCH_FAILED |
@@ -864,8 +864,8 @@ HttpStatus: 404 | |||
864 | 864 | ||
865 | Value: 2002 | 865 | Value: 2002 |
866 | Name: PROPOSAL_INSTANCE_CONFIGURATION_LACKS_WIRE | 866 | Name: PROPOSAL_INSTANCE_CONFIGURATION_LACKS_WIRE |
867 | Description: The backend lacks a wire transfer method configuration option for the given instance. | 867 | Description: The backend lacks a wire transfer method configuration option for the given instance. Thus, this instance is unavailable (not findable for creating new orders). |
868 | HttpStatus: 0 | 868 | HttpStatus: 404 |
869 | 869 | ||
870 | Value: 2003 | 870 | Value: 2003 |
871 | Name: MERCHANT_FAILED_TO_LOAD_TEMPLATE | 871 | Name: MERCHANT_FAILED_TO_LOAD_TEMPLATE |
@@ -920,12 +920,12 @@ HttpStatus: 400 | |||
920 | Value: 2108 | 920 | Value: 2108 |
921 | Name: PAY_PAYMENT_INSUFFICIENT_DUE_TO_FEES | 921 | Name: PAY_PAYMENT_INSUFFICIENT_DUE_TO_FEES |
922 | Description: 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. | 922 | Description: 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. |
923 | HttpStatus: 202 | 923 | HttpStatus: 406 |
924 | 924 | ||
925 | Value: 2109 | 925 | Value: 2109 |
926 | Name: PAY_PAYMENT_INSUFFICIENT | 926 | Name: PAY_PAYMENT_INSUFFICIENT |
927 | Description: Even if we do not consider deposit and wire fees, the payment is insufficient to satisfy the required amount for the contract. | 927 | Description: Even if we do not consider deposit and wire fees, the payment is insufficient to satisfy the required amount for the contract. |
928 | HttpStatus: 202 | 928 | HttpStatus: 406 |
929 | 929 | ||
930 | Value: 2110 | 930 | Value: 2110 |
931 | Name: PAY_COIN_SIGNATURE_INVALID | 931 | Name: PAY_COIN_SIGNATURE_INVALID |
@@ -979,8 +979,8 @@ HttpStatus: 410 | |||
979 | 979 | ||
980 | Value: 2122 | 980 | Value: 2122 |
981 | Name: PAY_MERCHANT_FIELD_MISSING | 981 | Name: PAY_MERCHANT_FIELD_MISSING |
982 | Description: The "merchant" field is missing in the proposal data. | 982 | Description: 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. |
983 | HttpStatus: 400 | 983 | HttpStatus: 500 |
984 | 984 | ||
985 | Value: 2123 | 985 | Value: 2123 |
986 | Name: PAY_FAILED_COMPUTE_PROPOSAL_HASH | 986 | Name: PAY_FAILED_COMPUTE_PROPOSAL_HASH |
@@ -1287,10 +1287,15 @@ Name: POST_TRANSFERS_DB_LOOKUP_ERROR | |||
1287 | Description: We did failed to retrieve information from our database. | 1287 | Description: We did failed to retrieve information from our database. |
1288 | HttpStatus: 500 | 1288 | HttpStatus: 500 |
1289 | 1289 | ||
1290 | Value: 2448 | ||
1291 | Name: PATCH_INSTANCES_BAD_CURRENCY | ||
1292 | Description: The merchant backend cannot modify an instance with the given default max deposit fee or default max wire fee because the fee currencies are incompatible with the merchant's currency in the config. | ||
1293 | HttpStatus: 409 | ||
1294 | |||
1290 | Value: 2449 | 1295 | Value: 2449 |
1291 | Name: POST_INSTANCES_BAD_CURRENCY | 1296 | Name: POST_INSTANCES_BAD_CURRENCY |
1292 | Description: The merchant backend cannot create an instance with the given default max deposit fee or default max wire fee because the fee currencies are incompatible with the merchant's currency in the config. | 1297 | Description: The merchant backend cannot create an instance with the given default max deposit fee or default max wire fee because the fee currencies are incompatible with the merchant's currency in the config. |
1293 | HttpStatus: 400 | 1298 | HttpStatus: 409 |
1294 | 1299 | ||
1295 | Value: 2450 | 1300 | Value: 2450 |
1296 | Name: POST_INSTANCES_ALREADY_EXISTS | 1301 | Name: POST_INSTANCES_ALREADY_EXISTS |
@@ -1380,12 +1385,12 @@ HttpStatus: 500 | |||
1380 | Value: 2508 | 1385 | Value: 2508 |
1381 | Name: PROPOSAL_STORE_DB_ERROR_ALREADY_EXISTS | 1386 | Name: PROPOSAL_STORE_DB_ERROR_ALREADY_EXISTS |
1382 | Description: The backend encountered an error: the proposal already exists. | 1387 | Description: The backend encountered an error: the proposal already exists. |
1383 | HttpStatus: 500 | 1388 | HttpStatus: 409 |
1384 | 1389 | ||
1385 | Value: 2509 | 1390 | Value: 2509 |
1386 | Name: PROPOSAL_ORDER_BAD_CURRENCY | 1391 | Name: PROPOSAL_ORDER_BAD_CURRENCY |
1387 | Description: The order provided to the backend uses an amount in a currency that does not match the backend's configuration. | 1392 | Description: The order provided to the backend uses an amount in a currency that does not match the backend's configuration. |
1388 | HttpStatus: 400 | 1393 | HttpStatus: 409 |
1389 | 1394 | ||
1390 | Value: 2510 | 1395 | Value: 2510 |
1391 | Name: PROPOSAL_REPLY_MALFORMED | 1396 | Name: PROPOSAL_REPLY_MALFORMED |
@@ -1505,7 +1510,7 @@ HttpStatus: 409 | |||
1505 | Value: 2560 | 1510 | Value: 2560 |
1506 | Name: PRODUCTS_LOCK_INSUFFICIENT_STOCKS | 1511 | Name: PRODUCTS_LOCK_INSUFFICIENT_STOCKS |
1507 | Description: The lock request is for more products than we have left (unlocked) in stock. | 1512 | Description: The lock request is for more products than we have left (unlocked) in stock. |
1508 | HttpStatus: 409 | 1513 | HttpStatus: 410 |
1509 | 1514 | ||
1510 | Value: 2561 | 1515 | Value: 2561 |
1511 | Name: PRODUCTS_LOCK_UNKNOWN_PRODUCT | 1516 | Name: PRODUCTS_LOCK_UNKNOWN_PRODUCT |
@@ -1555,7 +1560,7 @@ HttpStatus: 500 | |||
1555 | Value: 2605 | 1560 | Value: 2605 |
1556 | Name: PAY_DB_STORE_PAYMENTS_ERROR | 1561 | Name: PAY_DB_STORE_PAYMENTS_ERROR |
1557 | Description: Payments are stored in a single db transaction; this error indicates that one db operation within that transaction failed. This might involve storing of coins or other related db operations, like starting/committing the db transaction or marking a contract as paid. | 1562 | Description: Payments are stored in a single db transaction; this error indicates that one db operation within that transaction failed. This might involve storing of coins or other related db operations, like starting/committing the db transaction or marking a contract as paid. |
1558 | HttpStatus: 0 | 1563 | HttpStatus: 500 |
1559 | 1564 | ||
1560 | Value: 2606 | 1565 | Value: 2606 |
1561 | Name: PAY_REFUND_SIGNATURE_FAILED | 1566 | Name: PAY_REFUND_SIGNATURE_FAILED |
@@ -1760,12 +1765,12 @@ HttpStatus: 0 | |||
1760 | Value: 2802 | 1765 | Value: 2802 |
1761 | Name: TIP_PICKUP_DB_ERROR_SOFT | 1766 | Name: TIP_PICKUP_DB_ERROR_SOFT |
1762 | Description: We encountered a DB error, repeating the request may work. | 1767 | Description: We encountered a DB error, repeating the request may work. |
1763 | HttpStatus: 0 | 1768 | HttpStatus: 500 |
1764 | 1769 | ||
1765 | Value: 2803 | 1770 | Value: 2803 |
1766 | Name: TIP_PICKUP_DB_ERROR_HARD | 1771 | Name: TIP_PICKUP_DB_ERROR_HARD |
1767 | Description: We encountered a DB error, repeating the request will not help. This is an internal server error. | 1772 | Description: We encountered a DB error, repeating the request will not help. This is an internal server error. |
1768 | HttpStatus: 0 | 1773 | HttpStatus: 500 |
1769 | 1774 | ||
1770 | Value: 2804 | 1775 | Value: 2804 |
1771 | Name: TIP_PICKUP_AMOUNT_CHANGED | 1776 | Name: TIP_PICKUP_AMOUNT_CHANGED |
@@ -1962,11 +1967,6 @@ Name: CHECK_PAYMENT_FAILED_COMPUTE_PROPOSAL_HASH | |||
1962 | Description: Failed computing a hash code (likely server out-of-memory). | 1967 | Description: Failed computing a hash code (likely server out-of-memory). |
1963 | HttpStatus: 500 | 1968 | HttpStatus: 500 |
1964 | 1969 | ||
1965 | Value: 2918 | ||
1966 | Name: CHECK_PAYMENT_SESSION_SIGNATURE_INVALID | ||
1967 | Description: Signature "session_sig" failed to verify. | ||
1968 | HttpStatus: 400 | ||
1969 | |||
1970 | Value: 2919 | 1970 | Value: 2919 |
1971 | Name: GET_ORDER_WRONG_CONTRACT | 1971 | Name: GET_ORDER_WRONG_CONTRACT |
1972 | Description: The order we found does not match the provided contract hash. | 1972 | Description: The order we found does not match the provided contract hash. |
@@ -2020,8 +2020,8 @@ HttpStatus: 500 | |||
2020 | 2020 | ||
2021 | Value: 3000 | 2021 | Value: 3000 |
2022 | Name: DEPOSIT_CONFIRMATION_SIGNATURE_INVALID | 2022 | Name: DEPOSIT_CONFIRMATION_SIGNATURE_INVALID |
2023 | Description: The signature from the exchange on the deposit confirmation is invalid. Returned with a "400 Bad Request" status code. | 2023 | Description: The signature from the exchange on the deposit confirmation is invalid. |
2024 | HttpStatus: 0 | 2024 | HttpStatus: 403 |
2025 | 2025 | ||
2026 | Value: 3001 | 2026 | Value: 3001 |
2027 | Name: DEPOSIT_CONFIRMATION_STORE_DB_ERROR | 2027 | Name: DEPOSIT_CONFIRMATION_STORE_DB_ERROR |
@@ -2156,7 +2156,7 @@ HttpStatus: 0 | |||
2156 | Value: 5500 | 2156 | Value: 5500 |
2157 | Name: BANK_TRANSFER_REQUEST_UID_REUSED | 2157 | Name: BANK_TRANSFER_REQUEST_UID_REUSED |
2158 | Description: The request UID for a request to transfer funds has already been used, but with different details for the transfer. | 2158 | Description: The request UID for a request to transfer funds has already been used, but with different details for the transfer. |
2159 | HttpStatus: 0 | 2159 | HttpStatus: 409 |
2160 | 2160 | ||
2161 | Value: 5600 | 2161 | Value: 5600 |
2162 | Name: BANK_WITHDRAWAL_OPERATION_RESERVE_SELECTION_CONFLICT | 2162 | Name: BANK_WITHDRAWAL_OPERATION_RESERVE_SELECTION_CONFLICT |
@@ -2200,7 +2200,7 @@ HttpStatus: 403 | |||
2200 | 2200 | ||
2201 | Value: 6008 | 2201 | Value: 6008 |
2202 | Name: SYNC_MALFORMED_CONTENT_LENGTH | 2202 | Name: SYNC_MALFORMED_CONTENT_LENGTH |
2203 | Description: The "Content-length" field for the upload is either not a number, or too big. | 2203 | Description: The "Content-length" field for the upload is not a number. |
2204 | HttpStatus: 400 | 2204 | HttpStatus: 400 |
2205 | 2205 | ||
2206 | Value: 6009 | 2206 | Value: 6009 |
@@ -2366,6 +2366,16 @@ Name: WALLET_BANK_INTEGRATION_PROTOCOL_VERSION_INCOMPATIBLE | |||
2366 | Description: The wallet does not implement a version of the bank integration API that is compatible with the version offered by the bank. | 2366 | Description: The wallet does not implement a version of the bank integration API that is compatible with the version offered by the bank. |
2367 | HttpStatus: 0 | 2367 | HttpStatus: 0 |
2368 | 2368 | ||
2369 | Value: 7018 | ||
2370 | Name: WALLET_CONTRACT_TERMS_BASE_URL_MISMATCH | ||
2371 | Description: 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. | ||
2372 | HttpStatus: 0 | ||
2373 | |||
2374 | Value: 7019 | ||
2375 | Name: WALLET_CONTRACT_TERMS_SIGNATURE_INVALID | ||
2376 | Description: The merchant's signature on the contract terms is invalid. | ||
2377 | HttpStatus: 0 | ||
2378 | |||
2369 | # 8000 - 8999: Reserved for Anastasis | 2379 | # 8000 - 8999: Reserved for Anastasis |
2370 | 2380 | ||
2371 | Value: 8000 | 2381 | Value: 8000 |