Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StatusForbidden = StatusError{http.StatusForbidden, errors.New(http.StatusText(http.StatusForbidden))} StatusNotFound = StatusError{http.StatusNotFound, errors.New(http.StatusText(http.StatusNotFound))} StatusLocked = StatusError{http.StatusLocked, errors.New(http.StatusText(http.StatusLocked))} )
Functions ¶
This section is empty.
Types ¶
type Error ¶
Error represents a handler error. It provides methods for a HTTP status code and embeds the built-in error interface.
type StatusError ¶
StatusError represents an error with an associated HTTP status code.
func StatusBadRequest ¶ added in v0.4.0
func StatusBadRequest(problems ...string) StatusError
func (StatusError) Error ¶
func (se StatusError) Error() string
Allows StatusError to satisfy the error interface.
func (StatusError) Unwrap ¶ added in v0.4.0
func (se StatusError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.