blob: 714e7f4ad609c759d03881b345bc6e0d8db0effd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
};
/**
* Returns a hint for a given error code.
*
* @param ec the error code.
* @return the hint if it could be found, otherwise "<no hint found>"
*/
const char *
TALER_ErrorCode_get_hint (enum TALER_ErrorCode ec);
/**
* Return HTTP status for a given error code.
*
* @param ec the error code.
* @return the HTTP status code for the given @a ec, UINT_MAX if not found
*/
unsigned int
TALER_ErrorCode_get_http_status (enum TALER_ErrorCode ec);
/**
* Return HTTP status for a given error code that is guaranteed
* to work (no corner cases).
*
* @param ec the error code.
* @return the HTTP status code for the given @a ec, 500 if
* the @a ec is not found or is a client-side code
*/
unsigned int
TALER_ErrorCode_get_http_status_safe (enum TALER_ErrorCode ec);
#if 0 /* keep Emacsens' auto-indent happy */
{
#endif
#ifdef __cplusplus
}
#endif
#endif
|