Merge branch 'apcupsd'
[networkupstools/kirr.git] / server / neterr.h
blob0be8b838dab5d34209f50320d40c16fe0309f5b9
1 /* network error definitions for consistency */
3 #define NUT_ERR_ACCESS_DENIED "ACCESS-DENIED"
4 #define NUT_ERR_UNKNOWN_UPS "UNKNOWN-UPS"
5 #define NUT_ERR_VAR_NOT_SUPPORTED "VAR-NOT-SUPPORTED"
6 #define NUT_ERR_CMD_NOT_SUPPORTED "CMD-NOT-SUPPORTED"
7 #define NUT_ERR_INVALID_ARGUMENT "INVALID-ARGUMENT"
8 #define NUT_ERR_INSTCMD_FAILED "INSTCMD-FAILED"
9 #define NUT_ERR_SET_FAILED "SET-FAILED"
10 #define NUT_ERR_READONLY "READONLY"
11 #define NUT_ERR_TOO_LONG "TOO-LONG"
12 #define NUT_ERR_FEATURE_NOT_SUPPORTED "FEATURE-NOT-SUPPORTED"
13 #define NUT_ERR_FEATURE_NOT_CONFIGURED "FEATURE-NOT-CONFIGURED"
14 #define NUT_ERR_ALREADY_SSL_MODE "ALREADY-SSL-MODE"
16 /* errors which are only used by top-level upsd functions */
18 #define NUT_ERR_DRIVER_NOT_CONNECTED "DRIVER-NOT-CONNECTED"
19 #define NUT_ERR_DATA_STALE "DATA-STALE"
20 #define NUT_ERR_ALREADY_LOGGED_IN "ALREADY-LOGGED-IN"
21 #define NUT_ERR_INVALID_PASSWORD "INVALID-PASSWORD"
22 #define NUT_ERR_ALREADY_SET_PASSWORD "ALREADY-SET-PASSWORD"
23 #define NUT_ERR_INVALID_USERNAME "INVALID-USERNAME"
24 #define NUT_ERR_ALREADY_SET_USERNAME "ALREADY-SET-USERNAME"
25 #define NUT_ERR_USERNAME_REQUIRED "USERNAME-REQUIRED"
26 #define NUT_ERR_PASSWORD_REQUIRED "PASSWORD-REQUIRED"
27 #define NUT_ERR_UNKNOWN_COMMAND "UNKNOWN-COMMAND"
29 /* errors which are only used with the old functions */
31 #define NUT_ERR_VAR_UNKNOWN "VAR-UNKNOWN"
32 #define NUT_ERR_UNKNOWN_TYPE "UNKNOWN-TYPE"
33 #define NUT_ERR_UNKNOWN_INSTCMD "UNKNOWN-INSTCMD"
34 #define NUT_ERR_MISSING_ARGUMENT "MISSING-ARGUMENT"
35 #define NUT_ERR_INVALID_VALUE "INVALID-VALUE"