Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidID = &HTTPError{ Err: errors.New("invalid ID"), StatusCode: http.StatusBadRequest, Code: "INVALID_ID", } ErrNotAuthenticated = &HTTPError{ Err: errors.New("not authenticated"), StatusCode: http.StatusUnauthorized, Code: "NOT_AUTHENTICATED", } )
Functions ¶
This section is empty.
Types ¶
type HTTPError ¶
HTTPError represents an error with HTTP status and application code.
func NewValidationErrorf ¶
NewValidationErrorf creates an HTTPError with code VALIDATION_ERROR for dynamic validation messages.
func (*HTTPError) HTTPStatus ¶
Click to show internal directories.
Click to hide internal directories.