Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Success = New(http.StatusOK, 0, "success") ErrInternalServer = New(http.StatusInternalServerError, 10001, "internal server error") ErrInvalidParams = New(http.StatusBadRequest, 10002, "invalid parameters") ErrNotFound = New(http.StatusNotFound, 10004, "resource not found") ErrMethodNotAllowed = New(http.StatusMethodNotAllowed, 10005, "method not allowed") ErrTooManyRequests = New(http.StatusTooManyRequests, 10006, "too many requests") // Auth Errors ErrUserNotFound = New(http.StatusNotFound, 20001, "user not found") ErrPasswordIncorrect = New(http.StatusUnauthorized, 20002, "password incorrect") ErrTokenInvalid = New(http.StatusUnauthorized, 20003, "token invalid") ErrTokenExpired = New(http.StatusUnauthorized, 20004, "token expired") ErrUserAlreadyExists = New(409, 20409, "User already exists") ErrInvalidCredentials = New(401, 20401, "Invalid credentials") ErrMFARequired = New(403, 20403, "MFA required") ErrPasswordExpired = New(403, 20404, "Password expired") ErrForbidden = New(http.StatusForbidden, 10007, "forbidden") )
Common Errors
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.