We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fb3bca4 + 81969be commit 64bdb95Copy full SHA for 64bdb95
config/healthcheck.php
@@ -77,6 +77,12 @@
77
*/
78
'default-response-code' => 200,
79
80
+ /*
81
+ * Default code for HTTP health check when there any problem occured.
82
+ * Will be used in the HealthCheckController's response.
83
+ */
84
+ 'default-problem-http-code' => 500,
85
+
86
/*
87
* Default timeout for cURL requests for HTTP health check.
88
src/Controllers/HealthCheckController.php
@@ -42,6 +42,6 @@ public function __invoke(Container $container)
42
}
43
44
45
- return new Response($body, $isProblem ? 500 : 200);
+ return new Response($body, $isProblem ? config('healthcheck.default-problem-http-code') : 200);
46
47
0 commit comments