aboutsummaryrefslogtreecommitdiff
path: root/include/magi/error.h
blob: e928ed2ffb8134cb92885cd0046ed5305c691c6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef MAGI_INCLUDED_ERROR
#define MAGI_INCLUDED_ERROR
/* Error codes and messages
 */


typedef enum magi_error {
    magi_error_none = 0,
    magi_error_nobound,
    magi_error_unknown,
    magi_error_notype,
    magi_error_length,
    magi_error_memory,
    magi_error_cookies,
    magi_error_urlenc,
    magi_error_multipart,
    magi_error_limit
} magi_error;

const char *magi_error_message(magi_error error);


#endif