summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_post_reserves.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/merchant_api_post_reserves.c')
-rw-r--r--src/lib/merchant_api_post_reserves.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/merchant_api_post_reserves.c b/src/lib/merchant_api_post_reserves.c
index 149ecaeb..8a8dee2d 100644
--- a/src/lib/merchant_api_post_reserves.c
+++ b/src/lib/merchant_api_post_reserves.c
@@ -130,6 +130,11 @@ handle_post_reserves_finished (void *cls,
}
case MHD_HTTP_ACCEPTED:
break;
+ case MHD_HTTP_UNAUTHORIZED:
+ hr.ec = TALER_JSON_get_error_code (json);
+ hr.hint = TALER_JSON_get_error_hint (json);
+ /* Nothing really to verify, merchant says we need to authenticate. */
+ break;
case MHD_HTTP_NOT_FOUND:
/* Nothing really to verify, this should never
happen, we should pass the JSON reply to the application */