Example 4 - Node with Timeout Error Code and Error Message (HTTP)
Last updated
Was this helpful?
Last updated
Was this helpful?
This example demonstrates how to customize timeout handling in FlowSync transactions. The configuration extends Example 1 - Node with Transaction Mode (HTTP) by demonstrating how to define specific timeout behavior, including custom timeout duration, error codes, and error messages. When a request does not receive a response within the specified timeout period, the system returns a configured HTTP 408 error along with a custom message, providing a better user experience for timeout scenarios.
To call the HttpNode in the example below, run the following command:
For more information on the FlowSync configuration properties, see Cybus:Node.