Custom HTTP Response Codes
Comments
- 
            
I was wondering if Decisions supports the ability to send custom HTTP response codes (eg. 401 Unauthorized, 400 Bad Request) as an output to a flow that is called as a REST API?
 - 
            
We have a step called [b]Throw API Exception [/b]which allows you to set Custom HTTP Response Codes in your Error Response. However please note, some of the HTTP Codes are restricted and cannot be set by a Step (IIS does not permit this), i.e. 401.
[img]https://i.imgur.com/hI6kBob.png[/img]
This step can be found under the [b]Flow Management[/b] category in the Steps dialog.
[i]edited by kshitij@decisions.com on 4/16/2019[/i] - 
            
In addition, a new step has been added in 7.9+ which can return custom response headers along with the status code.
https://documentation.decisions.com/v8/docs/throw-api-exception-with-headers
 
Howdy, Stranger!
Categories
- 4.5K All Categories
 - 88 General
 - 13 Training
 - 214 Installation / Setup
 - 1.2K Flows
 - 112 Rules
 - 277 Administration
 - 215 Portal
 - 503 General Q & A
 - 722 Forms
 - 356 Reports
 - 3 Designer Extensions
 - 47 Example Flows
 - 58 CSS Examples
 - 1 Diagram Tile
 - 8 Javascript Controls
 - 190 Pages
 - 5 Process Mining
 - New Features
 - 187 Datastructures
 - 73 Repository
 - 238 Integrations
 - 30 Multi-Tenant
 - 27 SDK
 - 81 Modules
 - 60 Settings
 - 27 Active Directory
 - 12 Version 7
 - 37 Version 8
 - 143 Lunch And Learn Questions