Skip to content

Commit

Permalink
bug: remove 5xx codes from 4xx check
Browse files Browse the repository at this point in the history
  • Loading branch information
bschaatsbergen committed Mar 31, 2024
1 parent 3e35142 commit 22b2e97
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions internal/provider/http_client_error_function.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,7 @@ func isHTTPClientError(statusCode int64) bool {
http.StatusPreconditionRequired,
http.StatusTooManyRequests,
http.StatusRequestHeaderFieldsTooLarge,
http.StatusUnavailableForLegalReasons,
// 5XX status codes
http.StatusInternalServerError,
http.StatusNotImplemented,
http.StatusBadGateway,
http.StatusServiceUnavailable,
http.StatusGatewayTimeout,
http.StatusHTTPVersionNotSupported,
http.StatusVariantAlsoNegotiates,
http.StatusInsufficientStorage,
http.StatusLoopDetected,
http.StatusNotExtended,
http.StatusNetworkAuthenticationRequired:
http.StatusUnavailableForLegalReasons:
return true
default:
return false
Expand Down

0 comments on commit 22b2e97

Please sign in to comment.