Input and output parameters for DFHWBEP, web error program
CICS® passes
several parameters to DFHWBEP, including an error code, an abend code
and an error message. The output parameters for DFHWBEP are wbep_response_ptr and wbep_response_len.
Attention: This topic contains Product-sensitive Programming Interface and Associated Guidance Information.
For a listing and technical descriptions of all the parameters relating to DFHWBEP, see Web error program, DFHWBEP. For further information about IP address notation, see IP address formats accepted by CICS.
By default, the output parameters relate to the block of storage
containing the default HTTP response produced by CICS:
- If you have used the EXEC CICS WEB and DOCUMENT API commands in DFHWBEP to create a new response and send it to the web client, CICS ignores and discards the HTTP response in the block of storage, so the output parameters are unchanged.
- If you have modified the default response in the block of storage,
you must update the length in
wbep_response_len, giving the new length of the whole buffer. You do not have to calculate the message body length or change the Content-Length header in the response. CICS checks the length of the message body that you have provided and corrects the Content-Length header accordingly. - If you have constructed a new HTTP response manually in a new
block of storage, you have to pass back the address of the new block
of storage in
wbep_response_ptrand the length of the new response inwbep_response_len.