summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-11-30 00:24:38 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2019-11-30 00:24:51 +0100
commit204f296a3303c614db221cfd6768c3cc9f99e83a (patch)
tree711ee2d69d52056774c3fd78079d1ec226744b3a /src/include
parent2731e0aa4d3aea7a50ef38cee7ca69cc5db420cd (diff)
downloadexchange-204f296a3303c614db221cfd6768c3cc9f99e83a.tar.gz
exchange-204f296a3303c614db221cfd6768c3cc9f99e83a.tar.bz2
exchange-204f296a3303c614db221cfd6768c3cc9f99e83a.zip
new bank error code
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_error_codes.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h
index 13abdfc8d..3e7ed9ae0 100644
--- a/src/include/taler_error_codes.h
+++ b/src/include/taler_error_codes.h
@@ -1844,12 +1844,25 @@ enum TALER_ErrorCode
/**
* This error code is returned when no known exception types
- * captured the exception.
+ * captured the exception, and comes along with a 500 Internal
+ * Server Error.
*/
TALER_EC_BANK_UNMANAGED_EXCEPTION = 5300,
/**
+ * This error code is used for all those exceptions that
+ * do not really need a specific error code to return to
+ * the client, but need to signal the middleware that the
+ * bank is not responding with 500 Internal Server Error.
+ *
+ * Used for example when a client is trying to register
+ * with a unavailable username.
+ */
+ TALER_EC_BANK_SOFT_EXCEPTION = 5300,
+
+
+ /**
* The sync service failed to access its database.
* This response is provided with HTTP status code
* MHD_HTTP_INTERNAL_SERVER_ERROR.