mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-03 15:56:22 +00:00
⚡ implement user registration with email verification, enhance error handling, and update database configuration
This commit is contained in:
@ -24,6 +24,7 @@ func (e *ServiceError) Error() string {
|
||||
var (
|
||||
ErrNotFound = &ServiceError{Code: http.StatusNotFound, Message: "not found"}
|
||||
ErrInvalidCredentials = &ServiceError{Code: http.StatusUnauthorized, Message: "invalid credentials"}
|
||||
ErrConflict = &ServiceError{Code: http.StatusConflict, Message: "resource conflict"}
|
||||
ErrInternalServer = &ServiceError{Code: http.StatusInternalServerError, Message: "internal server error"}
|
||||
ErrBadRequest = &ServiceError{Code: http.StatusBadRequest, Message: "invalid request parameters"}
|
||||
ErrForbidden = &ServiceError{Code: http.StatusForbidden, Message: "access forbidden"}
|
||||
|
Reference in New Issue
Block a user