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.
ntool-biz/core/nstatus/code/code.go

26 lines
766 B
Go

1 year ago
package code
import "net/http"
type Code int
1 year ago
const (
StatusUnknown = -1
StatusOK = http.StatusOK
StatusFailed = 0
1 year ago
StatusBadRequest = http.StatusBadRequest
StatusUnauthorized = http.StatusUnauthorized
StatusForbidden = http.StatusForbidden
StatusNotFound = http.StatusNotFound
StatusRequestTimeoutCode = http.StatusRequestTimeout
StatusConflict = http.StatusConflict
StatusTooManyRequests = http.StatusTooManyRequests
1 year ago
StatusInternalServerError = http.StatusInternalServerError
StatusNotImplemented = http.StatusNotImplemented
StatusBadGateway = http.StatusBadGateway
StatusServiceUnavailable = http.StatusServiceUnavailable
StatusGatewayTimeout = http.StatusGatewayTimeout
1 year ago
)