diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-12-14 15:42:32 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-12-14 15:42:32 +0100 |
commit | b5d88fc2d1832fd27bdd7df0860c07ae3c61312c (patch) | |
tree | bc279533511c65d9f5dabdb1d03d7ee0bf156888 /src/include/taler_mhd_lib.h | |
parent | 468fc9d1a1bcf3eb771519a746c5e3218ee121e3 (diff) | |
download | exchange-b5d88fc2d1832fd27bdd7df0860c07ae3c61312c.tar.xz |
activating implementation of #6175
Diffstat (limited to 'src/include/taler_mhd_lib.h')
-rw-r--r-- | src/include/taler_mhd_lib.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/taler_mhd_lib.h b/src/include/taler_mhd_lib.h index 09e22f9e1..c1b65126c 100644 --- a/src/include/taler_mhd_lib.h +++ b/src/include/taler_mhd_lib.h @@ -144,6 +144,21 @@ TALER_MHD_reply_with_error (struct MHD_Connection *connection, /** + * Send a response indicating an error. The HTTP status code is + * to be derived from the @a ec. + * + * @param connection the MHD connection to use + * @param ec error code uniquely identifying the error + * @param detail additional optional detail about the error + * @return a MHD result code + */ +MHD_RESULT +TALER_MHD_reply_with_ec (struct MHD_Connection *connection, + enum TALER_ErrorCode ec, + const char *detail); + + +/** * Make JSON response object. * * @param json the json object |