// NewBadRequestError New Bad Request Error
NewBadRequestError New Bad Request Error
// NewBadRequestError New Bad Request Error
func NewBadRequestError(ctx echo.Context, causes interface{}, debug bool) error {
	restError := RestError{
		ErrStatus: http.StatusBadRequest,
		ErrError:  BadRequest.Error(),
		Timestamp: time.Now().UTC(),
	}
	if debug {
		restError.ErrMessage = causes
	}
	return ctx.JSON(http.StatusBadRequest, restError)
}
func NewBadRequestError ( ctx echo . Context , causes interface { } , debug bool ) error { restError := RestError { ErrStatus : http . StatusBadRequest , ErrError : BadRequest . Error ( ) , Timestamp : time . Now ( ) . UTC ( ) , } if debug { restError . ErrMessage = causes } return ctx . JSON ( http . StatusBadRequest , restError ) }
NewBadRequestError New Bad Request Error
NewBadRequestError New Bad Request Error