Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for StatusCode (0.17 sec)

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

        private final int statusCode;
    
        public int getStatusCode() {
            return statusCode;
        }
    
        public WebApiException(final int statusCode, final String message, final Throwable cause) {
            super(message, cause);
            this.statusCode = statusCode;
        }
    
        public WebApiException(final int statusCode, final String message) {
            super(message);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. platforms/core-execution/build-cache-http/src/main/java/org/gradle/caching/http/internal/HttpBuildCacheService.java

            throw new BuildCacheException(e.getMessage(), e);
        }
    
        private boolean isHttpSuccess(int statusCode) {
            return statusCode >= 200 && statusCode < 300;
        }
    
        private boolean throwHttpStatusCodeException(int statusCode, String message) {
            if (FATAL_HTTP_ERROR_CODES.contains(statusCode)) {
                throw new UncheckedIOException(message);
            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 14:13:12 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. docs/de/docs/advanced/response-change-status-code.md

    # Response – Statuscode ändern
    
    Sie haben wahrscheinlich schon vorher gelesen, dass Sie einen Standard-[Response-Statuscode](../tutorial/response-status-code.md){.internal-link target=_blank} festlegen können.
    
    In manchen Fällen müssen Sie jedoch einen anderen als den Standard-Statuscode zurückgeben.
    
    ## Anwendungsfall
    
    Stellen Sie sich zum Beispiel vor, Sie möchten standardmäßig den HTTP-Statuscode „OK“ `200` zurückgeben.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:18:58 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. 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())
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/response-status-code.md

    # Response-Statuscode
    
    So wie ein Responsemodell, können Sie auch einen HTTP-Statuscode für die Response deklarieren, mithilfe des Parameters `status_code`, und zwar in jeder der *Pfadoperationen*:
    
    * `@app.get()`
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    * usw.
    
    ```Python hl_lines="6"
    {!../../../docs_src/response_status_code/tutorial001.py!}
    ```
    
    !!! note "Hinweis"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:32:57 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. tests/integration/pilot/multiplecontrolplanes/main_test.go

    				name       string
    				statusCode int
    				from       echo.Instances
    			}{
    				{
    					name:       "workloads in SE configured namespace can reach external service",
    					statusCode: http.StatusOK,
    					from:       apps.NS[1].A,
    				},
    				{
    					name:       "workloads in non-SE configured namespace, but same usergroup can reach external service",
    					statusCode: http.StatusOK,
    					from:       apps.NS[2].A,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 16:52:52 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/util/WebApiUtil.java

        }
    
        public static void setError(final int statusCode, final String message) {
            LaRequestUtil.getOptionalRequest().ifPresent(req -> req.setAttribute(WEB_API_EXCEPTION, new WebApiException(statusCode, message)));
        }
    
        public static void setError(final int statusCode, final Exception e) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpResource.groovy

            server.expectPut(getPath(), username, password, getFile())
        }
    
        void expectPut(Integer statusCode = 200, PasswordCredentials credentials = null) {
            server.expectPut(getPath(), getFile(), statusCode, credentials)
        }
    
        void expectPutBroken(Integer statusCode = 500) {
            server.expectPut(getPath(), getFile(), statusCode, null)
        }
    
        abstract TestFile getFile();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/additional-status-codes.md

    Es wird der Default-Statuscode oder derjenige verwendet, den Sie in Ihrer *Pfadoperation* festgelegt haben.
    
    ## Zusätzliche Statuscodes
    
    Wenn Sie neben dem Hauptstatuscode weitere Statuscodes zurückgeben möchten, können Sie dies tun, indem Sie direkt eine `Response` zurückgeben, wie etwa eine `JSONResponse`, und den zusätzlichen Statuscode direkt festlegen.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Jan 23 13:04:57 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. cmd/warm-backend-azure.go

    		// have StatusCode to help to convert to object errors.
    		return err
    	}
    
    	serviceCode := string(azureErr.ServiceCode())
    	statusCode := azureErr.Response().StatusCode
    
    	return azureCodesToObjectError(err, serviceCode, statusCode, bucket, object)
    }
    
    func azureCodesToObjectError(err error, serviceCode string, statusCode int, bucket string, object string) error {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Mar 05 16:44:08 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top