Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrorNotFound indicates the given resource was not found. ErrorNotFound = "NotFound" //ErrorForbidden indicates the given resource was not accessible by the user making the request. ErrorForbidden = "Forbidden" // ErrorInternalServerError indicates a server side error occured. ErrorInternalServerError = "InternalServerError" )
Error categories.
Variables ¶
This section is empty.
Functions ¶
func ClassifyError ¶
ClassifyError takes an error and tries to bucket it into one of the error categories.
Types ¶
type ReadRequest ¶
type ReadRequest struct {
IDs []string `json:"ids"`
}
ReadRequest is a request to read multiple IDs of a single resource type.
type ResponseError ¶
ResponseError captures information about an error for a specific resource.
func NewResponseError ¶
func NewResponseError(err error) *ResponseError
NewResponseError initializes a NewResponseError
Click to show internal directories.
Click to hide internal directories.