handle 406 nicely, can happen if insufficient balance

This commit is contained in:
Christian Grothoff 2019-10-06 12:31:11 +02:00
parent bd8b48393c
commit bda228232f
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -130,6 +130,11 @@ handle_admin_add_incoming_finished (void *cls,
happen, we should pass the JSON reply to the application */ happen, we should pass the JSON reply to the application */
ec = TALER_BANK_parse_ec_ (j); ec = TALER_BANK_parse_ec_ (j);
break; break;
case MHD_HTTP_NOT_ACCEPTABLE:
/* Nothing really to verify, this should never
happen, we should pass the JSON reply to the application */
ec = TALER_BANK_parse_ec_ (j);
break;
case MHD_HTTP_INTERNAL_SERVER_ERROR: case MHD_HTTP_INTERNAL_SERVER_ERROR:
/* Server had an internal issue; we should retry, but this API /* Server had an internal issue; we should retry, but this API
leaves this to the application */ leaves this to the application */