abort node immediately stops flow execution and returns an error response to the client. Use it when you encounter critical errors that should halt processing.
Configuration
Config Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
status | number | No | 400 | HTTP status code |
message | string | No | "Request aborted" | Error message |
body | any | No | - | Custom response body (overrides message) |
Response Behavior
The abort node generates a response based on configuration:- If
bodyis provided, it becomes the response body - If only
messageis provided, response is{ "error": "<message>" } - If neither is provided, response is
{ "error": "Request aborted" }
Examples
Simple Error Message
Custom Error Body
Not Found Error
Unauthorized Error
Dynamic Error Message
Common Use Cases
After Failed Validation
Rate Limit Exceeded
Missing Required Resource
vs Response Node
| Abort | Response |
|---|---|
| Error termination | Normal termination |
| Typically 4xx/5xx status | Any status code |
| Stops immediately | Ends flow normally |
| Skips remaining nodes | Final node in flow path |
abort for unexpected errors that should stop processing. Use response for normal flow completion, including handled error responses.
Common Status Codes
| Code | Meaning | Use Case |
|---|---|---|
| 400 | Bad Request | Invalid input |
| 401 | Unauthorized | Missing or invalid auth |
| 403 | Forbidden | Insufficient permissions |
| 404 | Not Found | Resource doesn’t exist |
| 409 | Conflict | Resource state conflict |
| 422 | Unprocessable Entity | Validation failed |
| 429 | Too Many Requests | Rate limit exceeded |
| 500 | Internal Server Error | Unexpected error |
| 503 | Service Unavailable | Dependency down |
Related
- Response Node - Normal flow termination
- Condition Node - Branch to abort on errors
- Try Node - Handle errors gracefully