Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCode = 500
Default code defines the code that will be used by default when none is given. It is set to 500, Internal Server Error
Functions ¶
func New ¶
func New(msg string, fs ...ErrorEnricher) error
Types ¶
type ErrorEnricher ¶
func BadRequest ¶
func BadRequest() ErrorEnricher
func Forbidden ¶
func Forbidden() ErrorEnricher
func NotFound ¶
func NotFound() ErrorEnricher
Click to show internal directories.
Click to hide internal directories.