Versions in this module Expand all Collapse all v0 v0.1.0 Jan 22, 2025 Changes in this version + var BAD_REQUEST_ERROR = []ErrorContent + var INTERNAL_SERVER_ERROR = []ErrorContent + var METHOD_NOT_ALLOWED_ERROR = []ErrorContent + var NOT_FOUND_ERROR = []ErrorContent + var UNSUPPORTED_MEDIA_TYPE_ERROR = []ErrorContent + type ErrorContent struct + Detail string + Status int + Title string + type HTTPError struct + Errors *[]ErrorContent + Header *http.Header + Status int + func NewHTTPError(status int, errors *[]ErrorContent) *HTTPError + func (e *HTTPError) Error() string + func (e *HTTPError) SetHeader(key, value string) + func (e *HTTPError) Write(w http.ResponseWriter)