diff --git a/server-rs/crates/api-server/src/match3d.rs b/server-rs/crates/api-server/src/match3d.rs index 4b643b41..7f6f3c7a 100644 --- a/server-rs/crates/api-server/src/match3d.rs +++ b/server-rs/crates/api-server/src/match3d.rs @@ -1241,6 +1241,13 @@ fn map_match3d_work_summary_response(item: Match3DWorkProfileRecord) -> Match3DW } } +fn match3d_bad_gateway(message: impl Into) -> AppError { + AppError::from_status(StatusCode::BAD_GATEWAY).with_details(json!({ + "provider": MATCH3D_AGENT_PROVIDER, + "message": message.into(), + })) +} + fn map_match3d_work_profile_response(item: Match3DWorkProfileRecord) -> Match3DWorkProfileResponse { Match3DWorkProfileResponse { summary: map_match3d_work_summary_response(item),