code: func errSerializationFatal(err error, codec runtime.Encoder, w httpResponseWriterWithInit) {
  	utilruntime.HandleError(fmt.Errorf("apiserver was unable to write a JSON response: %v", err))
  	status := ErrorToAPIStatus(err)
  	candidateStatusCode := int(status.Code)
  	// If original statusCode was not successful, we need to return the original error.
  	// We cannot hide it behind serialization problems
  	if w.statusCode >= http.StatusOK && w.statusCode < http.StatusBadRequest {
  		w.statusCode = candidateStatusCode
  	}
  	output, err := runtime.Encode(codec, status)
  	if err != nil {
  		w.mediaType = "text/plain"
  		output = []byte(fmt.Sprintf("%s: %s", status.Reason, status.Message))
  	}
  	w.Write(output)
  }
docs: // errSerializationFatal renders an error to the response, and if codec fails will render plaintext.
  // Returns the HTTP status code of the error.