Versions in this module Expand all Collapse all v1 v1.9.18 Jun 18, 2024 v1.9.15 Jun 17, 2024 Changes in this version + const MimeTypeNOSNIFF + func JSONError(w http.ResponseWriter, err *Error, code int) + func WriteError(w http.ResponseWriter, r *http.Request, err string, code int) + type Error struct + func NewError(error string) *Error + func (e *Error) Error() string + func (e *Error) MarshalJSON() ([]byte, error) + func (e *Error) String() string