package errorh



// A common error payload returned
// when the response code is not 2xx
type ErrorModel struct {
	// Error description, that shuld be less technical
	// and more user orientated where possible
	Message string `json:"message,omitempty"`

	// Information on how the error or issue may
	// be resolved.
	Resolution string `json:"resolution,omitempty"`

	// Status identifier that can be used to identify the
	// cause of the error.
	//
	// It s not the HTTP status code (eg 4xx ot 5xx)
	Status string `json:"status,omitempty"`

	// Technical information for the error.
	//
	// This must not contain sensitive information
	Technical string `json:"technical,omitempty"`
}

