diff options
Diffstat (limited to 'src/templating/templating_api.c')
-rw-r--r-- | src/templating/templating_api.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/templating/templating_api.c b/src/templating/templating_api.c index 3bda7de55..88a17c682 100644 --- a/src/templating/templating_api.c +++ b/src/templating/templating_api.c @@ -221,7 +221,7 @@ TALER_TEMPLATING_build (struct MHD_Connection *connection, GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to load template `%s'\n", template); - *http_status = MHD_HTTP_INTERNAL_SERVER_ERROR; + *http_status = MHD_HTTP_NOT_ACCEPTABLE; *reply = TALER_MHD_make_error (TALER_EC_GENERIC_FAILED_TO_LOAD_TEMPLATE, template); return GNUNET_NO; @@ -432,11 +432,12 @@ load_template (void *cls, MHD_RESULT -TALER_TEMPLATING_reply_error (struct MHD_Connection *connection, - const char *template_basename, - unsigned int http_status, - enum TALER_ErrorCode ec, - const char *detail) +TALER_TEMPLATING_reply_error ( + struct MHD_Connection *connection, + const char *template_basename, + unsigned int http_status, + enum TALER_ErrorCode ec, + const char *detail) { json_t *data; enum GNUNET_GenericReturnValue ret; |