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). | |
Functions | |
| const char * | GNUNET_ErrorCode_get_hint (enum GNUNET_ErrorCode ec) |
| Returns a hint for a given error code. | |
| unsigned int | GNUNET_ErrorCode_get_http_status (enum GNUNET_ErrorCode ec) |
| Return HTTP status for a given error code. | |
| 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). | |
Variables | |
| static const struct ErrorCodeAndHint | code_hint_pairs [] |
| The list of all error codes with their hints. | |
| static const unsigned int | code_hint_pairs_length = 22 |
| The length of code_hint_pairs. | |
| #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.
References code_hint_pairs, code_hint_pairs_length, ErrorCodeAndHint::ec, and ErrorCodeAndHint::hint.
Referenced by add_continuation(), add_continuation(), attr_store_cont(), create_did_ego_create_cb(), create_finished(), cred_store_cont(), del_attr_finished(), del_continuation(), delegation_store_cont(), delete_finished(), DID_create_did_store_cb(), do_error(), do_error(), handle_generic_response(), handle_zone_to_name_response(), marked_deleted(), missing_zone_creation_cont(), move_attr_finished(), origin_create_cb(), remove_did_document_namestore_cb(), remove_ticket_cont(), replace_cont(), send_result_code(), and store_completed_cb().
| 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.
References code_hint_pairs, code_hint_pairs_length, ErrorCodeAndHint::ec, and ErrorCodeAndHint::http_code.
Referenced by do_error(), do_error(), and 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.
References ErrorCodeAndHint::ec, and GNUNET_ErrorCode_get_http_status().
|
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().