Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct { Err error `json:"-"` Description string `json:"description"` Cause string `json:"cause"` Status int `json:"status"` }
APIError is the JSON body to show on a failed response.
func NewBadRequestError ¶
NewBadRequestError creates a new APIError for invalid input.
func NewInternalServerError ¶
NewInternalServerError creates a new APIError for internal errors.
func NewNotFoundError ¶
func NewNotFoundError() *APIError
NewNotFoundError creates a new APIError for resource not found.
Click to show internal directories.
Click to hide internal directories.