diff --git a/docs/superpowers/plans/2026-10-12-user-sync.md b/docs/superpowers/plans/2026-10-12-user-sync.md index ed7563e..97b000f 100644 --- a/docs/superpowers/plans/2026-10-12-user-sync.md +++ b/docs/superpowers/plans/2026-10-12-user-sync.md @@ -1109,9 +1109,8 @@ fn h_sync_pull(r: *mut ngx_http_request_t, _actor: Actor) -> Status { "拉取合并完成", ) } - // ⚠️ ngx-rust 的 HTTPStatus 宏**没有定义任何 5xx 常量** - // (vendor/ngx-rust/src/http/status.rs 里 4xx 之后直接跳到 nginx 自定义码), - // 故 502 Bad Gateway 用不了。pull 失败统一报 500。 + // pull 失败统一报 500 而非 502:失败原因不止「对端转发失败」,还包含 + // 载荷解析失败、本侧写盘失败等,502 会把后两者误述成网关问题。 Err(e) => http::fail(r, HTTPStatus::INTERNAL_SERVER_ERROR, &e), } }