Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( errors.New("service is unavailable") // ErrInternal defines a generic internal server error. ErrInternal = errors.New("internal server error") ErrUnauthorized = errors.New("user credentials invalid") // ErrBadRequest defines an error that signifies that the client request is not valid. ErrBadRequest = errors.New("bad request") // ErrBadResponse defines an error that signifies that the response could not be properly parsed. ErrBadResponse = errors.New("bad response") )ErrServiceUnavailable =
View Source
var Codes = map[int]error{ http.StatusServiceUnavailable: ErrServiceUnavailable, http.StatusInternalServerError: ErrInternal, http.StatusBadRequest: ErrBadRequest, http.StatusUnauthorized: ErrUnauthorized, }
Codes are the service error codes mapping.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.