summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_responses.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-08-09 21:15:27 +0200
committerChristian Grothoff <christian@grothoff.org>2018-08-09 21:15:27 +0200
commit9384234555cc7a81d05d1e561f90762497db722d (patch)
treefc7c7364f5c9313866691ecb5c88b4995aff5b7a /src/exchange/taler-exchange-httpd_responses.c
parent819f2d44280376048aba63248369d2d999ac1b6e (diff)
downloadexchange-9384234555cc7a81d05d1e561f90762497db722d.tar.gz
exchange-9384234555cc7a81d05d1e561f90762497db722d.tar.bz2
exchange-9384234555cc7a81d05d1e561f90762497db722d.zip
use correct HTTP status code for commit failures
Diffstat (limited to 'src/exchange/taler-exchange-httpd_responses.c')
-rw-r--r--src/exchange/taler-exchange-httpd_responses.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c
index d5d7e943..21046ef9 100644
--- a/src/exchange/taler-exchange-httpd_responses.c
+++ b/src/exchange/taler-exchange-httpd_responses.c
@@ -409,7 +409,7 @@ TEH_RESPONSE_reply_commit_error (struct MHD_Connection *connection,
enum TALER_ErrorCode ec)
{
return TEH_RESPONSE_reply_json_pack (connection,
- MHD_HTTP_BAD_REQUEST,
+ MHD_HTTP_INTERNAL_SERVER_ERROR,
"{s:s, s:I}",
"error", "commit failure",
"code", (json_int_t) ec);