anchor.diff:      {[{<<"error">>, [iolist_to_binary(["Field '", FieldName, "' invalid"])]}]};
   malformed_request_message({missing, FieldName}, _Req, _State) ->
       {[{<<"error">>, [iolist_to_binary(["Field '", FieldName, "' missing"])]}]};
  +malformed_request_message({both_missing, Field1, Field2}, _Req, _State) ->
  +    {[{<<"error">>, [iolist_to_binary(["Both fields '", Field1, "' and '", Field2,
  +				       "' are missing, at least one must be passed"])]}]};
  +malformed_request_message({client_name_mismatch}, _Req, _State) ->
  +    {[{<<"error">>, [<<"name and clientname must match">>]}]};
  +malformed_request_message({bad_client_name, Name, Pattern}, _Req, _State) ->
  +    {[{<<"error">>, [iolist_to_binary(["Invalid cookbook name '", Name,
  +				       "' using regex: '", Pattern, "'."])]}]};
   
   %% Not sure if we want to be this specific, or just want to fold this into an 'invalid JSON'
   %% case.  At any rate, here it is.
  
positive.code:                 auth_skew = ?gv(auth_skew, InitParams),
                  db_type = ?gv(db_type, InitParams),
                  resource_mod = ResourceMod}.
  
  validate_request(_Verb, Req, State) ->
      {Req, State}.
  
  auth_info(Req, State) ->
      {not_found, Req, State}.
  
  %% @doc Determines if service is available.
  %%
  
negative.code:             Msg = iolist_to_binary([<<"organization '">>, Org, <<"' does not exist.">>]),
              Req2 = wrq:set_resp_body(ejson:encode({[{<<"error">>, [Msg]}]}), Req),
              {{halt, 404}, Req2, State1#base_state{log_msg = org_not_found}};
          throw:bad_clock ->
              Msg1 = malformed_request_message(bad_clock, Req, State),
              Req2 = wrq:set_resp_body(ejson:encode(Msg1), Req),
              {{halt, 401}, Req2, State1#base_state{log_msg = bad_clock}};
                  throw:bad_headers ->
              Msg1 = malformed_request_message(bad_headers, Req, State),
              Req3 = wrq:set_resp_body(ejson:encode(Msg1), Req),
              {{halt, 401}, Req3, State1#base_state{log_msg = bad_headers}};
          throw:bad_sign_desc ->
              Msg1 = malformed_request_message(bad_sign_desc, Req, State),
              Req3 = wrq:set_resp_body(ejson:encode(Msg1), Req),
              {{halt, 400}, Req3, State1#base_state{log_msg = bad_sign_desc}};
          throw:{too_big, Msg} ->
              error_logger:info_msg("json too large (~p)", [Msg]),
              Req3 = wrq:set_resp_body(ejson:encode({[{<<"error">>, Msg}]}), Req),
              {{halt, 413}, Req3, State1#base_state{log_msg = too_big}};
          throw:Why ->
              Msg = malformed_request_message(Why, Req, State),
              NewReq = wrq:set_resp_body(ejson:encode(Msg), Req),
  