Skip to content

Commit

Permalink
add: (#9) SecurityErrorCode
Browse files Browse the repository at this point in the history
  • Loading branch information
softpeanut committed Aug 31, 2022
1 parent 84ca4c9 commit d0d881a
Showing 1 changed file with 23 additions and 0 deletions.
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
}

0 comments on commit d0d881a

Please sign in to comment.