- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for StatusUnsupportedMediaType (0.46 sec)
-
src/net/http/status.go
StatusPreconditionFailed = 412 // RFC 9110, 15.5.13 StatusRequestEntityTooLarge = 413 // RFC 9110, 15.5.14 StatusRequestURITooLong = 414 // RFC 9110, 15.5.15 StatusUnsupportedMediaType = 415 // RFC 9110, 15.5.16 StatusRequestedRangeNotSatisfiable = 416 // RFC 9110, 15.5.17 StatusExpectationFailed = 417 // RFC 9110, 15.5.18
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 10 23:30:35 UTC 2022 - 7.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/negotiation/errors.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 18:03:59 UTC 2019 - 3.1K bytes - Viewed (0) -
pkg/webhooks/validation/server/server.go
// verify the content type is accurate contentType := r.Header.Get("Content-Type") if contentType != "application/json" { reportValidationHTTPError(http.StatusUnsupportedMediaType) http.Error(w, "invalid Content-Type, want `application/json`", http.StatusUnsupportedMediaType) return } var reviewResponse *kube.AdmissionResponse var obj runtime.Object var ar *kube.AdmissionReview
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat May 04 06:13:56 UTC 2024 - 9.3K bytes - Viewed (0) -
cmd/object-lambda-handlers.go
"Request Entity Too Large": http.StatusRequestEntityTooLarge, "Request URI Too Long": http.StatusRequestURITooLong, "Unsupported Media Type": http.StatusUnsupportedMediaType, "Requested Range Not Satisfiable": http.StatusRequestedRangeNotSatisfiable, "Expectation Failed": http.StatusExpectationFailed, "I'm a teapot": http.StatusTeapot,
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 10.2K bytes - Viewed (0) -
pkg/webhooks/validation/server/server_test.go
}, { name: "wrong content-type", body: validReview, contentType: "application/yaml", wantAllowed: false, wantStatusCode: http.StatusUnsupportedMediaType, }, { name: "bad content", body: []byte{0, 1, 2, 3, 4, 5}, // random data contentType: "application/json", wantAllowed: false,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 01 01:34:15 UTC 2023 - 9.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go
if len(serverMessage) == 0 || serverMessage == "unknown" { message = "the server was unable to respond with a content type that the client supports" } else { message = serverMessage } case http.StatusUnsupportedMediaType: reason = metav1.StatusReasonUnsupportedMediaType // the server message has details about what types are acceptable message = serverMessage case http.StatusMethodNotAllowed:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 21 03:41:32 UTC 2022 - 30.5K bytes - Viewed (0) -
pkg/kube/inject/webhook_test.go
}, { name: "wrong content-type", body: validReview, contentType: "application/yaml", wantAllowed: false, wantStatusCode: http.StatusUnsupportedMediaType, }, { name: "bad content", body: []byte{0, 1, 2, 3, 4, 5}, // random data contentType: "application/json", wantAllowed: false,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 17 20:25:52 UTC 2023 - 39K bytes - Viewed (1) -
pkg/kube/inject/webhook.go
if contentType != "application/json" { handleError(fmt.Sprintf("contentType=%s, expect application/json", contentType)) http.Error(w, "invalid Content-Type, want `application/json`", http.StatusUnsupportedMediaType) return } path := "" if r.URL != nil { path = r.URL.Path } var reviewResponse *kube.AdmissionResponse var obj runtime.Object var ar *kube.AdmissionReview
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 17:59:39 UTC 2024 - 42.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/installer.go
// Create Routes for the actions. // TODO: Add status documentation using Returns() // Errors (see api/errors/errors.go as well as go-restful router): // http.StatusNotFound, http.StatusMethodNotAllowed, // http.StatusUnsupportedMediaType, http.StatusNotAcceptable, // http.StatusBadRequest, http.StatusUnauthorized, http.StatusForbidden, // http.StatusRequestTimeout, http.StatusConflict, http.StatusPreconditionFailed,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 18:15:22 UTC 2024 - 51.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"StatusTooEarly", Const, 12}, {"StatusTooManyRequests", Const, 6}, {"StatusUnauthorized", Const, 0}, {"StatusUnavailableForLegalReasons", Const, 6}, {"StatusUnprocessableEntity", Const, 7}, {"StatusUnsupportedMediaType", Const, 0}, {"StatusUpgradeRequired", Const, 7}, {"StatusUseProxy", Const, 0}, {"StatusVariantAlsoNegotiates", Const, 7}, {"StripPrefix", Func, 0}, {"TimeFormat", Const, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)