40#ifndef __BaErrorCodes_h
41#define __BaErrorCodes_h
74 FE_USER_ERROR_1 = HTTP_E_BASE+100,
93 E_INVALID_SOCKET_CON=-1000,
97 E_SOCKET_WRITE_FAILED,
109 E_INCLUDE_OP_NOT_VALID,
118 E_TLS_NOT_ENABLED = -400,
148#define baFatalE(ecode1, ecode2) baFatalEf(ecode1, ecode2, __FILE__, __LINE__)
162 const char* file,
int line);
BaFatalErrorCodes
Fatal conditions reported to UserDefinedErrHandler, not ordinary returns.
Definition: BaErrorCodes.h:49
@ FE_NO_SERV_CON
error code 2 not used
Definition: BaErrorCodes.h:52
@ FE_SOCKET
error code 2 = errno
Definition: BaErrorCodes.h:53
@ FE_BLUA_PANIC
Lua panic: error 2 is code from exit()
Definition: BaErrorCodes.h:68
@ FE_GETHOSTBYNAME
error code 2 = errno
Definition: BaErrorCodes.h:54
@ FE_LISTEN
error code 2 = errno
Definition: BaErrorCodes.h:57
@ FE_SETSOCKOPT
error code 2 = errno
Definition: BaErrorCodes.h:59
@ FE_WRONG_ENDIAN
Incorrect B_LITTLE_ENDIAN/B_BIG_ENDIAN macro.
Definition: BaErrorCodes.h:72
@ FE_MAGIC_NO
error code 2 not used
Definition: BaErrorCodes.h:64
@ FE_GETHOSTBYNAME2
error code 2 = errno
Definition: BaErrorCodes.h:55
@ FE_SSL_ERROR
error code 2 not used
Definition: BaErrorCodes.h:66
@ FE_MALLOC
error code 2 = size needed
Definition: BaErrorCodes.h:50
@ FE_ACCEPT
error code 2 = errno
Definition: BaErrorCodes.h:60
@ FE_BIND
error code 2 = errno
Definition: BaErrorCodes.h:56
@ FE_NO_IPV6_SUPPORT
error code 2 not used
Definition: BaErrorCodes.h:61
@ FE_IOCTL
error code 2 = errno
Definition: BaErrorCodes.h:58
@ FE_INVALID_CSPREADER
error code 2 not used
Definition: BaErrorCodes.h:62
@ FE_THREAD_LIB
See threadlib for error code 2.
Definition: BaErrorCodes.h:65
@ FE_HTTPCON_INVALID_DISPEV
error code 2 not used
Definition: BaErrorCodes.h:67
@ FE_ASSERT
error code 2 not used
Definition: BaErrorCodes.h:51
@ FE_CANNOT_READ
error code 2 is the offset position
Definition: BaErrorCodes.h:63
@ FE_TYPE_SIZE_ERROR
One of U8 to U32 are of incorrect size.
Definition: BaErrorCodes.h:71
BA_API int baErr2HttpCode(int ecode)
Map selected I/O results to an HTTP response status.
BaErrorCodes
Operation status codes.
Definition: BaErrorCodes.h:91
@ E_PROXY_AUTH
Authentication required or wrong credentials.
Definition: BaErrorCodes.h:125
@ E_PROXY_REFUSED
Connection refused.
Definition: BaErrorCodes.h:130
@ E_SHARK_ALERT_RECV
Call SharkSslCon_getAlertDescription.
Definition: BaErrorCodes.h:119
@ E_SYS_SHUTDOWN
Used by Mako Server (and others) when program exits.
Definition: BaErrorCodes.h:138
@ E_PROXY_GENERAL
general SOCKS server failure
Definition: BaErrorCodes.h:126
@ E_PROXY_NOT_ALLOWED
connection not allowed by ruleset
Definition: BaErrorCodes.h:127
@ E_PROXY_NOT_COMPATIBLE
Not a supported SOCKS version.
Definition: BaErrorCodes.h:134
@ E_PROXY_ADDRESS_NOT_SUP
Address type not supported.
Definition: BaErrorCodes.h:133
@ E_NOT_TRUSTED
SSL certificate not trusted or domain mismatch.
Definition: BaErrorCodes.h:122
@ E_PROXY_UNKNOWN
Unknown SOCKS error.
Definition: BaErrorCodes.h:136
@ E_PROXY_COMMAND_NOT_SUP
Command not supported.
Definition: BaErrorCodes.h:132
@ E_PROXY_NETWORK
Network unreachable.
Definition: BaErrorCodes.h:128
@ E_PROXY_TTL
TTL expired.
Definition: BaErrorCodes.h:131
@ E_INCORRECT_USE
The API is not used correctly.
Definition: BaErrorCodes.h:116
@ E_TLS_CLOSE_NOTIFY
Peer is closing the connection.
Definition: BaErrorCodes.h:123
@ E_PROXY_HOST
Host unreachable.
Definition: BaErrorCodes.h:129
@ E_PAGE_NOT_FOUND
for HttpResponse include or forward
Definition: BaErrorCodes.h:103
BA_API void baFatalEf(BaFatalErrorCodes ecode1, unsigned int ecode2, const char *file, int line)
Invoke platform fatal-error handling and the configured application handler.
BA_API const char * baErr2Str(int ecode)
Convert an operation status to a short diagnostic string.