aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-01 23:12:00 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-01 23:12:00 +0200
commitd1bf26929e93f01b116d4d12706c58485cf65f4c (patch)
treeb9de400aa9796e58fa66ef5d44d77c8514254848
parent5b78fbc63121e77f8ce210b62093e7434616ccc4 (diff)
typo
-rw-r--r--src/exchange/taler-exchange-httpd_deposit.c2
-rw-r--r--src/exchange/taler-exchange-httpd_melt.c2
-rw-r--r--src/exchange/taler-exchange-httpd_refreshes_reveal.c4
-rw-r--r--src/exchange/taler-exchange-httpd_refund.c6
-rw-r--r--src/include/taler_error_codes.h55
5 files changed, 48 insertions, 21 deletions
diff --git a/src/exchange/taler-exchange-httpd_deposit.c b/src/exchange/taler-exchange-httpd_deposit.c
index 3ce46b2c9..193101c08 100644
--- a/src/exchange/taler-exchange-httpd_deposit.c
+++ b/src/exchange/taler-exchange-httpd_deposit.c
@@ -436,7 +436,7 @@ TEH_handler_deposit (struct MHD_Connection *connection,
GNUNET_JSON_parse_free (spec);
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_REQUEST,
- TALER_EC_DEPOSIT_CURRENCY_MISSMATCH,
+ TALER_EC_DEPOSIT_CURRENCY_MISMATCH,
"contribution");
}
/* check coin signature */
diff --git a/src/exchange/taler-exchange-httpd_melt.c b/src/exchange/taler-exchange-httpd_melt.c
index 9bff205c2..f5bd0b5aa 100644
--- a/src/exchange/taler-exchange-httpd_melt.c
+++ b/src/exchange/taler-exchange-httpd_melt.c
@@ -548,7 +548,7 @@ check_for_denomination_key (struct MHD_Connection *connection,
TEH_KS_release (key_state);
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_REQUEST,
- TALER_EC_MELT_CURRENCY_MISSMATCH,
+ TALER_EC_MELT_CURRENCY_MISMATCH,
"value_with_fee");
}
diff --git a/src/exchange/taler-exchange-httpd_refreshes_reveal.c b/src/exchange/taler-exchange-httpd_refreshes_reveal.c
index 7496de01f..b7db0a4b4 100644
--- a/src/exchange/taler-exchange-httpd_refreshes_reveal.c
+++ b/src/exchange/taler-exchange-httpd_refreshes_reveal.c
@@ -837,7 +837,7 @@ handle_refreshes_reveal_json (struct MHD_Connection *connection,
GNUNET_break_op (0);
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_REQUEST,
- TALER_EC_REVEAL_NEW_DENOMS_ARRAY_SIZE_MISSMATCH,
+ TALER_EC_REVEAL_NEW_DENOMS_ARRAY_SIZE_MISMATCH,
"new_denoms/coin_evs");
}
if (json_array_size (new_denoms_h_json) !=
@@ -846,7 +846,7 @@ handle_refreshes_reveal_json (struct MHD_Connection *connection,
GNUNET_break_op (0);
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_REQUEST,
- TALER_EC_REVEAL_NEW_DENOMS_ARRAY_SIZE_MISSMATCH,
+ TALER_EC_REVEAL_NEW_DENOMS_ARRAY_SIZE_MISMATCH,
"new_denoms/link_sigs");
}
diff --git a/src/exchange/taler-exchange-httpd_refund.c b/src/exchange/taler-exchange-httpd_refund.c
index 0a9eede5f..9fd9575f9 100644
--- a/src/exchange/taler-exchange-httpd_refund.c
+++ b/src/exchange/taler-exchange-httpd_refund.c
@@ -258,7 +258,7 @@ refund_transaction (void *cls,
tl);
*mhd_ret = TALER_MHD_reply_with_error (connection,
MHD_HTTP_PRECONDITION_FAILED,
- TALER_EC_REFUND_CURRENCY_MISSMATCH,
+ TALER_EC_REFUND_CURRENCY_MISMATCH,
"currencies involved do not match");
return GNUNET_DB_STATUS_HARD_ERROR;
}
@@ -443,7 +443,7 @@ verify_and_execute_refund (struct MHD_Connection *connection,
GNUNET_break_op (0);
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_REQUEST,
- TALER_EC_REFUND_FEE_CURRENCY_MISSMATCH,
+ TALER_EC_REFUND_FEE_CURRENCY_MISMATCH,
"refund_fee");
}
{
@@ -535,7 +535,7 @@ TEH_handler_refund (struct MHD_Connection *connection,
GNUNET_JSON_parse_free (spec);
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_REQUEST,
- TALER_EC_REFUND_FEE_CURRENCY_MISSMATCH,
+ TALER_EC_REFUND_FEE_CURRENCY_MISMATCH,
"refund_amount or refund_fee");
}
if (-1 == TALER_amount_cmp (&refund.details.refund_amount,
diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h
index 626f9a9f8..5baf95389 100644
--- a/src/include/taler_error_codes.h
+++ b/src/include/taler_error_codes.h
@@ -549,7 +549,7 @@ enum TALER_ErrorCode
* currency of the coin. This response is provided with HTTP status
* code #MHD_HTTP_PRECONDITION_FAILED.
*/
- TALER_EC_DEPOSIT_CURRENCY_MISSMATCH = 1222,
+ TALER_EC_DEPOSIT_CURRENCY_MISMATCH = 1222,
/**
* The respective coin did not have sufficient residual value for the
@@ -636,7 +636,7 @@ enum TALER_ErrorCode
* currency of the coin. This response is provided with HTTP status
* code #MHD_HTTP_PRECONDITION_FAILED.
*/
- TALER_EC_MELT_CURRENCY_MISSMATCH = 1311,
+ TALER_EC_MELT_CURRENCY_MISMATCH = 1311,
/**
* The exchange is unaware of the denomination key that was used to
@@ -726,7 +726,7 @@ enum TALER_ErrorCode
* denomination keys given. This response is provided with HTTP status
* code #MHD_HTTP_BAD_REQUEST.
*/
- TALER_EC_REVEAL_NEW_DENOMS_ARRAY_SIZE_MISSMATCH = 1378,
+ TALER_EC_REVEAL_NEW_DENOMS_ARRAY_SIZE_MISMATCH = 1378,
/**
* The exchange encountered a numeric overflow totaling up the cost
@@ -821,7 +821,7 @@ enum TALER_ErrorCode
* currency of the coin. This response is provided with HTTP status
* code #MHD_HTTP_PRECONDITION_FAILED.
*/
- TALER_EC_REFUND_CURRENCY_MISSMATCH = 1504,
+ TALER_EC_REFUND_CURRENCY_MISMATCH = 1504,
/**
* When we tried to check if we already paid out the coin, the
@@ -874,7 +874,7 @@ enum TALER_ErrorCode
* amount. This response is provided with HTTP status code
* #MHD_HTTP_BAD_REQUEST.
*/
- TALER_EC_REFUND_FEE_CURRENCY_MISSMATCH = 1511,
+ TALER_EC_REFUND_FEE_CURRENCY_MISMATCH = 1511,
/**
* The refunded amount is smaller than the refund fee, which would
@@ -1155,7 +1155,7 @@ enum TALER_ErrorCode
/**
* 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.
+ * code #MHD_HTTP_INTERNAL_SERVER_ERROR.
*/
TALER_EC_PAY_AMOUNT_OVERFLOW = 2106,
@@ -1190,7 +1190,7 @@ enum TALER_ErrorCode
/**
* We failed to contact the exchange for the /pay request. This
* response is provided with HTTP status code
- * #MHD_HTTP_SERVICE_UNAVAILABLE.
+ * #MHD_HTTP_REQUEST_TIMEOUT.
*/
TALER_EC_PAY_EXCHANGE_TIMEOUT = 2111,
@@ -1243,7 +1243,7 @@ enum TALER_ErrorCode
/**
* 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.
+ * #MHD_HTTP_FAILED_DEPENDENDCY.
*/
TALER_EC_PAY_EXCHANGE_KEYS_FAILURE = 2120,
@@ -1278,7 +1278,7 @@ enum TALER_ErrorCode
* fee. This response is provided with HTTP status code of
* #MHD_HTTP_INTERNAL_SERVER_ERROR.
*/
- TALER_EC_PAY_WIRE_FEE_CURRENCY_MISSMATCH = 2125,
+ TALER_EC_PAY_WIRE_FEE_CURRENCY_MISMATCH = 2125,
/**
* The merchant refuses to abort and refund the payment operation as
@@ -1290,11 +1290,38 @@ enum TALER_ErrorCode
/**
* A unknown merchant public key was included in the payment. That
* happens typically when the wallet sends the payment to the wrong
- * merchant instance.
+ * merchant instance. This response is provided with an HTTP status
+ * code of #MHD_HTTP_NOT_FOUND.
*/
TALER_EC_PAY_WRONG_INSTANCE = 2127,
/**
+ * 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.
+ */
+ TALER_EC_PAY_EXCHANGE_HAS_NO_KEYS = 2128,
+
+ /**
+ * The deposit time for the denomination has expired. This response is
+ * provided with HTTP status code #MHD_HTTP_GONE.
+ */
+ TALER_EC_PAY_DENOMINATION_DEPOSIT_EXPIRED = 2129,
+
+ /**
+ * The proposal is not known to the backend. This response is provided
+ * with an HTTP status code of #MHD_HTTP_NOT_FOUND.
+ */
+ TALER_EC_PAY_PROPOSAL_NOT_FOUND = 2130,
+
+ /**
+ * 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.
+ */
+ TALER_EC_PAY_EXCHANGE_WIRE_FEE_ADDITION_FAILED = 2131,
+
+ /**
* Integer overflow with specified timestamp argument detected. This
* response is provided with HTTP status code #MHD_HTTP_BAD_REQUEST.
*/
@@ -1552,13 +1579,13 @@ enum TALER_ErrorCode
/**
* The reserve that was used to fund the tips has expired. Returned
- * with an HTTP status code of "not found".
+ * with an HTTP status code of #MHD_HTTP_NOT_FOUND.
*/
TALER_EC_TIP_AUTHORIZE_RESERVE_EXPIRED = 2702,
/**
* 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.
*/
TALER_EC_TIP_AUTHORIZE_RESERVE_UNKNOWN = 2703,
@@ -1611,7 +1638,7 @@ enum TALER_ErrorCode
* The backend got a reserve with a currency that does not match the
* backend's currency.
*/
- TALER_EC_TIP_QUERY_RESERVE_CURRENCY_MISSMATCH = 2711,
+ TALER_EC_TIP_QUERY_RESERVE_CURRENCY_MISMATCH = 2711,
/**
* The backend got a reserve history with amounts it cannot process
@@ -1650,7 +1677,7 @@ enum TALER_ErrorCode
/**
* The tip ID is unknown. This could happen if the tip has expired.
- * Returned with an HTTP status code of "not found".
+ * Returned with an HTTP status code of #MHD_HTTP_NOT_FOUND.
*/
TALER_EC_TIP_PICKUP_TIP_ID_UNKNOWN = 2800,