anchor.diff:        ?E_IRREG,
         flat_format("Invalid data found at row index(es) ~s", [BadRowsString])).
   
  +failed_put_response(ErrorCount) ->
  +    make_rpberrresp(
  +      ?E_PUT,
  +      flat_format("Failed to put ~b record(s)", [ErrorCount])).
  +
  +failed_delete_response(Reason) ->
  +    make_rpberrresp(
  +      ?E_DELETE,
  +      flat_format("Failed to delete record: ~p", [Reason])).
  +
  +failed_listkeys_response(Reason) ->
  +    make_rpberrresp(
  +      ?E_LISTKEYS,
  +      flat_format("Failed to list keys: ~p", [Reason])).
  +
  +table_create_fail_response(Table, Reason) ->
  +    make_rpberrresp(
  +      ?E_CREATE, flat_format("Failed to create table ~s: ~p", [Table, Reason])).
  +
  +table_activate_fail_response(Table) ->
  +    make_rpberrresp(
  +      ?E_ACTIVATE,
  +      flat_format("Failed to activate table ~s", [Table])).
  +
  +table_not_activated_response(Table, BadState) ->
  +    make_rpberrresp(
  +      ?E_TABLE_INACTIVE,
  +      flat_format("Table ~ts has not been activated (is in state '~s')", [Table, BadState])).
  +
  +table_created_missing_response(Table) ->
  +    make_rpberrresp(
  +      ?E_CREATED_GHOST,
  +      flat_format("Table ~s has been created but found missing", [Table])).
  +
   to_string(X) ->
       flat_format("~p", [X]).
   
  
positive.code:                             riak_kv_ts_util:table_to_bucket(Table)),
              {reply, missing_helper_module(Table, BucketProps), State};
          {error, {inappropriate_bucket_state, InappropriateState}} ->
              {reply, make_rpberrresp(
                        ?E_TABLE_INACTIVE,
                        flat_format("Table ~ts has not been activated (is in state '~s')",
                                    [Table, InappropriateState])),
               State}
      end.
  
  
negative.code:             {reply, {stream, ReqId}, State#state{req = Req, req_ctx = ReqId,
                                                   column_info = ColumnInfo}};
          {error, Reason} ->
              {reply, failed_listkeys_response(Reason), State}
      end.
  
  
  