aboutsummaryrefslogtreecommitdiff
path: root/gnu-taler-error-codes/registry.rec
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-11-07 23:22:29 +0100
committerChristian Grothoff <christian@grothoff.org>2020-11-07 23:22:29 +0100
commitf86f2662149bc40a20b72e359385d3f1a91b4105 (patch)
tree3a12250e2132619b2b43572b3a1f6ea2c0ed0ea6 /gnu-taler-error-codes/registry.rec
parentd651837234f45c5838fd2ef38c780a8bb6b8cef5 (diff)
downloadgana-f86f2662149bc40a20b72e359385d3f1a91b4105.tar.gz
gana-f86f2662149bc40a20b72e359385d3f1a91b4105.zip
introduce generic codes for common exchange failures
Diffstat (limited to 'gnu-taler-error-codes/registry.rec')
-rw-r--r--gnu-taler-error-codes/registry.rec41
1 files changed, 11 insertions, 30 deletions
diff --git a/gnu-taler-error-codes/registry.rec b/gnu-taler-error-codes/registry.rec
index 5d2f93b..542d4b0 100644
--- a/gnu-taler-error-codes/registry.rec
+++ b/gnu-taler-error-codes/registry.rec
@@ -630,6 +630,17 @@ Name: MERCHANT_GENERIC_CONTRACT_HASH_DOES_NOT_MATCH_ORDER
630Description: The order we found does not match the provided contract hash. 630Description: The order we found does not match the provided contract hash.
631HttpStatus: 403 631HttpStatus: 403
632 632
633Value: 2010
634Name: MERCHANT_GENERIC_EXCHANGE_KEYS_FAILURE
635Description: The exchange failed to provide a valid response to the merchant's /keys request.
636HttpStatus: 502
637
638Value: 2011
639Name: MERCHANT_GENERIC_EXCHANGE_TIMEOUT
640Description: The exchange failed to respond to the merchant on time.
641HttpStatus: 504
642
643
633 644
634# 2100-2499: public API 645# 2100-2499: public API
635# 2100-2149: get orders endpoint 646# 2100-2149: get orders endpoint
@@ -640,11 +651,6 @@ Description: The exchange failed to provide a valid answer to the tracking reque
640HttpStatus: 200 651HttpStatus: 200
641 652
642 653
643Value: 2102
644Name: MERCHANT_GET_ORDERS_ID_EXCHANGE_LOOKUP_FAILURE
645Description: The merchant backend failed trying to contact the exchange for tracking details, thus those details are not in the response.
646HttpStatus: 502
647
648Value: 2103 654Value: 2103
649Name: MERCHANT_GET_ORDERS_ID_EXCHANGE_REQUEST_FAILURE 655Name: MERCHANT_GET_ORDERS_ID_EXCHANGE_REQUEST_FAILURE
650Description: The merchant backend failed to construct the request for tracking to the exchange, thus tracking details are not in the response. 656Description: The merchant backend failed to construct the request for tracking to the exchange, thus tracking details are not in the response.
@@ -712,10 +718,6 @@ Name: MERCHANT_POST_ORDERS_ID_PAY_REFUND_DEADLINE_PAST_WIRE_TRANSFER_DEADLINE
712Description: The refund deadline in the contract is after the transfer deadline. 718Description: The refund deadline in the contract is after the transfer deadline.
713HttpStatus: 500 719HttpStatus: 500
714 720
715Value: 2160
716Name: MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_KEYS_FAILURE
717Description: The exchange failed to provide a valid response to the merchant's /keys request.
718HttpStatus: 502
719 721
720Value: 2161 722Value: 2161
721Name: MERCHANT_POST_ORDERS_ID_PAY_OFFER_EXPIRED 723Name: MERCHANT_POST_ORDERS_ID_PAY_OFFER_EXPIRED
@@ -732,11 +734,6 @@ Name: MERCHANT_POST_ORDERS_ID_PAY_WIRE_HASH_UNKNOWN
732Description: Failed to locate merchant's account information matching the wire hash given in the proposal. 734Description: Failed to locate merchant's account information matching the wire hash given in the proposal.
733HttpStatus: 500 735HttpStatus: 500
734 736
735Value: 2164
736Name: MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_HAS_NO_KEYS
737Description: The exchange failed to give us a response when we asked for /keys.
738HttpStatus: 502
739
740Value: 2165 737Value: 2165
741Name: MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_DEPOSIT_EXPIRED 738Name: MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_DEPOSIT_EXPIRED
742Description: The deposit time for the denomination has expired. 739Description: The deposit time for the denomination has expired.
@@ -781,10 +778,6 @@ HttpStatus: 403
781 778
782# 2250-2299: post orders ID abort endpoint 779# 2250-2299: post orders ID abort endpoint
783 780
784Value: 2250
785Name: MERCHANT_POST_ORDERS_ID_ABORT_EXCHANGE_KEYS_FAILURE
786Description: The merchant failed to contact the exchange.
787HttpStatus: 502
788 781
789Value: 2251 782Value: 2251
790Name: MERCHANT_POST_ORDERS_ID_ABORT_EXCHANGE_REFUND_FAILED 783Name: MERCHANT_POST_ORDERS_ID_ABORT_EXCHANGE_REFUND_FAILED
@@ -847,15 +840,7 @@ Name: MERCHANT_TIP_PICKUP_UNBLIND_FAILURE
847Description: The client failed to unblind the signature returned by the merchant. 840Description: The client failed to unblind the signature returned by the merchant.
848HttpStatus: 0 841HttpStatus: 0
849 842
850Value: 2401
851Name: MERCHANT_TIP_PICKUP_CONTACT_EXCHANGE_ERROR
852Description: The merchant failed to contact the exchange.
853HttpStatus: 502
854 843
855Value: 2402
856Name: MERCHANT_TIP_PICKUP_EXCHANGE_KEYS_ERROR
857Description: The merchant failed to obtain keys from the exchange.
858HttpStatus: 502
859 844
860Value: 2403 845Value: 2403
861Name: MERCHANT_TIP_PICKUP_EXCHANGE_ERROR 846Name: MERCHANT_TIP_PICKUP_EXCHANGE_ERROR
@@ -941,10 +926,6 @@ HttpStatus: 403
941 926
942# 2550-2599: transfer operations 927# 2550-2599: transfer operations
943 928
944Value: 2550
945Name: MERCHANT_PRIVATE_POST_TRANSFERS_EXCHANGE_KEYS_FAILURE
946Description: We failed to obtain an acceptable /keys response from the exchange for the /track/transfer request.
947HttpStatus: 502
948 929
949Value: 2551 930Value: 2551
950Name: MERCHANT_PRIVATE_POST_TRANSFERS_REQUEST_ERROR 931Name: MERCHANT_PRIVATE_POST_TRANSFERS_REQUEST_ERROR