SharkSSL™ Embedded SSL/TLS Stack
Minnow Server Error Codes

Detailed Description

Error codes returned by functions in the Minnow Server Lib.

Macros

#define MS_ERR_ALLOC   -10
 Allocation error means the SharkSSL buffers are too small when operating in secure mode, or the buffers provided to MSTBuf is too small when operating in non secure mode.
 
#define MS_ERR_AUTHENTICATION   -11
 This error code is returned if WssProtocolHandshake::b64Credent is set and an HTTP client provides incorrect credentials.
 
#define MS_ERR_HTTP_HEADER_OVERFLOW   -12
 The HTTP request header may be stored in the SharkSSL send buffer. More...
 
#define MS_ERR_INVALID_HTTP   -13
 Received invalid HTTP header from client.
 
#define MS_ERR_NOT_WEBSOCKET   -14
 The request was successful, but it is not a WebSocket connection.
 
#define MS_ERR_READ   -15
 Socket read error.
 
#define MS_ERR_READ_TMO   -16
 Socket read timeout.
 
#define MS_ERR_SSL_HANDSHAKE   -17
 The initial SSL handshake failed.
 
#define MS_ERR_WRITE   -18
 Socket write error.
 
#define MS_ERR_ENCRYPTED_ZIP   -30
 Encrypted ZIP file not supported by ZipFileSystem.
 
#define MS_ERR_FILE_IO   -31
 Error reported by MSFetchPage.
 
#define MS_ERR_BUF_OVERFLOW   -40
 Incorrect parameter use when calling MS_prepSend and then calling one of MS_sendBin or MS_sendText.
 
#define MS_ERR_BUF_UNDERFLOW   -41
 Incorrect parameter use when calling MS_prepSend and then calling one of MS_sendBin or MS_sendText.
 

Macro Definition Documentation

◆ MS_ERR_HTTP_HEADER_OVERFLOW

#define MS_ERR_HTTP_HEADER_OVERFLOW   -12

The HTTP request header may be stored in the SharkSSL send buffer.

This error indicates that the send buffer must be increased.