gana

GNUnet Assigned Numbers Authority
Log | Files | Refs | README | LICENSE

h.footer (889B)


      1 
      2 
      3 };
      4 
      5 
      6 /**
      7  * Returns a hint for a given error code.
      8  *
      9  * @param ec the error code.
     10  * @return the hint if it could be found, otherwise "<no hint found>"
     11  */
     12 const char *
     13 GNUNET_ErrorCode_get_hint (enum GNUNET_ErrorCode ec);
     14 
     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 unsigned int
     23 GNUNET_ErrorCode_get_http_status (enum GNUNET_ErrorCode ec);
     24 
     25 
     26 /**
     27  * Return HTTP status for a given error code that is guaranteed
     28  * to work (no corner cases).
     29  *
     30  * @param ec the error code.
     31  * @return the HTTP status code for the given @a ec, 500 if
     32  *         the @a ec is not found or is a client-side code
     33  */
     34 unsigned int
     35 GNUNET_ErrorCode_get_http_status_safe (enum GNUNET_ErrorCode ec);
     36 
     37 
     38 #if 0 /* keep Emacsens' auto-indent happy */
     39 {
     40 #endif
     41 #ifdef __cplusplus
     42 }
     43 #endif
     44 
     45 #endif