- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 103 for StatusCode (0.51 sec)
-
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) -
src/net/http/filetransport_test.go
fooURLs := []string{"file:///foo.txt", "file://../foo.txt"} for _, urlstr := range fooURLs { res, err := c.Get(urlstr) check("Get "+urlstr, err) if res.StatusCode != 200 { t.Errorf("for %s, StatusCode = %d, want 200", urlstr, res.StatusCode) } if res.ContentLength != -1 { t.Errorf("for %s, ContentLength = %d, want -1", urlstr, res.ContentLength) } if res.Body == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 17:07:12 UTC 2023 - 2.6K bytes - Viewed (0) -
platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/HttpErrorStatusCodeException.java
private final int statusCode; public HttpErrorStatusCodeException(String method, String source, int statusCode, String reason) { super(String.format("Could not %s '%s'. Received status code %s from server: %s", method, source, statusCode, reason)); this.statusCode = statusCode; } public boolean isServerError() { return statusCode >= 500 && statusCode < 600; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 1.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/transport/NetworkingIssueVerifier.java
return isLikelyTransientNetworkingIssue(cause); } return false; } private static boolean isTransientClientError(int statusCode) { return statusCode == HttpStatus.SC_REQUEST_TIMEOUT || statusCode == SC_TOO_MANY_REQUESTS; } public static <E extends Throwable> boolean isLikelyPermanentNetworkIssue(E failure) { if (failure instanceof HttpErrorStatusCodeException) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3.5K bytes - Viewed (0) -
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) -
platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/HttpClientResponse.java
URI getEffectiveUri() { return effectiveUri; } boolean wasSuccessful() { int statusCode = getStatusLine().getStatusCode(); return statusCode >= 200 && statusCode < 400; } boolean wasMissing() { int statusCode = getStatusLine().getStatusCode(); return statusCode == 404; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 2.5K bytes - Viewed (0) -
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) -
staging/src/k8s.io/apimachinery/pkg/util/httpstream/httpstream_test.go
} if test.expectError { if err == nil { t.Errorf("%s: expected error but did not get one", name) } if w.statusCode == nil { t.Errorf("%s: expected w.statusCode to be set", name) } else if e, a := http.StatusForbidden, *w.statusCode; e != a { t.Errorf("%s: w.statusCode: expected %d, got %d", name, e, a) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 22:33:38 UTC 2023 - 4.5K bytes - Viewed (0) -
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) -
platforms/documentation/docs/src/snippets/publishing/javaLibrary/groovy/src/main/java/org/gradle/HttpClientWrapper.java
private int doGet(GetMethod method) throws Exception { int statusCode = client.executeMethod(method); if (statusCode != HttpStatus.SC_OK) { System.err.println("Method failed: " + method.getStatusLine()); } return statusCode; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.4K bytes - Viewed (0)