Versions in this module Expand all Collapse all v1 v1.0.1 Apr 9, 2026 v1.0.0 Apr 9, 2026 Changes in this version + var BAD_REQUEST_ERROR = &ErrorResponse + var FORBIDDEN_ERROR = &ErrorResponse + var INTERNAL_SERVER_ERROR = &ErrorResponse + var METHOD_NOT_ALLOWED_ERROR = &ErrorResponse + var UNAUTHORIZED_ERROR = &ErrorResponse + func NewResponseError(contents utils.StringerValidator, status int, headers ...http.Header) (err error) + func WriteResponseError(w http.ResponseWriter, err error, fallback ...error) + type ErrorMeta struct + Endpoint string + type ErrorObject struct + Code string + Detail string + Meta *ErrorMeta + Status int + Title string + type ErrorResponse struct + Errors []ErrorObject + func NewErrorResponse(status int, title string, other ...string) *ErrorResponse + func (res *ErrorResponse) Add(err ErrorObject) + func (res *ErrorResponse) String() string + func (res *ErrorResponse) Validate() (err error) + type ResponseError struct + Body string + Headers http.Header + StatusCode int + func (err ResponseError) Error() (s string) + func (err ResponseError) Write(w http.ResponseWriter)