www.beck-ipc.com

@CHIP-RTOS C Library V2.06 - Common Gateway Interface API


CGI_Install_Func_OnErr

Install CGI function on http errors

int CGI_Install_Func_OnErr( unsigned int error_state,                         void far *CgiFuncOnErr);

Parameters

error_state

http error state (see below)

CgiFuncOnErr

CGI Function pointer

Return Value

0:    CGI function installed
-1:    CGI function not installed

Comments

The CGI function must be implemented in the same way than a CGI function, installed with CGI_INSTALL. For deleting an entry, install a null pointer.

SC1x Comments

Possible Http error states(parameter error_state):
07: 401 Unauthorized
08: 404 not found
10: 500 Server error (File system error)
22: 503 Service not available (Out of memory)

SC1x3 Comments

Possible Http error states(parameter error_state):
08: 404 not found

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3
    V1.11V1.01V1.01V0.90

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document