# Example 4 - Node with Timeout Error Code & Error Message (HTTP)

This example demonstrates how to customize timeout handling in FlowSync transactions. The configuration extends [Example 1 - Node with Transaction Mode (HTTP)](https://docs.cybus.io/2-0-6/documentation/services/flowsync/flowsync-example-1) 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:

{% code lineNumbers="true" %}

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

{% endcode %}

For more information on the FlowSync configuration properties, see [Cybus:Node](https://docs.cybus.io/2-0-6/documentation/service-commissioning-files/resources/cybus-node#operation).

<figure><img src="https://639096190-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfDpOJO2upcq5EpoSahvK%2Fuploads%2Fgit-blob-16daa4b67fbcb981e936a8c139b9f5d5ee5c2759%2Fflowsync-example-4.png?alt=media" alt=""><figcaption></figcaption></figure>

{% file src="<https://639096190-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfDpOJO2upcq5EpoSahvK%2Fuploads%2Fgit-blob-9adbc9d52ccc498eff15af20069f41123e3d5681%2Fflowsync-example-4-node-with-timeout-error-code-and-error-message-http.yaml?alt=media>" %}

{% code title="flowsync-example-4-node-with-timeout-error-code-and-error-message-http.yaml" lineNumbers="true" %}

```yaml
description: FlowSync - Example 4

metadata:
  name: example 4
  version: 1.0.0

resources:
  testServer:
    type: Cybus::Server::Http
    properties:
      basePath: /FlowSync

  exampleNode:
    type: Cybus::Node::Http
    properties:
      parent: !ref testServer
      method: GET
      route: /example4
      operation: transaction
      transaction: #optional
        timeout: 2000 # optional
        timeoutErrorCode: 408 # optional
        timeoutErrorMessage: 'Your Request timed out. This is a custom timeout message.' # optional
```

{% endcode %}
