Integration Server 10.5 | Built-In Services Reference Guide | Flow Folder | Summary of Elements in this Folder | pub.flow:setResponseCode
 
pub.flow:setResponseCode
WmPublic. Specifies the HTTP response code to be returned by Integration Server to a calling process (such as a browser or application server).
Input Parameters
responseCode
String HTTP status code to be returned to the caller.
The response codes and phrases are defined in RFC 2616, Section 10. If you provide a value for responseCode that is not listed in RFC 2616, Section 10, you must also provide a value for reasonPhrase.
reasonPhrase
String Optional. HTTP reason phrase to be returned to the caller. If no reason is provided, the default reason phrase associated with responseCode will be used. You must provide a reasonPhrase for any responseCode that is not listed in RFC 2616, Section 10
Output Parameters
None.
Usage Notes
When you invoke pub.flow:setResponseCode from Designer and set the responseCode input variable to 204, the Results view in the Service Development perspective will be empty. This is because an HTTP response code of 204 indicates to the client that there is no content in the response. For Designer, this means there is no output pipeline to display when the service completes.