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.2K All Categories
- 64 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 261 Administration
- 212 Portal
- 490 General Q & A
- 694 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 76 Lunch And Learn Questions