# System Error Codes

This section provides insight into Chat Flow's system error codes. Each of these error codes are associated with a cause, providing flow-builders the ability to debug flows.

## System Terminology

| Item             | Description                                                                                                                                                |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Engine           | Chat Flow back-end; controls transportation of inbound & outbound content                                                                                  |
| Gateway          |                                                                                                                                                            |
| Flow Config      | This represents issues relating to flows being incomplete or incorrectly built                                                                             |
| WhatsApp Adapter | Channel adapter for the WhatsApp channel; controls inbound & outbound transportation of messages between the user and the workflows developed on Chat Flow |

## Error Codes

| Code | Description             | Cause                                                            | Location/Service        |
| ---- | ----------------------- | ---------------------------------------------------------------- | ----------------------- |
| CT01 | Non Recoverable Error   | Error constructing response in Engine, or next step is not found | Engine                  |
| CT02 | Non Recoverable Error   | Session is missing when preparing response in Flow Engine        | Engine                  |
| CT03 | Generic Gateway Error   | Unhandled error on incoming request to Gateway                   | Gateway                 |
| CT04 | Missing Next Step       | Next step missing in flow                                        | Flow Config             |
| CT11 | Read Timeout            | Timeout between our services                                     | Gateway                 |
| CT12 | Read Timeout            | Timeout between our services                                     | Engine                  |
| CT21 | Unhandled Error         | Unhandled Error Occurred                                         | Engine                  |
| CT22 | Unhandled Error         | Unhandled Error Occurred                                         | WhatsApp Adapter        |
| CT40 | Session Closed          | Session being referenced has already been terminated             | Gateway                 |
| CT51 | Unhandled Http Response | Unexpected/Unhandled response. i.e. missing "other" case in flow | Flow Engine/Flow Config |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.clickatell.com/chat-flow/system-error-codes/system-error-codes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
