diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-08-09 21:15:27 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-08-09 21:15:27 +0200 |
commit | 9384234555cc7a81d05d1e561f90762497db722d (patch) | |
tree | fc7c7364f5c9313866691ecb5c88b4995aff5b7a /src/exchange | |
parent | 819f2d44280376048aba63248369d2d999ac1b6e (diff) | |
download | exchange-9384234555cc7a81d05d1e561f90762497db722d.tar.gz exchange-9384234555cc7a81d05d1e561f90762497db722d.tar.bz2 exchange-9384234555cc7a81d05d1e561f90762497db722d.zip |
use correct HTTP status code for commit failures
Diffstat (limited to 'src/exchange')
-rw-r--r-- | src/exchange/taler-exchange-httpd_responses.c | 2 |
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 d5d7e9437..21046ef93 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); |