anchor.diff:                         %% modify and PUT it back
                          NewNode = ej:set({<<"name">>}, TheNode, <<" bad%#@Q#*name ">>),
                          NewNodeJson = ejson:encode(NewNode),
  -                       {ok, PutCode, _H2, _Body2} = chef_req:request(put, NodePath,
  +                       {ok, PutCode, _H2, Body2} = chef_req:request(put, NodePath,
                                                                       NewNodeJson, ReqConfig),
  +                       ?assertEqual(<<"{\"error\":[\"Field 'name' invalid\"]}">>, Body2),
                          ?assertEqual("400", PutCode)
                  end},
   	      {generator, 
  
positive.code:      {"POST of invalid JSON is a 400" ++ Label,
        fun() ->
                InvalidJson = <<"{not:json}">>,
                {ok, Code, _H, _Body} = chef_req:request(post, Path, InvalidJson, ReqConfig),
                ?assertEqual("400", Code)
        end},
       {"POST of a bad name is a 500" ++ Label,
  
negative.code:                        %% modify and PUT it back
                         NewNode = ej:set({<<"chef_environment">>}, TheNode, <<" bad%#@Q#*name ">>),
                         NewNodeJson = ejson:encode(NewNode),
                         {ok, PutCode, _H2, Body2} = chef_req:request(put, NodePath,
                                                                      NewNodeJson, ReqConfig),
                         ?assertEqual(<<"{\"error\":[\"Field 'chef_environment' invalid\"]}">>, Body2),
                         ?assertEqual("400", PutCode)
                 end}
               ]
  