Customizing Web Service Status/Error Messages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2017 05:54 AM
Hi,
I have a need to provide a set of custom response codes to a 3rd party app, does anyone have any material/sample they can share in this regard?
Status_code - 200 isn’t enough.
Thanks!
Yours,
Adrian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2017 06:10 AM
Adrian,
AFAIK custom http response codes are supported only in ULTRA mode i.e. pipelines deployed as ultra tasks ( http://doc.snaplogic.com/ultra-tasks )
Check out this thread where I have an ultra task that sets custom response headers Ultra Pipeline Functionality - #6 by Bhavin
![del del](https://iaudz84835.lithium.com/legacyfs/online/avatars/2X/3/38c1bb82df3daded4592cbfa9ef4967c00eb62ed.jpeg)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2017 12:19 PM
@AdrianH, I have run into similar cases. I think this would be a valuable enhancement request:
To allow the standard pipeline HTTP Response to be overridden by either an “HTTP Response” snap (or ability to create a custom override snap), or the most convenient way would be allowing to set HTTP Response value(s) to the “pipe” object in an array within the Pipeline flow (ex. pipe.HttpResponse.addReplace(‘headerName’,‘headerValue’)).
Pipeline parameters or Pipeline-specific configuration would not work in this case because you need the ability to determine response based on pipeline execution results.
![](/skins/images/2F7CD4FE0155D942E74E75BFCA3E9E4D/responsive_peak/images/icon_anonymous_message.png)