diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-31 15:42:00 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-31 15:42:00 +0100 |
commit | 6d8ccc9fe7d328a2ac53263f289f2e309704e412 (patch) | |
tree | 15a2d345d4c8b3cc428ee05375d1fe9d10743391 /src/mint/taler-mint-httpd_responses.c | |
parent | 28d9d3130e06f31736a0e8cce26037c1c5612d94 (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.c | 20 |
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). * |