For the complete documentation index, see llms.txt. This page is also available as Markdown.

Example 3 - Node with Error (HTTP)

Return custom error responses in FlowSync transactions by publishing an HTTP 500 error code and message for incoming requests.

This example demonstrates error handling in FlowSync transactions. Building upon Example 2 - Node with Error (HTTP), the configuration shows how to return custom error responses for HTTP requests. When a request is received, the system generates a response containing a specific HTTP error code (500) along with a custom error message, demonstrating how to handle error scenarios in your services using FlowSync.

  • To call the HttpNode in the example below, run the following command:

curl --insecure \
--location 'https://127.0.0.1/data/flowsync/example3' \
--header 'Authorization: Bearer <replace with your token>'

For more information on the FlowSync configuration properties, see Cybus:Node.

Last updated

Was this helpful?