github.com/criteo/command-launcher@v0.0.0-20230407142452-fb616f546e98/internal/helper/status-code.go (about) 1 package helper 2 3 import "net/http" 4 5 func Is2xx(statusCode int) bool { 6 return statusCode >= http.StatusOK && statusCode <= http.StatusIMUsed 7 }