From d651837234f45c5838fd2ef38c780a8bb6b8cef5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 7 Nov 2020 23:08:44 +0100 Subject: used in /private/ API --- gnu-taler-error-codes/registry.rec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gnu-taler-error-codes/registry.rec') diff --git a/gnu-taler-error-codes/registry.rec b/gnu-taler-error-codes/registry.rec index 9dce2b3..5d2f93b 100644 --- a/gnu-taler-error-codes/registry.rec +++ b/gnu-taler-error-codes/registry.rec @@ -639,10 +639,6 @@ Name: MERCHANT_GET_ORDERS_EXCHANGE_TRACKING_FAILURE Description: The exchange failed to provide a valid answer to the tracking request, thus those details are not in the response. HttpStatus: 200 -Value: 2101 -Name: MERCHANT_GET_ORDERS_ID_AMOUNT_ARITHMETIC_FAILURE -Description: The merchant backend encountered a failure in computing the deposit total. -HttpStatus: 200 Value: 2102 Name: MERCHANT_GET_ORDERS_ID_EXCHANGE_LOOKUP_FAILURE @@ -1049,6 +1045,10 @@ Name: MERCHANT_PRIVATE_POST_TIP_AUTHORIZE_RESERVE_NOT_FOUND Description: The backend failed to find a reserve needed to authorize the tip. HttpStatus: 503 +Value: 2800 +Name: MERCHANT_PRIVATE_GET_ORDERS_ID_AMOUNT_ARITHMETIC_FAILURE +Description: The merchant backend encountered a failure in computing the deposit total. +HttpStatus: 200 -- cgit v1.2.3 From f86f2662149bc40a20b72e359385d3f1a91b4105 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 7 Nov 2020 23:22:29 +0100 Subject: introduce generic codes for common exchange failures --- gnu-taler-error-codes/registry.rec | 41 ++++++++++---------------------------- 1 file changed, 11 insertions(+), 30 deletions(-) (limited to 'gnu-taler-error-codes/registry.rec') 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 Description: The order we found does not match the provided contract hash. HttpStatus: 403 +Value: 2010 +Name: MERCHANT_GENERIC_EXCHANGE_KEYS_FAILURE +Description: The exchange failed to provide a valid response to the merchant's /keys request. +HttpStatus: 502 + +Value: 2011 +Name: MERCHANT_GENERIC_EXCHANGE_TIMEOUT +Description: The exchange failed to respond to the merchant on time. +HttpStatus: 504 + + # 2100-2499: public API # 2100-2149: get orders endpoint @@ -640,11 +651,6 @@ Description: The exchange failed to provide a valid answer to the tracking reque HttpStatus: 200 -Value: 2102 -Name: MERCHANT_GET_ORDERS_ID_EXCHANGE_LOOKUP_FAILURE -Description: The merchant backend failed trying to contact the exchange for tracking details, thus those details are not in the response. -HttpStatus: 502 - Value: 2103 Name: MERCHANT_GET_ORDERS_ID_EXCHANGE_REQUEST_FAILURE Description: 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 Description: The refund deadline in the contract is after the transfer deadline. HttpStatus: 500 -Value: 2160 -Name: MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_KEYS_FAILURE -Description: The exchange failed to provide a valid response to the merchant's /keys request. -HttpStatus: 502 Value: 2161 Name: MERCHANT_POST_ORDERS_ID_PAY_OFFER_EXPIRED @@ -732,11 +734,6 @@ Name: MERCHANT_POST_ORDERS_ID_PAY_WIRE_HASH_UNKNOWN Description: Failed to locate merchant's account information matching the wire hash given in the proposal. HttpStatus: 500 -Value: 2164 -Name: MERCHANT_POST_ORDERS_ID_PAY_EXCHANGE_HAS_NO_KEYS -Description: The exchange failed to give us a response when we asked for /keys. -HttpStatus: 502 - Value: 2165 Name: MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_DEPOSIT_EXPIRED Description: The deposit time for the denomination has expired. @@ -781,10 +778,6 @@ HttpStatus: 403 # 2250-2299: post orders ID abort endpoint -Value: 2250 -Name: MERCHANT_POST_ORDERS_ID_ABORT_EXCHANGE_KEYS_FAILURE -Description: The merchant failed to contact the exchange. -HttpStatus: 502 Value: 2251 Name: MERCHANT_POST_ORDERS_ID_ABORT_EXCHANGE_REFUND_FAILED @@ -847,15 +840,7 @@ Name: MERCHANT_TIP_PICKUP_UNBLIND_FAILURE Description: The client failed to unblind the signature returned by the merchant. HttpStatus: 0 -Value: 2401 -Name: MERCHANT_TIP_PICKUP_CONTACT_EXCHANGE_ERROR -Description: The merchant failed to contact the exchange. -HttpStatus: 502 -Value: 2402 -Name: MERCHANT_TIP_PICKUP_EXCHANGE_KEYS_ERROR -Description: The merchant failed to obtain keys from the exchange. -HttpStatus: 502 Value: 2403 Name: MERCHANT_TIP_PICKUP_EXCHANGE_ERROR @@ -941,10 +926,6 @@ HttpStatus: 403 # 2550-2599: transfer operations -Value: 2550 -Name: MERCHANT_PRIVATE_POST_TRANSFERS_EXCHANGE_KEYS_FAILURE -Description: We failed to obtain an acceptable /keys response from the exchange for the /track/transfer request. -HttpStatus: 502 Value: 2551 Name: MERCHANT_PRIVATE_POST_TRANSFERS_REQUEST_ERROR -- cgit v1.2.3 From 5bea253bc104d9de901278f0dabe5df09a48369b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 7 Nov 2020 23:27:50 +0100 Subject: introduce generic codes for common exchange failures --- gnu-taler-error-codes/registry.rec | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gnu-taler-error-codes/registry.rec') diff --git a/gnu-taler-error-codes/registry.rec b/gnu-taler-error-codes/registry.rec index 542d4b0..fd0fb7f 100644 --- a/gnu-taler-error-codes/registry.rec +++ b/gnu-taler-error-codes/registry.rec @@ -640,6 +640,11 @@ Name: MERCHANT_GENERIC_EXCHANGE_TIMEOUT Description: The exchange failed to respond to the merchant on time. HttpStatus: 504 +Value: 2012 +Name: MERCHANT_GENERIC_EXCHANGE_CONNECT_FAILURE +Description: The merchant failed to talk to the exchange. +HttpStatus: 500 + # 2100-2499: public API -- cgit v1.2.3 From 05da9c93fc7fff258e54a9413d11ea72a82fe03f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 7 Nov 2020 23:55:47 +0100 Subject: introduce generic codes for common exchange failures --- gnu-taler-error-codes/registry.rec | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'gnu-taler-error-codes/registry.rec') diff --git a/gnu-taler-error-codes/registry.rec b/gnu-taler-error-codes/registry.rec index fd0fb7f..c4b0c52 100644 --- a/gnu-taler-error-codes/registry.rec +++ b/gnu-taler-error-codes/registry.rec @@ -645,6 +645,16 @@ Name: MERCHANT_GENERIC_EXCHANGE_CONNECT_FAILURE Description: The merchant failed to talk to the exchange. HttpStatus: 500 +Value: 2013 +Name: MERCHANT_GENERIC_EXCHANGE_REPLY_MALFORMED +Description: The exchange returned a maformed response. +HttpStatus: 502 + +Value: 2014 +Name: MERCHANT_GENERIC_EXCHANGE_UNEXPECTED_STATUS +Description: The exchange returned an unexpected response status. +HttpStatus: 502 + # 2100-2499: public API @@ -852,6 +862,7 @@ Name: MERCHANT_TIP_PICKUP_EXCHANGE_ERROR Description: The exchange returned a failure code for the withdraw operation. HttpStatus: 502 + Value: 2404 Name: MERCHANT_TIP_PICKUP_SUMMATION_FAILED Description: The merchant failed to add up the amounts to compute the pick up value. @@ -937,11 +948,6 @@ Name: MERCHANT_PRIVATE_POST_TRANSFERS_REQUEST_ERROR Description: We internally failed to execute the /track/transfer request. HttpStatus: 500 -Value: 2552 -Name: MERCHANT_PRIVATE_POST_TRANSFERS_EXCHANGE_ERROR -Description: The exchange returned an error from /track/transfer. -HttpStatus: 502 - Value: 2553 Name: MERCHANT_PRIVATE_POST_TRANSFERS_CONFLICTING_REPORTS Description: The exchange gave conflicting information about a coin which has been wire transferred. -- cgit v1.2.3