Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 400 errors ErrBadRequest = Error{ StatusCode: http.StatusBadRequest, Err: "The request was malformed or missing required parameters.", Type: gin.ErrorTypePublic, } StatusCode: http.StatusUnauthorized, Err: "Authentication token is missing or is invalid.", Type: gin.ErrorTypePublic, } ErrForbidden = Error{ StatusCode: http.StatusForbidden, Err: "Access Denied: You do not have permission to access this resource.", Type: gin.ErrorTypePublic, } ErrNotFound = Error{ StatusCode: http.StatusNotFound, Err: "Requested resource not found on the server.", Type: gin.ErrorTypePublic, } // 500 errors ErrInternalServerError = Error{ StatusCode: http.StatusInternalServerError, } )
Functions ¶
This section is empty.
Types ¶
type Error ¶
func (Error) WithDetails ¶
type ErrorResponse ¶
Click to show internal directories.
Click to hide internal directories.