You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
766 B
Go
26 lines
766 B
Go
package code
|
|
|
|
import "net/http"
|
|
|
|
type Code int
|
|
|
|
const (
|
|
StatusUnknown = -1
|
|
StatusOK = http.StatusOK
|
|
StatusFailed = 0
|
|
|
|
StatusBadRequest = http.StatusBadRequest
|
|
StatusUnauthorized = http.StatusUnauthorized
|
|
StatusForbidden = http.StatusForbidden
|
|
StatusNotFound = http.StatusNotFound
|
|
StatusRequestTimeoutCode = http.StatusRequestTimeout
|
|
StatusConflict = http.StatusConflict
|
|
StatusTooManyRequests = http.StatusTooManyRequests
|
|
|
|
StatusInternalServerError = http.StatusInternalServerError
|
|
StatusNotImplemented = http.StatusNotImplemented
|
|
StatusBadGateway = http.StatusBadGateway
|
|
StatusServiceUnavailable = http.StatusServiceUnavailable
|
|
StatusGatewayTimeout = http.StatusGatewayTimeout
|
|
)
|