Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidContentType = errors.New("Content-Type must be application/json")
)
Functions ¶
func EncodeError ¶
func EncodeError(w http.ResponseWriter, err error)
Types ¶
type Error ¶
type Error struct {
Status int `json:"-"`
Code string `json:"code,omitempty"`
Message string `json:"message"`
Details []ErrorDetail `json:"details,omitempty"`
}
type ErrorDetail ¶
Click to show internal directories.
Click to hide internal directories.