OSS 不可用错误补上机器可读的 reason

- server-rs/crates/api-server/src/tripo3d/errors.rs:oss_unavailable 增加 reason=oss-unavailable,与同文件其它 5xx 映射及 editor_agent 的 OSS 错误口径一致,客户端可按 reason 分类这个 503

验证:cargo check -p api-server(--locked)
This commit is contained in:
2026-09-22 13:35:23 +08:00
parent 66b8c2bed0
commit 6d8164d37a
@@ -73,6 +73,7 @@ pub(crate) fn map_provider_error(error: TripoError) -> AppError {
pub(crate) fn oss_unavailable(message: &str) -> AppError {
AppError::from_status(StatusCode::SERVICE_UNAVAILABLE).with_details(json!({
"provider": "aliyun-oss",
"reason": "oss-unavailable",
"message": message,
}))
}