code: func writeError(w http.ResponseWriter, status int, err error) {
  	w.WriteHeader(status)
  	enc := json.NewEncoder(w)
  	resp := baseapitypes.Error{
  		Type: baseapitypes.InternalServerError,
  		Err:  []string{err.Error()},
  	}
  
  	enc.Encode(resp)
  }
docs: // writeError returns a bootstrapping error