Versions in this module Expand all Collapse all v0 v0.3.14 Mar 5, 2024 v0.3.13 Jan 16, 2024 v0.3.12 Jan 11, 2024 Changes in this version + func ErrorText(code int) string + func WithErrorHandler(ctx context.Context, h ErrorHandlerFunc) context.Context + type Error interface + Error func() string + Status func() int + type ErrorHandlerFunc func(http.ResponseWriter, *http.Request, error) + func ErrorHandler(ctx context.Context) (ErrorHandlerFunc, bool) + type HTTPError struct + Code int + Err error + Hdr http.Header + func NewHTTPError(code int, err error, note string) *HTTPError + func NewHTTPErrorf(code int, err error, format string, args ...any) *HTTPError + func (err *HTTPError) AddHeader(key, value string) + func (err *HTTPError) DeleteHeader(key string) + func (err *HTTPError) Error() string + func (err *HTTPError) Header() http.Header + func (err *HTTPError) ServeHTTP(rw http.ResponseWriter, req *http.Request) + func (err *HTTPError) SetHeader(key, value string) + func (err *HTTPError) Status() int + func (err *HTTPError) Unwrap() error