fix: Health check 503 응답에 상세 데이터 포함 (#126)
All checks were successful
SPMS_API/pipeline/head This commit looks good

Reviewed-on: https://git.ipstein.myds.me/SPMS/SPMS_API/pulls/127
This commit is contained in:
김선규 2026-02-10 10:35:01 +00:00
commit f8eb938a9d

View File

@ -73,8 +73,12 @@ public class PublicController : ControllerBase
return Ok(ApiResponse<object>.Success(checks));
}
return StatusCode(503, ApiResponse<object>.Fail(
ErrorCodes.InternalError,
"하나 이상의 서비스에 문제가 있습니다."));
return StatusCode(503, new ApiResponse<object>
{
Result = false,
Code = ErrorCodes.InternalError,
Msg = "하나 이상의 서비스에 문제가 있습니다.",
Data = checks
});
}
}