anchor.diff:  			Req2 = cowboy_req:set_bindings(HostInfo, PathInfo, Bindings, Req),
   			handler_init(Req2, State, Handler, Opts);
   		{error, notfound, host} ->
  -			error_terminate(400, State);
  +			error_terminate(400, Req, State);
   		{error, badrequest, path} ->
  -			error_terminate(400, State);
  +			error_terminate(400, Req, State);
   		{error, notfound, path} ->
  -			error_terminate(404, State)
  +			error_terminate(404, Req, State)
   	end.
   
   -spec handler_init(cowboy_req:req(), #state{}, module(), any()) -> ok.
  
positive.code: 			[Handler, handle, 2, Class, Reason, HandlerState,
  				cowboy_req:to_list(Req), erlang:get_stacktrace()]),
  		handler_terminate(Req, Handler, HandlerState),
  		error_terminate(500, State)
  	end.
  
  %% We don't listen for Transport closes because that would force us
  
negative.code: 		{upgrade, protocol, Module, Req2, Opts2} ->
  			upgrade_protocol(Req2, State, Handler, Opts2, Module)
  	catch Class:Reason ->
  		error_terminate(500, Req, State),
  		error_logger:error_msg(
  			"** Cowboy handler ~p terminating in ~p/~p~n"
  			"   for the reason ~p:~p~n"
  