diff --git a/src/bank-lib/bank_api_credit.c b/src/bank-lib/bank_api_credit.c index cc5e66879..9835a8c9d 100644 --- a/src/bank-lib/bank_api_credit.c +++ b/src/bank-lib/bank_api_credit.c @@ -155,7 +155,7 @@ handle_credit_history_finished (void *cls, { struct TALER_BANK_CreditHistoryHandle *hh = cls; struct TALER_BANK_CreditHistoryResponse chr = { - .http_status = MHD_HTTP_OK, + .http_status = response_code, .response = response }; diff --git a/src/bank-lib/bank_api_debit.c b/src/bank-lib/bank_api_debit.c index 872443209..bd9b11941 100644 --- a/src/bank-lib/bank_api_debit.c +++ b/src/bank-lib/bank_api_debit.c @@ -157,7 +157,7 @@ handle_debit_history_finished (void *cls, { struct TALER_BANK_DebitHistoryHandle *hh = cls; struct TALER_BANK_DebitHistoryResponse dhr = { - .http_status = MHD_HTTP_OK, + .http_status = response_code, .response = response };