Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound is an error associated with a 404 response ErrNotFound = &ApiError{http.StatusNotFound, "resource not found"} // ErrConflict is an error associated with a 409 response ErrConflict = &ApiError{http.StatusConflict, "duplicate resource id"} // ErrInternalServerError is an error associated with a 500 response ErrInternalServerError = &ApiError{http.StatusInternalServerError, "internal server error"} // ErrBadRequest returned when user submits an invalid request ErrBadRequest = &ApiError{http.StatusBadRequest, "bad request"} )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.