Mapping HTTP Status Code and Status Message
You can find out the HTTP status code and status message of every REST response received by a REST reference binding. You can then map the HTTP status code and status message to a context parameter. This is helpful when you intend to make decisions based on the HTTP status code of the response received.
Configure the following:
- Supported Type: Basic
- Supported Header Source: HTTP_HEADERS
- Direction: Output
- Header Name: statusCode (for HTTP Status Code)/statusMsg (for HTTP Status Message)
- Context Parameter Name: statusCode (for HTTP Status Code)/statusMsg (for HTTP Status Message)