You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,16 @@ symfony_health_check:
70
70
- id: symfony_health_check.doctrine_check
71
71
ping_checks:
72
72
- id: symfony_health_check.status_up_check
73
-
# using this optional parameter you may set custom error code if some check fails. Response code must be a valid HTTP status code. Default response is 200l.
73
+
```
74
+
Change response code:
75
+
- default response code is 200.
76
+
- determine your custom response code in case of some check fails (Response code must be a valid HTTP status code)
77
+
```yaml
78
+
symfony_health_check:
79
+
health_checks:
80
+
- id: symfony_health_check.doctrine_check
81
+
ping_checks:
82
+
- id: symfony_health_check.status_up_check
74
83
ping_error_response_code: 500
75
84
health_error_response_code: 404
76
85
```
@@ -144,12 +153,12 @@ You can change the default behavior with a light configuration, remember to retu
0 commit comments