diff --git a/backend/internal/utils/error.go b/backend/internal/utils/http_result.go similarity index 92% rename from backend/internal/utils/error.go rename to backend/internal/utils/http_result.go index bfbb9af..b0c986f 100644 --- a/backend/internal/utils/error.go +++ b/backend/internal/utils/http_result.go @@ -8,8 +8,7 @@ import ( ) func HTTPErrorHandler(c echo.Context, err error, options ...HTTPBaseResponseProps) error { - statusCode := http.StatusInternalServerError - return HTTPBaseHandler(c, WithMessage(err.Error()), WithCode(statusCode)) + return HTTPBaseHandler(c, WithMessage(err.Error()), WithCode(http.StatusBadRequest)) } type HTTPBaseResponse struct {