Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InternalServerError = errors.New("Internal Server Error") NotFound = errors.New("Not Found") RequestTimeoutError = errors.New("Request Timeout") CannotBindGivenData = errors.New("Could not bind given data") ValidationError = errors.New("Validation failed for given payload") UniqueError = errors.New("Item should be unique on database") )
Functions ¶
func ErrorResponse ¶
Types ¶
type RestErr ¶
func NewInternalServerError ¶
func NewInternalServerError(causes interface{}) RestErr
func NewRestError ¶
func ParseErrors ¶
Click to show internal directories.
Click to hide internal directories.