def METHOD_NAME(service_allowed_endpoint):
    """Check correct headers for every endpoint."""
    methods, request, svc_client = service_allowed_endpoint
    method = request["allowed_method"]
    client_method = methods.pop(method)
    response = client_method(request["url"], headers=request["headers"])
    assert_rpc_response(response, "error")
    assert UserAnonymousError.code == response.json["error"]["code"]