-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b8e813
commit f4a418a
Showing
1 changed file
with
4 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,22 +4,19 @@ | |
|
||
public enum ErrorCode { | ||
|
||
USER_NOT_FOUND(HttpStatus.BAD_REQUEST, "user is not found"), | ||
|
||
EMAIL_DUPLICATION(HttpStatus.CONFLICT, "Duplicated email exists."), | ||
USERNAME_DUPLICATION(HttpStatus.CONFLICT, "Duplicated username exists."), | ||
|
||
USER_NOT_FOUND(HttpStatus.BAD_REQUEST, "user is not found"), | ||
PASSWORD_DISMATCH(HttpStatus.FORBIDDEN, "password is dismatch."), | ||
|
||
INVALID_USERNAME_NULL(HttpStatus.BAD_REQUEST, "username must be provided."), | ||
INVALID_USERNAME_LENGTH(HttpStatus.BAD_REQUEST, "username length must be less then 20 characters."), | ||
INVALID_USERNAME_PATTERN(HttpStatus.BAD_REQUEST, "usernmae must be provided by limited pattern."), | ||
|
||
INVALID_EMAIL_NULL(HttpStatus.BAD_REQUEST, "address must be provided."), | ||
INVALID_EMAIL_PATTERN(HttpStatus.BAD_REQUEST, "address must be provided by limited pattern like '[email protected]'."), | ||
|
||
INVALID_PASSWORD_NULL(HttpStatus.BAD_REQUEST, "password must be provided."), | ||
INVALID_PASSWORD_LENGTH(HttpStatus.BAD_REQUEST, "password length must be between 6 and 20 characters."), | ||
|
||
PASSWORD_DISMATCH(HttpStatus.FORBIDDEN, "password is dismatch.") | ||
INVALID_PASSWORD_LENGTH(HttpStatus.BAD_REQUEST, "password length must be between 6 and 20 characters.") | ||
; | ||
|
||
private final HttpStatus httpStatus; | ||
|