symfony-health-check-bundle
symfony-health-check-bundle copied to clipboard
Add parameter Custom Error Json Response errorResponseCode: int (default: 200);
errorResponseCode: int (default: 200); If one of check is failed your Json Response Code change to your custom response code.
This decision still needs to be discussed - so we put them in a state of waiting for feedback on the needs of the community
Hi, it would be great to have such possibility to add custom response code. In some cases if any of checks fails means, that the whole service doesn't work. And error response code could be very useful for such cases
This fork implements this behaviour:
https://github.com/jpvdw86/symfony-health-check-bundle
@guedressel Soon it will be implemented in our country as well, with greater abstraction thanks to @oparshyna
There are only 2 possible codes in the cloned repository - and you cannot influence it in any way, we will add a code that will allow you to influence the results through the configs)
@guedressel sorry for the long processing of the request, we are preparing to release these changes that will cover this issue: https://github.com/MacPaw/symfony-health-check-bundle/pull/63
Many thanks to @oparshyna for the work done)