// ErrorsPayload is a serializer struct for representing a valid JSON API errors payload.
typeErrorsPayloadstruct{
Errors[]*ErrorObject`json:"errors"`
}
// ErrorObject is an `Error` implementation as well as an implementation of the JSON API error object.
//
// The main idea behind this struct is that you can use it directly in your code as an error type
// and pass it directly to `MarshalErrors` to get a valid JSON API errors payload.
// For more information on Golang errors, see: https://golang.org/pkg/errors/
// For more information on the JSON API spec's error objects, see: http://jsonapi.org/format/#error-objects
typeErrorObjectstruct{
// ID is a unique identifier for this particular occurrence of a problem.
IDstring`json:"id,omitempty"`
// Title is a short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
Titlestring`json:"title,omitempty"`
// Detail is a human-readable explanation specific to this occurrence of the problem. Like title, this field’s value can be localized.
Detailstring`json:"detail,omitempty"`
// Status is the HTTP status code applicable to this problem, expressed as a string value.
Statusstring`json:"status,omitempty"`
// Code is an application-specific error code, expressed as a string value.
Codestring`json:"code,omitempty"`
// Meta is an object containing non-standard meta-information about the error.