aboutsummaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_responses.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-31 15:42:00 +0100
committerChristian Grothoff <christian@grothoff.org>2015-01-31 15:42:00 +0100
commit6d8ccc9fe7d328a2ac53263f289f2e309704e412 (patch)
tree15a2d345d4c8b3cc428ee05375d1fe9d10743391 /src/mint/taler-mint-httpd_responses.c
parent28d9d3130e06f31736a0e8cce26037c1c5612d94 (diff)
starting to clean up /refresh/reveal DB logic
Diffstat (limited to 'src/mint/taler-mint-httpd_responses.c')
-rw-r--r--src/mint/taler-mint-httpd_responses.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mint/taler-mint-httpd_responses.c b/src/mint/taler-mint-httpd_responses.c
index bc2c5e48..264e5a12 100644
--- a/src/mint/taler-mint-httpd_responses.c
+++ b/src/mint/taler-mint-httpd_responses.c
@@ -171,6 +171,26 @@ TALER_MINT_reply_internal_error (struct MHD_Connection *connection,
/**
+ * Send a response indicating an external error.
+ *
+ * @param connection the MHD connection to use
+ * @param hint hint about the error's nature
+ * @return a MHD result code
+ */
+int
+TALER_MINT_reply_external_error (struct MHD_Connection *connection,
+ const char *hint)
+{
+ return TALER_MINT_reply_json_pack (connection,
+ MHD_HTTP_BAD_REQUEST,
+ "{s:s, s:s}",
+ "error", "client error",
+ "hint", hint);
+}
+
+
+
+/**
* Send a response indicating an error committing a
* transaction (concurrent interference).
*