Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for 429 (0.1 seconds)

  1. src/main/java/org/codelibs/fess/filter/LoadControlFilter.java

            }
            return false;
        }
    
        /**
         * Sends a 429 JSON response for API requests.
         * @param response the HTTP response
         * @throws IOException if an I/O error occurs
         */
        protected void sendApiResponse(final HttpServletResponse response) throws IOException {
            response.setStatus(429);
            response.setContentType("application/json;charset=UTF-8");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Tue Feb 10 04:24:02 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/filter/LoadControlFilterTest.java

            mockRequest.setRequestURI("/search");
    
            testableFilter.doFilter(mockRequest, mockResponse, mockFilterChain);
    
            assertFalse(mockFilterChain.wasDoFilterCalled());
            assertEquals(429, mockResponse.getSendErrorCode());
        }
    
        @Test
        public void test_doFilter_webAtThreshold() throws IOException, ServletException {
            setConfig(80, 100);
            testableFilter.setCpuPercent((short) 80);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 33.6K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/filter/RateLimitFilter.java

        }
    
        /**
         * Send a 429 Too Many Requests response.
         * @param response the HTTP response
         * @param retryAfterSeconds the Retry-After header value
         * @throws IOException if an I/O error occurs
         */
        protected void sendRateLimitResponse(final HttpServletResponse response, final int retryAfterSeconds) throws IOException {
            response.setStatus(429); // Too Many Requests
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Dec 24 14:16:27 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/app/web/error/ErrorBusyAction.java

    package org.codelibs.fess.app.web.error;
    
    import org.codelibs.fess.app.web.base.FessSearchAction;
    import org.lastaflute.web.Execute;
    import org.lastaflute.web.response.HtmlResponse;
    
    /**
     * Action class for handling HTTP 429 Too Many Requests error pages.
     * This action displays error pages when the server is under high load.
     */
    public class ErrorBusyAction extends FessSearchAction {
    
        /**
         * Default constructor for ErrorBusyAction.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Tue Feb 10 04:24:02 GMT 2026
    - 1.4K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/llm/LlmException.java

     *
     * @author FessProject
     */
    public class LlmException extends FessSystemException {
    
        private static final long serialVersionUID = 1L;
    
        /** Error code for rate limit (HTTP 429). */
        public static final String ERROR_RATE_LIMIT = "rate_limit";
    
        /** Error code for authentication failure (HTTP 401/403). */
        public static final String ERROR_AUTH = "auth_error";
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 07 01:53:06 GMT 2026
    - 3.5K bytes
    - Click Count (0)
  6. src/main/webapp/WEB-INF/web.xml

      </error-page>
      <error-page>
        <error-code>408</error-code>
        <location>/WEB-INF/view/error/redirect.jsp?type=logOut</location>
      </error-page>
      <error-page>
        <error-code>429</error-code>
        <location>/WEB-INF/view/error/redirect.jsp?type=busy</location>
      </error-page>
      <error-page>
        <error-code>500</error-code>
        <location>/WEB-INF/view/error/redirect.jsp?type=systemError</location>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 09:08:35 GMT 2026
    - 8.5K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java

         *
         * @param statusCode the HTTP status code
         * @return the corresponding error code
         */
        protected String resolveErrorCode(final int statusCode) {
            if (statusCode == 429) {
                return LlmException.ERROR_RATE_LIMIT;
            }
            if (statusCode == 401 || statusCode == 403) {
                return LlmException.ERROR_AUTH;
            }
            if (statusCode == 404) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 72K bytes
    - Click Count (0)
  8. src/main/resources/fess_config.properties

    max.log.output.length=4000
    # Adaptive load control value.
    adaptive.load.control=50
    # CPU threshold (%) for web request load control. Returns 429 when CPU >= this value. (100: disabled)
    web.load.control=100
    # CPU threshold (%) for API request load control. Returns 429 when CPU >= this value. (100: disabled)
    api.load.control=100
    # Interval (seconds) for monitoring OpenSearch CPU load.
    load.control.monitor.interval=1
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 59.3K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/mylasta/direction/FessConfig.java

        /**
         * Get the value for the key 'web.load.control'. <br>
         * The value is, e.g. 100 <br>
         * comment: CPU threshold (%) for web request load control. Returns 429 when CPU &gt;= this value. (100: disabled)
         * @return The value of found property. (NotNull: if not found, exception but basically no way)
         */
        String getWebLoadControl();
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 576.9K bytes
    - Click Count (2)
Back to Top