mirror of
https://github.com/yusing/godoxy.git
synced 2026-02-24 09:44:58 +01:00
12 lines
225 B
Go
12 lines
225 B
Go
package gphttp
|
|
|
|
import "net/http"
|
|
|
|
func IsSuccess(status int) bool {
|
|
return status >= http.StatusOK && status < http.StatusMultipleChoices
|
|
}
|
|
|
|
func IsStatusCodeValid(status int) bool {
|
|
return http.StatusText(status) != ""
|
|
}
|