Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = &apiError{status: http.StatusNotFound, msg: "not found"} ErrBadRequest = &apiError{status: http.StatusBadRequest, msg: "bad request"} ErrInternalServerError = &apiError{status: http.StatusInternalServerError, msg: "internal server error"} )
Functions ¶
func HandleErrorJSON ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.