Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadRequest = errors.New("Bad Request")
ErrBadRequest error
View Source
var ErrForbidden = errors.New("Forbidden")
ErrForbidden error
View Source
var ErrInternalServer = errors.New("Internal Server Error")
ErrInternalServer error
View Source
var ErrLocked = errors.New("Locked")
ErrLocked error
View Source
var ErrMethodNotAllowed = errors.New("Method Not Allowed")
ErrMethodNotAllowed error
View Source
var ErrNotFound = errors.New("Not Found")
ErrNotFound error
ErrUnauthorized error
View Source
var ErrUnprocessableEntitiy = errors.New("Unprocessable Entity")
ErrUnprocessableEntitiy error
Functions ¶
func GetHTTPStatusCodeByError ¶
GetHTTPStatusCodeByError returns http status code by given error.
Example of return:
When the given error is "errors.ErrNotFound" then the return will be constant value of "http.StatusNotFound". Return value will be "http.StatusInternalServerError" when the given error is not included in helper/errors
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.