Technical enquiry - HTTP status codes using API in
Comments
-
[font=Calibri, sans-serif]Hi all, is it possible to return different http codes based on flow outcomes? We seem to always return 200 irrespective of completion/error. I assume it’s by design but was wondering whether there were hooks to override it.[/font]
-
[font=Roboto, Arial, Helvetica, sans-serif]Custom response codes and error messages can be returned to any system connecting to Decisions via a REST call by utilizing Throw API Exception steps in your flow(s). This step allows you to specify a response code and error message to return whenever your flow leads to that step. I have created a small example flow that takes an int as input and returns a 500 response along with an error message whenever the int does not equal 1. Feel free to import, review, or modify it at your convenience.[/font]
Howdy, Stranger!
Categories
- 4.4K All Categories
- 81 General
- 13 Training
- 209 Installation / Setup
- 1.2K Flows
- 110 Rules
- 270 Administration
- 213 Portal
- 497 General Q & A
- 711 Forms
- 346 Reports
- 3 Designer Extensions
- 48 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 187 Pages
- 5 Process Mining
- New Features
- 186 Datastructures
- 70 Repository
- 230 Integrations
- 29 Multi-Tenant
- 27 SDK
- 81 Modules
- 59 Settings
- 26 Active Directory
- 12 Version 7
- 35 Version 8
- 143 Lunch And Learn Questions