anchor.diff:                  {Code, Text} ->
                       reply_text(Req, Text, Code)
               end;
  -        error ->
  -            ok
  +        {error, ErrorMsg} ->
  +            reply_text(Req, ErrorMsg, 400)
       end.
   
   handle_rebalance(Req) ->
  
positive.code:     Node = (catch list_to_existing_atom(NodeArg)),
      case Node of
          undefined ->
              reply_text(Req, "No server specified.", 400),
              error;
          _ when not is_atom(Node) ->
              reply_text(Req, "Unknown server given.", 400),
              error;
          _ ->
              {ok, Node}
      end.
  
negative.code:                 in_recovery ->
                      reply_text(Req, "Cluster is in recovery mode.", 503)
              end;
          {error, ErrorMsg} ->
              reply_text(Req, ErrorMsg, 400)
      end.
  
  handle_start_graceful_failover(Req) ->
  