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.1K All Categories
- 61 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 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
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions