mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-30 22:02:02 +02:00
updated implementation of rules
This commit is contained in:
@@ -5,3 +5,7 @@ import "net/http"
|
||||
func IsSuccess(status int) bool {
|
||||
return status >= http.StatusOK && status < http.StatusMultipleChoices
|
||||
}
|
||||
|
||||
func IsStatusCodeValid(status int) bool {
|
||||
return http.StatusText(status) != ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user