Documentation
¶
Overview ¶
Package status is used to allow sorting of errors to http status codes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HTTP = map[int]error{ http.StatusBadRequest: errors.New("'bad request'"), http.StatusUnauthorized: errors.New("'unauthorized'"), http.StatusForbidden: errors.New("'forbidden'"), http.StatusNotFound: errors.New("'not found'"), http.StatusTooManyRequests: errors.New("'too many requests'"), http.StatusInternalServerError: errors.New("'internal server error'"), http.StatusServiceUnavailable: errors.New("'service unavailable'"), }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.