From 4f54e34597300a84199d2ddeac6be7238a56d400 Mon Sep 17 00:00:00 2001 From: Ryan Stafford Date: Sun, 22 Oct 2023 10:25:38 -0400 Subject: [PATCH] report status code errors --- internal/integration/rssbridge/rssbridge.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/integration/rssbridge/rssbridge.go b/internal/integration/rssbridge/rssbridge.go index 0e055868496..117b9c84c1b 100644 --- a/internal/integration/rssbridge/rssbridge.go +++ b/internal/integration/rssbridge/rssbridge.go @@ -35,6 +35,9 @@ func DetectBridges(rssbridgeURL, websiteURL string) (bridgeResponse []Bridge, er if response.StatusCode == http.StatusNotFound { return } + if response.StatusCode > 400 { + return nil, fmt.Errorf("RSS-Bridge: server failure (%d)", response.StatusCode) + } if err := json.NewDecoder(response.Body).Decode(&bridgeResponse); err != nil { return nil, fmt.Errorf("RSS-Bridge: unable to decode bridge response: %w", err) }