From 5b3f2f929bf2a401510b4e6813379e6fc9bfc819 Mon Sep 17 00:00:00 2001 From: pricelees Date: Sat, 27 Sep 2025 20:46:59 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20common.types=20=EB=AA=A8=EB=93=88?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EC=82=AC=EC=9A=A9=ED=95=A0=20=EC=8A=A4?= =?UTF-8?q?=ED=94=84=EB=A7=81=20=EB=8F=85=EB=A6=BD=20HttpStatus=20?= =?UTF-8?q?=ED=83=80=EC=9E=85=20=EC=A0=95=EC=9D=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sangdol/common/types/web/HttpStatus.kt | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 common/types/src/main/kotlin/com/sangdol/common/types/web/HttpStatus.kt 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 + } +}