more error codes

This commit is contained in:
Christian Grothoff 2020-04-06 19:49:37 +02:00
parent bf8c5982a2
commit 9eb741b05b
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -124,6 +124,12 @@ enum TALER_ErrorCode
*/
TALER_EC_VERSION_MALFORMED = 14,
/**
* The client-side experienced an internal failure. Generated as an
* error on the client side.
*/
TALER_EC_CLIENT_INTERNAL_FAILURE = 15,
/**
* The exchange failed to even just initialize its connection to the
* database. This response is provided with HTTP status code
@ -1136,6 +1142,12 @@ enum TALER_ErrorCode
*/
TALER_EC_PROPOSAL_INSTANCE_CONFIGURATION_LACKS_WIRE = 2002,
/**
* The merchant failed to provide a meaningful response to a /pay
* request. This error is created client-side.
*/
TALER_EC_PAY_MERCHANT_INVALID_RESPONSE = 2100,
/**
* The exchange failed to provide a meaningful response to a /deposit
* request. This response is provided with HTTP status code
@ -1375,6 +1387,12 @@ enum TALER_ErrorCode
*/
TALER_EC_POLL_PAYMENT_CONTRACT_NOT_FOUND = 2250,
/**
* The response provided by the merchant backend was malformed. This
* error is created client-side.
*/
TALER_EC_POLL_PAYMENT_REPLY_MALFORMED = 2251,
/**
* We failed to contact the exchange for the /track/transaction
* request. This response is provided with HTTP status code
@ -1574,11 +1592,17 @@ enum TALER_ErrorCode
/**
* The order provided to the backend uses an amount in a currency that
* does not match the backend's configuration. Returned as a bad
* request.
* does not match the backend's configuration. Returned with HTTP
* status code #MHD_HTTP_BAD_REQUEST.
*/
TALER_EC_PROPOSAL_ORDER_BAD_CURRENCY = 2509,
/**
* The response provided by the merchant backend was malformed. This
* error is created client-side.
*/
TALER_EC_PROPOSAL_REPLY_MALFORMED = 2510,
/**
* The frontend gave an unknown order id to issue the refund to.
*/
@ -1860,6 +1884,12 @@ enum TALER_ErrorCode
*/
TALER_EC_CHECK_PAYMENT_SESSION_SIGNATURE_INVALID = 2915,
/**
* The response we received from the merchant is malformed. This error
* is generated client-side.
*/
TALER_EC_CHECK_PAYMENT_RESPONSE_MALFORMED = 2916,
/**
* The signature from the exchange on the deposit confirmation is
* invalid. Returned with a "400 Bad Request" status code.