webMethods Integration Cloud and Cloud Deployment Documentation 5.6.0 | webMethods Integration Cloud | Integrations, Built-In Services, REST APIs, SOAP APIs, Doc Types, and Recipes | Built-In Services | Flow | setHTTPResponse
 
setHTTPResponse
Sets the HTTP response information to be returned by Integration Cloud.
Parameters
headers
Document Optional. Contains the header fields to be returned in the HTTP response.
responseCode
String Optional. HTTP status code to be returned to the client.
The response codes and phrases are defined in https://tools.ietf.org/html/rfc7231#section-6. If you provide a value for responseCode that is not listed in RFC 7321, Section 6, you must also provide a value for reasonPhrase.
responsePhrase
String Optional. HTTP reason phrase to be returned to the client. 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 7321, Section 6.
responseString
String Optional. Response to be returned to the client, specified as a string.
responseBytes
byte[ ] Optional. Response to be returned to the client, specified as a byte array.
responseStream
java.io.InputStream Optional. Response to be returned to the client, specified as an InputStream.

Copyright © 2014- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.