code: func (h *Handler) handlePostClusterResizeAbort(w http.ResponseWriter, r *http.Request) {
  	if !validHeaderAcceptJSON(r.Header) {
  		http.Error(w, "JSON only acceptable response", http.StatusNotAcceptable)
  		return
  	}
  	err := h.api.ResizeAbort()
  	var msg string
  	if err != nil {
  		switch errors.Cause(err) {
  		case pilosa.ErrNodeNotCoordinator:
  			http.Error(w, err.Error(), http.StatusBadRequest)
  			return
  		case pilosa.ErrResizeNotRunning:
  			msg = err.Error()
  		default:
  			http.Error(w, err.Error(), http.StatusInternalServerError)
  			return
  		}
  	}
  	// Encode response.
  	if err := json.NewEncoder(w).Encode(clusterResizeAbortResponse{
  		Info: msg,
  	}); err != nil {
  		h.logger.Printf("response encoding error: %s", err)
  	}
  }
docs: // handlePostClusterResizeAbort handles POST /cluster/resize/abort request.