Documentation ¶
Index ¶
- Variables
- func BadRequest(message string) *errors.Error
- func ClientClosed(message string) *errors.Error
- func Conflict(message string) *errors.Error
- func Forbidden(message string) *errors.Error
- func GatewayTimeout(message string) *errors.Error
- func InternalServer(message string) *errors.Error
- func New(code int, message string) *errors.Error
- func NotFound(message string) *errors.Error
- func ServiceUnavailable(message string) *errors.Error
- func Unauthorized(message string) *errors.Error
- type Group
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IsBadRequest = errors.IsBadRequest IsForbidden = errors.IsForbidden IsNotFound = errors.IsNotFound IsConflict = errors.IsConflict IsInternalServer = errors.IsInternalServer IsGatewayTimeout = errors.IsGatewayTimeout IsClientClosed = errors.IsClientClosed )
alias
View Source
var ( ErrBadRequest = BadRequest(http.StatusText(http.StatusBadRequest)) ErrForbidden = Forbidden(http.StatusText(http.StatusForbidden)) ErrNotFound = NotFound(http.StatusText(http.StatusNotFound)) ErrConflict = Conflict(http.StatusText(http.StatusConflict)) ErrInternalServer = InternalServer(http.StatusText(http.StatusInternalServerError)) ErrGatewayTimeout = GatewayTimeout(http.StatusText(http.StatusGatewayTimeout)) ErrClientClosed = ClientClosed("Client Closed") )
vars
Functions ¶
func BadRequest ¶
func ClientClosed ¶
func GatewayTimeout ¶
func InternalServer ¶
func ServiceUnavailable ¶
func Unauthorized ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.