anchor.diff:              CBMapJson = chef_json:encode(JsonList),
               {true, wrq:append_to_response_body(CBMapJson, Req), State};
           {error, Msg} ->
  -            forbid(Req, State, Msg, {read, forbidden});
  +            forbid(Req, State, Msg, {forbidden, read});
           {timeout, Msg} ->
               server_error(Req, State, Msg, {timeout, cookbook_authz})
       end.
  
positive.code: handle_depsolver_results(ok, {error, {unreachable_package, Unreachable}}, Req, State) ->
      precondition_failed(Req, State,
                          not_reachable_message(Unreachable),
                          not_reachable_dep);
  handle_depsolver_results(ok, {ok, Cookbooks}, Req, #base_state{chef_db_context = DbContext,
                                                                 organization_name = OrgName} = State) ->
      %% TODO - helper function to deal with the call and match on a chef_cookbook version
  
negative.code: handle_depsolver_results(ok, {error, resolution_timeout}, Req, State) ->
      precondition_failed(Req, State,
                          timeout_message(),
                          {timeout, depsolver});
  handle_depsolver_results(ok, {error, no_depsolver_workers}, Req, State) ->
      wm_halt(503,
              Req,
              State,
              <<"Dependency solver overloaded. Try again later.">>,
              no_depsolver_workers);
  %% log the exception and return a 500
  handle_depsolver_results(ok, {error, exception, Message, Backtrace}, Req, State) ->
      error_logger:error_report([{module, ?MODULE},
                                 {error_type, depsolver_ruby_exception},
                                 {message, Message},
                                 {backtrace, Backtrace}]),
      server_error(Req, State, <<"Dependency solver exception.">>, depsolver_ruby_exception);
  handle_depsolver_results(ok, {error, invalid_constraints, Detail}, Req, State) ->
      precondition_failed(Req, State,
                          invalid_constraints_message(Detail),
  