diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-01 23:22:10 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-01 23:22:10 +0200 |
commit | acb0d8c772daf43c9566fcc50379e89859a70506 (patch) | |
tree | e310aae31624641665dbc852f9108d8a46a9c720 | |
parent | b219dcd2e7b8d68524ba56509f652cde908cb2c5 (diff) | |
download | taler-util-acb0d8c772daf43c9566fcc50379e89859a70506.tar.gz taler-util-acb0d8c772daf43c9566fcc50379e89859a70506.tar.bz2 taler-util-acb0d8c772daf43c9566fcc50379e89859a70506.zip |
more EC codes
-rw-r--r-- | taler/util/errorcodes.py | 76 |
1 files changed, 62 insertions, 14 deletions
diff --git a/taler/util/errorcodes.py b/taler/util/errorcodes.py index c867601..e2e4f1e 100644 --- a/taler/util/errorcodes.py +++ b/taler/util/errorcodes.py @@ -814,7 +814,7 @@ ec._add_ec( ) ec._add_ec( - "DEPOSIT_CURRENCY_MISSMATCH", + "DEPOSIT_CURRENCY_MISMATCH", 1222, """ The currency specified for the deposit is different from @@ -942,7 +942,7 @@ ec._add_ec( ) ec._add_ec( - "MELT_CURRENCY_MISSMATCH", + "MELT_CURRENCY_MISMATCH", 1311, """ The currency specified for the melt amount is different from @@ -1080,7 +1080,7 @@ ec._add_ec( ) ec._add_ec( - "REVEAL_NEW_DENOMS_ARRAY_SIZE_MISSMATCH", + "REVEAL_NEW_DENOMS_ARRAY_SIZE_MISMATCH", 1378, """ The number of envelopes given does not match the number @@ -1215,7 +1215,7 @@ ec._add_ec( ) ec._add_ec( - "REFUND_CURRENCY_MISSMATCH", + "REFUND_CURRENCY_MISMATCH", 1504, """ The currency specified for the refund is different from @@ -1296,7 +1296,7 @@ ec._add_ec( ) ec._add_ec( - "REFUND_FEE_CURRENCY_MISSMATCH", + "REFUND_FEE_CURRENCY_MISMATCH", 1511, """ The refund fee is specified in a different currency @@ -1667,7 +1667,9 @@ ec._add_ec( """ The exchange failed to provide a meaningful response to a /deposit request. This response is provided - with HTTP status code #MHD_HTTP_SERVICE_UNAVAILABLE. + with HTTP status code #MHD_HTTP_DEPENDENCY_FAILED, or + #MHD_HTTP_CONFLICT in case the exchange reports + #TALER_EC_DEPOSIT_INSUFFICIENT_FUNDS (aka double spending). """, ) @@ -1717,7 +1719,7 @@ ec._add_ec( """ There was an integer overflow totaling up the amounts or deposit fees in the payment. This response is provided - with HTTP status code #MHD_HTTP_BAD_REQUEST. + with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. """, ) @@ -1769,7 +1771,7 @@ ec._add_ec( """ We failed to contact the exchange for the /pay request. This response is provided - with HTTP status code #MHD_HTTP_SERVICE_UNAVAILABLE. + with HTTP status code #MHD_HTTP_REQUEST_TIMEOUT. """, ) @@ -1850,7 +1852,7 @@ ec._add_ec( The exchange failed to provide a valid response to the merchant's /keys request. This response is provided - with HTTP status code #MHD_HTTP_SERVICE_UNAVAILABLE. + with HTTP status code #MHD_HTTP_FAILED_DEPENDENDCY. """, ) @@ -1896,7 +1898,7 @@ ec._add_ec( ) ec._add_ec( - "PAY_WIRE_FEE_CURRENCY_MISSMATCH", + "PAY_WIRE_FEE_CURRENCY_MISMATCH", 2125, """ We got different currencies for the wire fee and the maximum wire @@ -1923,6 +1925,49 @@ ec._add_ec( A unknown merchant public key was included in the payment. That happens typically when the wallet sends the payment to the wrong merchant instance. + This response is provided with an HTTP status code of + #MHD_HTTP_NOT_FOUND. + """, +) + +ec._add_ec( + "PAY_EXCHANGE_HAS_NO_KEYS", + 2128, + """ + The exchange failed to give us a response when we asked for /keys. + This response is provided + with HTTP status code #MHD_HTTP_FAILED_DEPENDENCY. + """, +) + +ec._add_ec( + "PAY_DENOMINATION_DEPOSIT_EXPIRED", + 2129, + """ + The deposit time for the denomination has expired. + This response is provided + with HTTP status code #MHD_HTTP_GONE. + """, +) + +ec._add_ec( + "PAY_PROPOSAL_NOT_FOUND", + 2130, + """ + The proposal is not known to the backend. + This response is provided with an HTTP status code of + #MHD_HTTP_NOT_FOUND. + """, +) + +ec._add_ec( + "PAY_EXCHANGE_WIRE_FEE_ADDITION_FAILED", + 2131, + """ + The exchange of the deposited coin charges a wire fee that + could not be added to the total (total amount + too high). This response is provided + with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. """, ) @@ -2317,7 +2362,8 @@ ec._add_ec( 2702, """ The reserve that was used to fund the tips has expired. - Returned with an HTTP status code of "not found". + Returned with an HTTP status code of + #MHD_HTTP_NOT_FOUND. """, ) @@ -2326,7 +2372,8 @@ ec._add_ec( 2703, """ The reserve that was used to fund the tips was not found in the DB. - Returned with an HTTP status code of "not found". + Returned with an HTTP status code of + #MHD_HTTP_NOT_FOUND. """, ) @@ -2397,7 +2444,7 @@ ec._add_ec( ) ec._add_ec( - "TIP_QUERY_RESERVE_CURRENCY_MISSMATCH", + "TIP_QUERY_RESERVE_CURRENCY_MISMATCH", 2711, """ The backend got a reserve with a currency that does not match @@ -2464,7 +2511,8 @@ ec._add_ec( 2800, """ The tip ID is unknown. This could happen if the tip has - expired. Returned with an HTTP status code of "not found". + expired. Returned with an HTTP status code of + #MHD_HTTP_NOT_FOUND. """, ) |