Use AltStatusCodes for HasFailing check
This commit is contained in:
parent
04811a0658
commit
201b4ca1e8
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ func (widget *Monitor) Update(ctx context.Context) {
|
|||
status := &statuses[i]
|
||||
site.Status = status
|
||||
|
||||
if status.Code >= 400 || status.TimedOut || status.Error != nil {
|
||||
if !slices.Contains(site.AltStatusCodes, status.Code) && (status.Code >= 400 || status.TimedOut || status.Error != nil) {
|
||||
widget.HasFailing = true
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue