anchor.diff:          {ok, _} -> Response;
           Err->
               error_logger:error_msg("api: handle ~p error: ~p~n", [Cmd, Err]),
  -            {ok, R} = cowboy_http_req:reply(500, [], Response, Req),
  -            {ok, R}
  +            cowboy_http_req:reply(500, [], Response, Req)
       end,
       ets:delete(Ets, {Package, Branch}),
       {ok, Response, State};
  
positive.code: 
  
  
  terminate(_Req, State) ->
      ok.
  
negative.code:         end,
          AtomCmd = binary_to_atom(<<Cmd/binary, "_package">>, latin1),
          Msg = {AtomCmd, {binary_to_list(Package), binary_to_list(Branch)}},
          case catch caterpillar_event:sync_event(Msg) of
              {ok, _Pid} -> 
                  {ok, Req2} = cowboy_http_req:reply(200, [], <<"ok">>, Req),
                  {ok, Req2};
  