aboutsummaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_responses.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchange/taler-exchange-httpd_responses.h')
-rw-r--r--src/exchange/taler-exchange-httpd_responses.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_responses.h b/src/exchange/taler-exchange-httpd_responses.h
index 177eaa43e..9b6a78859 100644
--- a/src/exchange/taler-exchange-httpd_responses.h
+++ b/src/exchange/taler-exchange-httpd_responses.h
@@ -171,6 +171,20 @@ TEH_RESPONSE_reply_internal_error (struct MHD_Connection *connection,
171 171
172 172
173/** 173/**
174 * Send a response indicating an error.
175 *
176 * @param connection the MHD connection to use
177 * @param ec error code uniquely identifying the error
178 * @param http_status HTTP status code to use
179 * @return a MHD result code
180 */
181int
182TEH_RESPONSE_reply_with_error (struct MHD_Connection *connection,
183 enum TALER_ErrorCode ec,
184 unsigned int http_status);
185
186
187/**
174 * Send a response indicating an external error. 188 * Send a response indicating an external error.
175 * 189 *
176 * @param connection the MHD connection to use 190 * @param connection the MHD connection to use