From 7626b96d37ca125d8b9bf34db7b0305f11d02361 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 13 Dec 2020 12:07:10 +0100 Subject: generate logic to lookup HTTP status code by ec --- gnu-taler-error-codes/h.footer | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gnu-taler-error-codes/h.footer') diff --git a/gnu-taler-error-codes/h.footer b/gnu-taler-error-codes/h.footer index 6c32dbd..67d90c8 100644 --- a/gnu-taler-error-codes/h.footer +++ b/gnu-taler-error-codes/h.footer @@ -13,6 +13,16 @@ const char * TALER_ErrorCode_get_hint (enum TALER_ErrorCode ec); +/** + * Return HTTP status for a given error code. + * + * @param ec the error code. + * @return the HTTP status code for the given @a ec, UINT_MAX if not found + */ +const unsigned int +TALER_ErrorCode_get_http_status (enum TALER_ErrorCode ec); + + #if 0 /* keep Emacsens' auto-indent happy */ { #endif -- cgit v1.2.3