API Exception Handling
I have several flows which are used just as API calls. How can I configure these flows so the user receives an HTTP Response Status Code and error message if the flow fails? Here is an example below:
5xx Server Error - the server failed to fulfill a valid request.
Comments
-
This can be achieved using the Throw API Exception step within the flows you are concerned with.
I have configured the step to return a 500 Status Code with the message the server failed to fulfill a valid request as you can see to the right.
Documentation:
Throw API Exception: https://documentation.decisions.com/step-library/docs/throw-api-exception
HTTP and Response Code Error Handling: https://documentation.decisions.com/v9/docs/http-and-response-code-error-handling#throwing-explicit-errors-to-calling-systems
As you can see below, Postman returned the same Status and Description.
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