subreddit(check): fix wrong status code to report upstream

This commit is contained in:
Tigor Hutasuhut 2024-04-26 10:53:00 +07:00
parent c6d84e3de2
commit a4d840bcbf

View file

@ -68,7 +68,7 @@ func (reddit *Reddit) CheckSubreddit(ctx context.Context, params CheckSubredditP
"params", params,
"url", url,
"response.location", resp.Request.URL.String(),
).Code(http.StatusTooManyRequests)
).Code(http.StatusFailedDependency)
}
if resp.Request.URL.Path == "/subreddits/search.json" {