> For the complete documentation index, see [llms.txt](https://resources.atriptech.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://resources.atriptech.com/api-wen-dang/support-and-reference/troubleshooting-and-support/errors-handing/205-vs-299-vs-304.md).

# 205 vs 299 vs 304

{% hint style="info" %}
💬 **需要帮助？** 如果遇到问题，请在帮助中心咨询 Eva，快速获取诊断建议。

<a href="https://www.atriptech.com/" class="button primary" data-icon="comments">咨询 Eva</a>
{% endhint %}

当验证或订单创建失败且响应看起来是临时性的，而不是明确由输入或过时标识符引起时，使用本页面。

### 简要回答

`205` 是验证超时。

`299` 是临时性验证失败。

`304` 是临时性订单阶段失败。

三者都是可重试的，但不能盲目循环重试。

### 常见问题

#### `205` 通常意味着什么？

意味着 `verify.do` 超时。

短暂等待后重试一次。

#### `299` 通常意味着什么？

意味着验证因临时平台或航空公司侧条件而失败。

重试验证一次。

如果需要，从搜索重新开始。

#### `304` 通常意味着什么？

意味着订单创建遇到了临时平台或航空公司侧问题。

小心重试。

如果重复出现则升级。

### 核心区别

#### `205` — 验证超时

**失败阶段**

`verify.do`

**通常含义**

验证响应时间过长。

**下一步操作**

短暂等待后重试验证一次。

#### `299` — 临时性验证失败

**失败阶段**

`verify.do`

**通常含义**

Atlas 或航空公司遇到了短暂的运营问题。

**下一步操作**

重试验证一次。

如果重复出现，从 `search.do` 重新开始。

如果仍然重复，升级。

#### `304` — 临时性订单阶段失败

**失败阶段**

`order.do`

**通常含义**

订单创建遇到了临时平台或航空公司侧问题。

**下一步操作**

小心重试。

如果重复出现，附带请求上下文升级。

### 快速决策规则

在生产中使用此规则：

* `205` — 短暂等待后重试验证一次
* `299` — 重试验证一次，如果需要从搜索重新开始
* `304` — 小心重试，如果重复则升级

### 应避免的事项

不要将这些代码视为过时标识符错误。

不要在第一次临时性失败时立即重新启动整个流程。

不要运行无限重试循环。

### 常见错误

#### 将 `205` 视为 `202`

不要这样做。

`205` 是超时，不是过期的 `routingIdentifier`。

#### 将 `299` 视为硬性输入错误

不要这样做。

这通常是临时性运营问题。

#### 并行激进地重试 `304`

不要这样做。

不经意的重试可能会产生重复或不明确的预订结果。

### 最佳实践

使用受控的重试。

在日志中保留请求时间戳、标识符、行程摘要和乘客组合。

如果相同的临时性代码重复出现，附加上下文升级。

### 相关页面

* [202 vs 301 vs 308](/api-wen-dang/support-and-reference/troubleshooting-and-support/errors-handing/202-vs-301-vs-308.md)
* [重启点](/api-wen-dang/product-guides/booking/booking-overview/booking-decisions/restart-point.md)
* [验证](/api-wen-dang/product-guides/booking/booking-step-guides/verify.md)
* [创建订单](/api-wen-dang/product-guides/booking/booking-step-guides/create-order.md)
* [错误代码](/api-wen-dang/support-and-reference/troubleshooting-and-support/errors-handing.md)
* [验证、订单与出票错误](/api-wen-dang/support-and-reference/troubleshooting-and-support/errors-handing/verify-order-and-ticketing-errors.md)
