Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Change isError logic
Co-authored-by: Ned Andreev <n@andreev.sh>
  • Loading branch information
shantanualsi and na-- authored Dec 6, 2024
commit ae46b7b1c343799d5f19492631cc718812d36392
2 changes: 1 addition & 1 deletion pkg/util/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func ErrorTypeFromHTTPStatus(status int) string {
}

func IsError(status int) bool {
return status/100 != 2
return status < 200 || status >= 300
}

func IsServerError(status int) bool {
Expand Down
Loading