Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DataNotFound = ApiError{ StatusCode: http.StatusNotFound, // contains filtered or unexported fields }
View Source
var Forbidden = ApiError{ StatusCode: http.StatusForbidden, // contains filtered or unexported fields }
View Source
var NotFound = ApiError{ StatusCode: http.StatusNotFound, // contains filtered or unexported fields }
View Source
var ServerError = ApiError{ StatusCode: http.StatusInternalServerError, // contains filtered or unexported fields }
Functions ¶
This section is empty.
Types ¶
type ApiError ¶
type ApiError struct { StatusCode int // contains filtered or unexported fields }
func NewGeneric ¶
func (ApiError) HTTPStatus ¶
Click to show internal directories.
Click to hide internal directories.