From 7ab409403f559802c1d2c09ddd7250489c8bcaec Mon Sep 17 00:00:00 2001 From: xuu Date: Mon, 24 Mar 2025 17:18:46 -0600 Subject: [PATCH] chore: add 500 status --- fetcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetcher.go b/fetcher.go index 1ec41a0..37d018a 100644 --- a/fetcher.go +++ b/fetcher.go @@ -122,7 +122,7 @@ func (f *httpFetcher) Fetch(ctx context.Context, request *Feed) *Response { f.m_fetch_status.Add(ctx, 1, metric.WithAttributes(attribute.String("status", "not_modified"))) response.err = fmt.Errorf("%w: %s", ErrUnmodified, res.Status) - case 400, 406, 429, 502, 503: + case 400, 406, 429, 500, 502, 503: f.m_fetch_status.Add(ctx, 1, metric.WithAttributes(attribute.String("status", "temp_fail"))) response.err = fmt.Errorf("%w: %s", ErrTemporarilyDead, res.Status)