- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NewGenericServerResponse (0.27 sec)
-
staging/src/k8s.io/apiserver/pkg/registry/generic/rest/response_checker.go
case resp.StatusCode == http.StatusBadRequest: return errors.NewBadRequest(bodyText) case resp.StatusCode == http.StatusNotFound: return errors.NewGenericServerResponse(resp.StatusCode, "", checker.QualifiedResource, checker.Name, bodyText, 0, false) } return errors.NewGenericServerResponse(resp.StatusCode, "", checker.QualifiedResource, checker.Name, bodyText, 0, false) } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 03 06:33:43 UTC 2017 - 2.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/handler.go
} klog.Errorln(buffer.String()) headers := http.Header{} if ct := w.Header().Get("Content-Type"); len(ct) > 0 { headers.Set("Accept", ct) } responsewriters.ErrorNegotiated(apierrors.NewGenericServerResponse(http.StatusInternalServerError, "", schema.GroupResource{}, "", "", 0, false), s, schema.GroupVersion{}, w, &http.Request{Header: headers}) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jan 14 17:10:00 UTC 2023 - 8.3K bytes - Viewed (0) -
pkg/controller/clusterroleaggregation/clusterroleaggregation_controller_test.go
if serverSideApplyEnabled == false { // UnsupportedMediaType return true, nil, errors.NewGenericServerResponse(415, "get", action.GetResource().GroupResource(), "test", "Apply not supported", 0, true) } return true, nil, nil // clusterroleaggregator drops returned objects so no point in constructing them })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 9K bytes - Viewed (0)