symfony-health-check-bundle icon indicating copy to clipboard operation
symfony-health-check-bundle copied to clipboard

Add parameter Custom Error Json Response errorResponseCode: int (default: 200);

Open Yozhef opened this issue 3 years ago • 1 comments

errorResponseCode: int (default: 200); If one of check is failed your Json Response Code change to your custom response code.

Yozhef avatar Jan 16 '22 18:01 Yozhef

This decision still needs to be discussed - so we put them in a state of waiting for feedback on the needs of the community

Yozhef avatar Jan 18 '22 14:01 Yozhef

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

oparshyna avatar Jul 11 '23 10:07 oparshyna

This fork implements this behaviour:

https://github.com/jpvdw86/symfony-health-check-bundle

guedressel avatar Jul 22 '23 16:07 guedressel

@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)

Yozhef avatar Jul 26 '23 06:07 Yozhef

@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

Yozhef avatar Oct 03 '23 13:10 Yozhef

Many thanks to @oparshyna for the work done)

Yozhef avatar Oct 03 '23 14:10 Yozhef