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