[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: handle more possible HTTP status
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: handle more possible HTTP status codes nicely |
Date: |
Sun, 25 Oct 2020 20:16:15 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 9628ac1 handle more possible HTTP status codes nicely
9628ac1 is described below
commit 9628ac1ec778388e675727f889764c82c2711928
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Oct 25 20:15:20 2020 +0100
handle more possible HTTP status codes nicely
---
src/lib/merchant_api_delete_instance.c | 4 ++++
src/lib/merchant_api_post_orders.c | 5 +++++
2 files changed, 9 insertions(+)
diff --git a/src/lib/merchant_api_delete_instance.c
b/src/lib/merchant_api_delete_instance.c
index 5c2bc51..87b88e0 100644
--- a/src/lib/merchant_api_delete_instance.c
+++ b/src/lib/merchant_api_delete_instance.c
@@ -91,6 +91,10 @@ handle_delete_instance_finished (void *cls,
{
case MHD_HTTP_NO_CONTENT:
break;
+ case MHD_HTTP_NOT_FOUND:
+ hr.ec = TALER_JSON_get_error_code (json);
+ hr.hint = TALER_JSON_get_error_hint (json);
+ break;
default:
/* unexpected response code */
hr.ec = TALER_JSON_get_error_code (json);
diff --git a/src/lib/merchant_api_post_orders.c
b/src/lib/merchant_api_post_orders.c
index 20af444..aa29bea 100644
--- a/src/lib/merchant_api_post_orders.c
+++ b/src/lib/merchant_api_post_orders.c
@@ -149,6 +149,11 @@ handle_post_order_finished (void *cls,
hr.ec = TALER_JSON_get_error_code (json);
hr.hint = TALER_JSON_get_error_hint (json);
break;
+ case MHD_HTTP_CONFLICT:
+ /* Nothing really to verify */
+ hr.ec = TALER_JSON_get_error_code (json);
+ hr.hint = TALER_JSON_get_error_hint (json);
+ break;
case MHD_HTTP_INTERNAL_SERVER_ERROR:
/* Server had an internal issue; we should retry,
but this API leaves this to the application */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: handle more possible HTTP status codes nicely,
gnunet <=