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/c.header | |
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/c.header')
-rw-r--r-- | gnu-taler-error-codes/c.header | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu-taler-error-codes/c.header b/gnu-taler-error-codes/c.header index 7b446aa..fb37b22 100644 --- a/gnu-taler-error-codes/c.header +++ b/gnu-taler-error-codes/c.header | |||
@@ -23,6 +23,10 @@ | |||
23 | #include "taler_error_codes.h" | 23 | #include "taler_error_codes.h" |
24 | #include <stddef.h> | 24 | #include <stddef.h> |
25 | 25 | ||
26 | /** | ||
27 | * MHD does not define our value for 0 (client-side generated code). | ||
28 | */ | ||
29 | #define MHD_HTTP_UNINITIALIZED 0 | ||
26 | 30 | ||
27 | /** | 31 | /** |
28 | * A pair containing an error code and its hint. | 32 | * A pair containing an error code and its hint. |
@@ -38,6 +42,11 @@ struct ErrorCodeAndHint | |||
38 | * The hint. | 42 | * The hint. |
39 | */ | 43 | */ |
40 | const char *hint; | 44 | const char *hint; |
45 | |||
46 | /** | ||
47 | * The HTTP status code. | ||
48 | */ | ||
49 | unsigned int http_status; | ||
41 | }; | 50 | }; |
42 | 51 | ||
43 | 52 | ||