diff options
Diffstat (limited to 'src/mint/taler-mint-httpd_responses.c')
-rw-r--r-- | src/mint/taler-mint-httpd_responses.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mint/taler-mint-httpd_responses.c b/src/mint/taler-mint-httpd_responses.c index 92bba9e21..307e6ec17 100644 --- a/src/mint/taler-mint-httpd_responses.c +++ b/src/mint/taler-mint-httpd_responses.c | |||
@@ -178,6 +178,23 @@ TALER_MINT_reply_internal_error (struct MHD_Connection *connection, | |||
178 | 178 | ||
179 | 179 | ||
180 | /** | 180 | /** |
181 | * Send a response indicating an error committing a | ||
182 | * transaction (concurrent interference). | ||
183 | * | ||
184 | * @param connection the MHD connection to use | ||
185 | * @return a MHD result code | ||
186 | */ | ||
187 | int | ||
188 | TALER_MINT_reply_commit_error (struct MHD_Connection *connection) | ||
189 | { | ||
190 | return TALER_MINT_reply_json_pack (connection, | ||
191 | MHD_HTTP_BAD_REQUEST, | ||
192 | "{s:s}", | ||
193 | "error", "commit failure"); | ||
194 | } | ||
195 | |||
196 | |||
197 | /** | ||
181 | * Send a response indicating a failure to talk to the Mint's | 198 | * Send a response indicating a failure to talk to the Mint's |
182 | * database. | 199 | * database. |
183 | * | 200 | * |