Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 97 for StatusCode (0.06 seconds)

  1. src/test/java/org/codelibs/curl/io/IOIntegrationTest.java

         */
        class HeadMockHttpURLConnection extends HttpURLConnection {
            private final int statusCode;
    
            HeadMockHttpURLConnection(URL u, int statusCode) {
                super(u);
                this.statusCode = statusCode;
                this.method = "HEAD";
            }
    
            @Override
            public void disconnect() {
            }
    
            @Override
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 12:00:34 GMT 2026
    - 44.1K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java

                });
            } catch (final WebApiException e) {
                final int statusCode = e.getStatusCode();
                String message;
                if (Constants.TRUE.equalsIgnoreCase(ComponentUtil.getFessConfig().getApiJsonResponseExceptionIncluded())) {
                    if (statusCode >= 400 && statusCode < 500) {
                        if (logger.isDebugEnabled()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:40 GMT 2026
    - 13.4K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/curl/CurlResponseTest.java

            assertNotNull(response);
        }
    
        @Test
        public void testHttpStatusCode() {
            CurlResponse response = new CurlResponse();
            int statusCode = 200;
    
            response.setHttpStatusCode(statusCode);
    
            assertEquals(statusCode, response.getHttpStatusCode());
        }
    
        @Test
        public void testEncoding() {
            CurlResponse response = new CurlResponse();
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 17.7K bytes
    - Click Count (0)
  4. cmd/tier.go

    		StatusCode: http.StatusBadRequest,
    	}
    
    	errTierBackendNotEmpty = AdminError{
    		Code:       "XMinioAdminTierBackendNotEmpty",
    		Message:    "Specified remote backend is not empty",
    		StatusCode: http.StatusBadRequest,
    	}
    
    	errTierInvalidConfig = AdminError{
    		Code:       "XMinioAdminTierInvalidConfig",
    		Message:    "Unable to setup remote tier, check tier configuration",
    		StatusCode: http.StatusBadRequest,
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  5. 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;
            }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 72K bytes
    - Click Count (0)
  6. cmd/admin-handler-utils.go

    	return nil, auth.Credentials{}
    }
    
    // AdminError - is a generic error for all admin APIs.
    type AdminError struct {
    	Code       string
    	Message    string
    	StatusCode int
    }
    
    func (ae AdminError) Error() string {
    	return ae.Message
    }
    
    func toAdminAPIErr(ctx context.Context, err error) APIError {
    	if err == nil {
    		return noError
    	}
    
    	var apiErr APIError
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Jul 03 07:17:20 GMT 2024
    - 8.4K bytes
    - Click Count (0)
  7. cmd/server_test.go

    func verifyError(c *check, response *http.Response, code, description string, statusCode int) {
    	c.Helper()
    	data, err := io.ReadAll(response.Body)
    	c.Assert(err, nil)
    	errorResponse := APIErrorResponse{}
    	err = xml.Unmarshal(data, &errorResponse)
    	c.Assert(err, nil)
    	c.Assert(errorResponse.Code, code)
    	c.Assert(errorResponse.Message, description)
    	c.Assert(response.StatusCode, statusCode)
    }
    
    func runAllTests(suite *TestSuiteCommon, c *check) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 118.1K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/api/WebApiManagerTest.java

            }
        }
    
        private static class StatusCodeWebApiManager implements WebApiManager {
            private final int statusCode;
    
            public StatusCodeWebApiManager(int statusCode) {
                this.statusCode = statusCode;
            }
    
            @Override
            public boolean matches(HttpServletRequest request) {
                return true;
            }
    
            @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 26.9K bytes
    - Click Count (0)
  9. internal/s3select/select_test.go

    }
    
    type testResponseWriter struct {
    	statusCode int
    	response   []byte
    }
    
    func (w *testResponseWriter) Header() http.Header {
    	return nil
    }
    
    func (w *testResponseWriter) Write(p []byte) (int, error) {
    	w.response = append(w.response, p...)
    	return len(p), nil
    }
    
    func (w *testResponseWriter) WriteHeader(statusCode int) {
    	w.statusCode = statusCode
    }
    
    func (w *testResponseWriter) Flush() {
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 76.1K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/it/search/LabelsApiTests.java

        }
    
        @Test
        public void testGetLabels_ok() {
            given().contentType("application/json")
                    .when()
                    .get("/api/v1/labels")
                    .then()
                    .statusCode(200)
                    .body("record_count", greaterThanOrEqualTo(0));
        }
    
        @Test
        public void testGetLabels_withTestLabel() {
            // Create a test label
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 4.1K bytes
    - Click Count (0)
Back to Top