diff --git a/common/types/src/main/kotlin/com/sangdol/common/types/web/HttpStatus.kt b/common/types/src/main/kotlin/com/sangdol/common/types/web/HttpStatus.kt new file mode 100644 index 00000000..387cfed8 --- /dev/null +++ b/common/types/src/main/kotlin/com/sangdol/common/types/web/HttpStatus.kt @@ -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 + } +}