> ## Documentation Index
> Fetch the complete documentation index at: https://docs.x402x.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch 返回值

> 包装后 fetch 的行为与返回

## 行为

* 200：直接返回
* 402：自动签名并重试，返回最终响应
* 其他错误：透传原始响应

## 返回

* 与原生 `fetch` 一致，返回 `Response` 对象

## 重试流程说明

1. 首次请求 → 若返回 402（含 `accepts`）
2. 根据选择器/默认策略挑选 `PaymentRequirements`
3. 生成并签名 `PaymentPayload`（匹配 `requirements`）
4. 附上 `X-Payment` 头自动重试
5. 返回最终响应（200/402/其他）
