diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-05 16:40:04 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-05 16:40:04 +0200 |
commit | bd8d4e99a97d7a6cc3931af52b36324920620223 (patch) | |
tree | fb95ea4c8923f525181844edcb45efc594d1c498 /src/backend/taler-merchant-httpd_responses.h | |
parent | b44457be7c0b42b0cd7f247b71367e776e69332f (diff) | |
download | merchant-bd8d4e99a97d7a6cc3931af52b36324920620223.tar.gz merchant-bd8d4e99a97d7a6cc3931af52b36324920620223.tar.bz2 merchant-bd8d4e99a97d7a6cc3931af52b36324920620223.zip |
nicer replies
Diffstat (limited to 'src/backend/taler-merchant-httpd_responses.h')
-rw-r--r-- | src/backend/taler-merchant-httpd_responses.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd_responses.h b/src/backend/taler-merchant-httpd_responses.h index 7314e0bb..19690cc3 100644 --- a/src/backend/taler-merchant-httpd_responses.h +++ b/src/backend/taler-merchant-httpd_responses.h @@ -94,6 +94,31 @@ TMH_RESPONSE_reply_invalid_json (struct MHD_Connection *connection); /** + * Send a response indicating that we did not find the @a object + * needed for the reply. + * + * @param connection the MHD connection to use + * @param object name of the object we did not find + * @return a MHD result code + */ +int +TMH_RESPONSE_reply_not_found (struct MHD_Connection *connection, + const char *object); + + +/** + * Send a response indicating that the request was malformed. + * + * @param connection the MHD connection to use + * @param issue description of what was wrong with the request + * @return a MHD result code + */ +int +TMH_RESPONSE_reply_bad_request (struct MHD_Connection *connection, + const char *issue); + + +/** * Send a response indicating an internal error. * * @param connection the MHD connection to use |