Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 55 for StatusCode (0.09 seconds)

  1. src/main/java/org/codelibs/fess/exception/WebApiException.java

            super(message);
            this.statusCode = statusCode;
        }
    
        /**
         * Constructs a WebApiException with the specified status code and exception.
         *
         * @param statusCode The HTTP status code
         * @param e The exception that caused this WebApiException
         */
        public WebApiException(final int statusCode, final Exception e) {
            this(statusCode, e.getMessage(), e);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  2. cmd/object-lambda-handlers.go

    		tokenErr.Description = "The request token included in the request is invalid"
    		writeErrorResponse(ctx, w, tokenErr, r.URL)
    		return
    	}
    
    	statusCode := resp.StatusCode
    	if status := resp.Header.Get(xhttp.AmzFwdStatus); status != "" {
    		statusCode, err = strconv.Atoi(status)
    		if err != nil {
    			writeErrorResponse(ctx, w, APIError{
    				Code:           "LambdaFunctionStatusError",
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Jul 18 21:56:31 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/exception/WebApiExceptionTest.java

            for (int statusCode : statusCodes) {
                WebApiException exception = new WebApiException(statusCode, "Test message");
                assertEquals(statusCode, exception.getStatusCode());
            }
        }
    
        @Test
        public void test_statusCode_negativeValue() {
            // Test with negative status code
            int statusCode = -1;
            String message = "Invalid status";
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 9.5K bytes
    - Click Count (0)
  4. tests/test_starlette_exception.py

                headers={"X-Error": "Some custom header"},
            )
        return {"item": items[item_id]}
    
    
    @app.get("/http-no-body-statuscode-exception")
    async def no_body_status_code_exception():
        raise HTTPException(status_code=204)
    
    
    @app.get("/http-no-body-statuscode-with-detail-exception")
    async def no_body_status_code_with_detail_exception():
        raise HTTPException(status_code=204, detail="I should just disappear!")
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/it/admin/ElevateWordTests.java

                    .when()
                    .put(getApiPath() + "/upload");
    
            int statusCode = response.getStatusCode();
            assertTrue(statusCode == 200 || statusCode == 400, "Status code should be 200 or 400, but was " + statusCode);
    
            if (statusCode == 200) {
                JsonPath jsonPath = JsonPath.from(response.asString());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 4K bytes
    - Click Count (0)
  6. internal/s3select/json/errors.go

    type s3Error struct {
    	code       string
    	message    string
    	statusCode int
    	cause      error
    }
    
    func (err *s3Error) Cause() error {
    	return err.cause
    }
    
    func (err *s3Error) ErrorCode() string {
    	return err.code
    }
    
    func (err *s3Error) ErrorMessage() string {
    	return err.message
    }
    
    func (err *s3Error) HTTPStatusCode() int {
    	return err.statusCode
    }
    
    func (err *s3Error) Error() string {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.6K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/it/admin/BadWordTests.java

                    .when()
                    .put(getApiPath() + "/upload");
    
            int statusCode = response.getStatusCode();
            // Accept either 200 (success) or other status codes based on implementation
            assertTrue(statusCode == 200 || statusCode == 400, "Status code should be 200 or 400, but was " + statusCode);
    
            if (statusCode == 200) {
                JsonPath jsonPath = JsonPath.from(response.asString());
    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)
  8. src/test/java/org/codelibs/fess/it/search/PopularWordsApiTests.java

        @Test
        public void testPopularWords_ok() {
            given().contentType("application/json")
                    .when()
                    .get("/api/v1/popular-words")
                    .then()
                    .statusCode(200)
                    .body("record_count", greaterThanOrEqualTo(0))
                    .body("data", notNullValue());
        }
    
        @Test
        public void testPopularWords_withSeed() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  9. internal/s3select/errors.go

    type s3Error struct {
    	code       string
    	message    string
    	statusCode int
    	cause      error
    }
    
    func (err *s3Error) Cause() error {
    	return err.cause
    }
    
    func (err *s3Error) ErrorCode() string {
    	return err.code
    }
    
    func (err *s3Error) ErrorMessage() string {
    	return err.message
    }
    
    func (err *s3Error) HTTPStatusCode() int {
    	return err.statusCode
    }
    
    func (err *s3Error) Error() string {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Mar 14 16:48:36 GMT 2022
    - 4.3K bytes
    - Click Count (0)
  10. internal/logger/audit.go

    			delete(entry.RespHeader, filterKey)
    		}
    
    		var (
    			statusCode      int
    			timeToResponse  time.Duration
    			timeToFirstByte time.Duration
    			outputBytes     int64 = -1 // -1: unknown output bytes
    			headerBytes     int64
    		)
    
    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    		if ok {
    			statusCode = tc.ResponseRecorder.StatusCode
    			outputBytes = int64(tc.ResponseRecorder.Size())
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 4.6K bytes
    - Click Count (0)
Back to Top