diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-12-13 12:07:10 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-12-13 12:07:10 +0100 |
commit | 7626b96d37ca125d8b9bf34db7b0305f11d02361 (patch) | |
tree | 6bbdca97fdd4d34fed40922915d0833f24da594b /gnu-taler-error-codes/h.footer | |
parent | 1e1a13c64febaf890617e59cc0f41cb9c17a025b (diff) | |
download | gana-7626b96d37ca125d8b9bf34db7b0305f11d02361.tar.gz gana-7626b96d37ca125d8b9bf34db7b0305f11d02361.zip |
generate logic to lookup HTTP status code by ec
Diffstat (limited to 'gnu-taler-error-codes/h.footer')
-rw-r--r-- | gnu-taler-error-codes/h.footer | 10 |
1 files changed, 10 insertions, 0 deletions
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 * | |||
13 | TALER_ErrorCode_get_hint (enum TALER_ErrorCode ec); | 13 | TALER_ErrorCode_get_hint (enum TALER_ErrorCode ec); |
14 | 14 | ||
15 | 15 | ||
16 | /** | ||
17 | * Return HTTP status for a given error code. | ||
18 | * | ||
19 | * @param ec the error code. | ||
20 | * @return the HTTP status code for the given @a ec, UINT_MAX if not found | ||
21 | */ | ||
22 | const unsigned int | ||
23 | TALER_ErrorCode_get_http_status (enum TALER_ErrorCode ec); | ||
24 | |||
25 | |||
16 | #if 0 /* keep Emacsens' auto-indent happy */ | 26 | #if 0 /* keep Emacsens' auto-indent happy */ |
17 | { | 27 | { |
18 | #endif | 28 | #endif |