-
Notifications
You must be signed in to change notification settings - Fork 2
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
84ca4c9
commit d0d881a
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
...rastructure/src/main/kotlin/team/comit/simtong/global/security/error/SecurityErrorCode.kt
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package team.comit.simtong.global.security.error | ||
|
||
import org.springframework.http.HttpStatus | ||
import team.comit.simtong.global.error.ErrorProperty | ||
|
||
/** | ||
* | ||
* Security와 관련해 발생하는 ErrorCode를 관리하는 SecurityErrorCode | ||
* | ||
* @author kimbeomjin | ||
* @date 2022/08/31 | ||
* @version 1.0.0 | ||
**/ | ||
enum class SecurityErrorCode( | ||
private val status: HttpStatus, | ||
private val message: String | ||
) : ErrorProperty { | ||
|
||
INVALID_TOKEN(HttpStatus.UNAUTHORIZED, "유효하지 않은 토큰"); | ||
|
||
override fun status(): Int = status.value() | ||
override fun message(): String = message | ||
} |