According to the documentation [1], the server startup health check should return 200 OK only if all APIs are deployed successfully. However, it currently returns a 500 Internal Server Error only when all APIs fail to deploy and gives a 200 OK response for any other scenario, even if some APIs fail.
Some users want to verify whether all APIs are deployed to the gateway during startup using the health check API.
Description
Hi Team,
According to the documentation [1], the server startup health check should return 200 OK only if all APIs are deployed successfully. However, it currently returns a 500 Internal Server Error only when all APIs fail to deploy and gives a 200 OK response for any other scenario, even if some APIs fail.
Some users want to verify whether all APIs are deployed to the gateway during startup using the health check API.
[1]. https://apim.docs.wso2.com/en/4.0.0/install-and-setup/setup/deployment-best-practices/basic-health-checks/#:~:text=.%20If%20everything%20is%20in%20order%20and%20all%20the%20APIs%20are%20deployed%20successfully%2C%20the%20health%2Dcheck%20API%20will%20respond%20with%20a%20status%20code%20of%20200%20OK.
Regards, Jathavan.
Steps to Reproduce
N/A
Affected Component
APIM
Version
4.0.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response