Go to the source code of this file.
Data Structures | |
struct | ErrorCodeAndHint |
A pair containing an error code and its hint. More... | |
Macros | |
#define | MHD_HTTP_UNINITIALIZED 0 |
MHD does not define our value for 0 (client-side generated code). More... | |
Functions | |
const char * | GNUNET_ErrorCode_get_hint (enum GNUNET_ErrorCode ec) |
Returns a hint for a given error code. More... | |
unsigned int | GNUNET_ErrorCode_get_http_status (enum GNUNET_ErrorCode ec) |
Return HTTP status for a given error code. More... | |
unsigned int | GNUNET_ErrorCode_get_http_status_safe (enum GNUNET_ErrorCode ec) |
Return HTTP status for a given error code that is guaranteed to work (no corner cases). More... | |
Variables | |
static const struct ErrorCodeAndHint | code_hint_pairs [] |
The list of all error codes with their hints. More... | |
static const unsigned int | code_hint_pairs_length = 22 |
The length of code_hint_pairs. More... | |
#define MHD_HTTP_UNINITIALIZED 0 |
MHD does not define our value for 0 (client-side generated code).
Definition at line 28 of file gnunet_error_codes.c.
const char * GNUNET_ErrorCode_get_hint | ( | enum GNUNET_ErrorCode | ec | ) |
Returns a hint for a given error code.
ec | the error code. |
Definition at line 201 of file gnunet_error_codes.c.
unsigned int GNUNET_ErrorCode_get_http_status | ( | enum GNUNET_ErrorCode | ec | ) |
Return HTTP status for a given error code.
ec | the error code. |
Definition at line 227 of file gnunet_error_codes.c.
Referenced by GNUNET_ErrorCode_get_http_status_safe().
unsigned int GNUNET_ErrorCode_get_http_status_safe | ( | enum GNUNET_ErrorCode | ec | ) |
Return HTTP status for a given error code that is guaranteed to work (no corner cases).
ec | the error code. |
Definition at line 253 of file gnunet_error_codes.c.
|
static |
The list of all error codes with their hints.
Definition at line 55 of file gnunet_error_codes.c.
Referenced by GNUNET_ErrorCode_get_hint(), and GNUNET_ErrorCode_get_http_status().
|
static |
The length of code_hint_pairs.
Definition at line 196 of file gnunet_error_codes.c.
Referenced by GNUNET_ErrorCode_get_hint(), and GNUNET_ErrorCode_get_http_status().