Audit changes.
This commit is contained in:
@@ -15,9 +15,12 @@ func (e *Error) Error() string {
|
||||
}
|
||||
|
||||
var (
|
||||
ErrUnexpected = Internal.WithMsg("Unexpected internal error.")
|
||||
ErrNotFound = NotFound.WithMsg("Not found.")
|
||||
ErrAlreadyExists = Conflict.WithMsg("Already exists.")
|
||||
ErrNotAuthorized = NotAuthorized.WithMsg("Not authorized.")
|
||||
ErrInvalidPassword = BadRequest.WithMsg("Invalid password.")
|
||||
ErrPasswordMismatch = BadRequest.WithMsg("Passwords don't match.")
|
||||
ErrUnexpected = Internal.WithMsg("Unexpected internal error.")
|
||||
ErrNotFound = NotFound.WithMsg("Not found.")
|
||||
ErrAlreadyExists = Conflict.WithMsg("Already exists.")
|
||||
|
||||
// Validation errors.
|
||||
ErrInvalidIP = BadRequest.WithMsg("Invalid IP.")
|
||||
|
||||
Reference in New Issue
Block a user