Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInternalServerError will throw if any the Internal Server Error happen ErrInternalServerError = errors.New("internal Server Error") // ErrNotFound will throw if the requested item is not exists ErrNotFound = errors.New("your requested Item is not found") // ErrConflict will throw if the current action already exists ErrConflict = errors.New("your Item already exist") // ErrBadParamInput will throw if the given request-body or params is not valid ErrBadParamInput = errors.New("given Param is not valid") // ErrBadRequest bad request ocurred when requisition contains errors ErrBadRequest = errors.New("your request was recused because contains errors") )
Functions ¶
func GetStatusErrorCode ¶
GetStatusErrorCode - Check error type and return approprieted
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.