mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
11 lines
225 B
Go
11 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) != ""
|
|
}
|