---
title: "Fail a waiting step"
method: POST
path: "/durable-callbacks/fail"
tags: ["Durable Functions"]
---

# Fail a waiting step

`POST /durable-callbacks/fail`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/durable-callbacks/fail`
- Auth: none required

Resumes the workflow step waiting on the token by raising `error`. The
SDKs raise it as `CallbackFailedError`, carrying its `type` and
`message`.

The token is the only credential, and takes one outcome, as for
succeeding it.

## Request body

- FailDurableCallbackRequest
  - `token` string, required: The `vcb_` token the workflow handed out. It is the only credential the callback operations take, so treat it as a secret.
  - `error` DurableCallbackError, required: The error the waiting step raises.
    - `type` string, required: A name workflows can branch on, such as `PaymentDeclined`. Up to 256 characters, without control characters.
    - `message` string: A human-readable explanation of up to 32,768 bytes of UTF-8, with tab and newline as its only control characters. A character outside ASCII takes more than one byte, so such text reaches the limit before `maxLength`.

## Response `200`

The workflow has the error

- DurableCallbackOutcome
  - `status` 'waiting' | 'delivering' | 'succeeded' | 'failed', required: `waiting` until the token is succeeded or failed. `delivering` while the outcome is on its way to the workflow; Volcano finishes the delivery on its own. `succeeded` or `failed` once the workflow has the outcome.

## Other responses

- `202`: The error is recorded and on its way to the workflow. Volcano finishes the delivery; do not send it again.
- `400`: The token is missing or malformed, or the error's `type` or `message` is invalid
- `404`: No callback has this token. `code` is `callback_not_found`.
- `409`: The token already has an outcome. `code` is `callback_completed`.
- `410`: The workflow no longer waits on the token. `code` is `callback_expired` or `execution_ended`.
- `413`: The request body is larger than 200 KiB
- `429`: Too many callback requests for the token or its project. Retry later.

## Changes

- **2026-10-26** `4b0676e06128`: 1 warning
  - changed the pattern of the request property `error/message` from `^[^\x00]*$` to `^[^\x00-\x08\x0B-\x1F\x7F]*$`
- **2026-10-23** `5113707385cc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/durable-callbacks/fail/post.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
