public static String getRejectTips(PolarisRateLimitProperties polarisRateLimitProperties) {
		String tips = polarisRateLimitProperties.getRejectRequestTips();

		if (StringUtils.hasText(tips)) {
			return tips;
		}

		String rejectFilePath = polarisRateLimitProperties.getRejectRequestTipsFilePath();
		if (StringUtils.hasText(rejectFilePath)) {
			try {
				tips = ResourceFileUtils.readFile(rejectFilePath);
			}
			catch (Exception e) {
				LOG.error("[RateLimit] Read custom reject tips file error. path = {}",
						rejectFilePath, e);
			}
		}

		if (StringUtils.hasText(tips)) {
			return tips;
		}

		return RateLimitConstant.QUOTA_LIMITED_INFO;
	}
@Test
	public void testGetRejectTips() {
		PolarisRateLimitProperties polarisRateLimitProperties = new PolarisRateLimitProperties();

		// RejectRequestTips
		polarisRateLimitProperties.setRejectRequestTips("RejectRequestTips");
		assertThat(RateLimitUtils.getRejectTips(polarisRateLimitProperties)).isEqualTo("RejectRequestTips");

		// RejectRequestTipsFilePath
		polarisRateLimitProperties.setRejectRequestTips(null);
		polarisRateLimitProperties.setRejectRequestTipsFilePath("reject-tips.html");
		assertThat(RateLimitUtils.getRejectTips(polarisRateLimitProperties)).isEqualTo("RejectRequestTips");

		// RejectRequestTipsFilePath with Exception
		polarisRateLimitProperties.setRejectRequestTips(null);
		polarisRateLimitProperties.setRejectRequestTipsFilePath("exception.html");
		assertThat(RateLimitUtils.getRejectTips(polarisRateLimitProperties)).isEqualTo(QUOTA_LIMITED_INFO);
	}