chore: add 500 status

This commit is contained in:
xuu 2025-03-24 17:18:46 -06:00
parent 8ae61d4a27
commit 7ab409403f
Signed by: xuu
GPG Key ID: 8B3B0604F164E04F

View File

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