feat: common.types 모듈에서 사용할 스프링 독립 HttpStatus 타입 정의

This commit is contained in:
이상진 2025-09-27 20:46:59 +09:00
parent eada35f1ee
commit 5b3f2f929b

View File

@ -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
}
}