00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef INCL_HTTP_ERRORS
00019 #define INCL_HTTP_ERRORS
00020
00022 #define ERR_TRANSPORT_BASE 2000
00023 #define ERR_NETWORK_INIT ERR_TRANSPORT_BASE
00024 #define ERR_CONNECT ERR_TRANSPORT_BASE+ 1
00025 #define ERR_HOST_NOT_FOUND ERR_TRANSPORT_BASE+ 2
00026 #define ERR_READING_CONTENT ERR_TRANSPORT_BASE+ 3
00027 #define ERR_WRITING_CONTENT ERR_TRANSPORT_BASE+ 4
00028 #define ERR_HTTP ERR_TRANSPORT_BASE+50
00029 #define ERR_HTTP_MISSING_CONTENT_LENGTH ERR_TRANSPORT_BASE+51
00030 #define ERR_SERVER_ERROR ERR_TRANSPORT_BASE+52
00031
00032 #define ERR_HTTP_STATUS_NOT_OK ERR_TRANSPORT_BASE+53
00033 #define ERR_CREDENTIAL 401
00034 #define ERR_CLIENT_NOT_NOTIFIABLE 420
00035
00036 #define ERR_TRANSPORT_LAST 2999
00037
00038 #define ERRMSG_NETWORK_INIT "Network initialization error"
00039 #define ERRMSG_CONNECT "Connection failure"
00040 #define ERRMSG_HOST_NOT_FOUND "Host not found"
00041 #define ERRMSG_READING_CONTENT "Error reading content"
00042 #define ERRMSG_WRITING_CONTENT "Error writing content"
00043 #define ERRMSG_HTTP_MISSING_CONTENT_LENGTH "Missing Content-Length header"
00044 #define ERRMSG_SERVER_ERROR ("Server error")
00045
00046 #endif