Versions in this module Expand all Collapse all v1 v1.2.2 Oct 15, 2025 v1.2.1 Sep 26, 2025 Changes in this version + func ErrorHandler(h ErrorReturningHandler) http.HandlerFunc + type ApiError struct + func BadRequestErr(err error) *ApiError + func InternalServerErr(err error) *ApiError + func NewApiError(err error, code int) *ApiError + func UnauthorizedErr(err error) *ApiError + func (e *ApiError) Error() string + type ErrorResponse struct + Code int + Error string + type ErrorReturningHandler func(w http.ResponseWriter, r *http.Request) *ApiError