generated from pricelees/issue-pr-template
feat: common.types 모듈에서 사용할 스프링 독립 HttpStatus 타입 정의
This commit is contained in:
parent
eada35f1ee
commit
5b3f2f929b
@ -0,0 +1,20 @@
|
||||
package com.sangdol.common.types.web
|
||||
|
||||
enum class HttpStatus(
|
||||
val code: Int
|
||||
) {
|
||||
OK(200),
|
||||
CREATED(201),
|
||||
NO_CONTENT(204),
|
||||
BAD_REQUEST(400),
|
||||
UNAUTHORIZED(401),
|
||||
FORBIDDEN(403),
|
||||
NOT_FOUND(404),
|
||||
CONFLICT(409),
|
||||
INTERNAL_SERVER_ERROR(500)
|
||||
;
|
||||
|
||||
fun value(): Int {
|
||||
return code
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user