Different Errors in TS-0004 when resource is not accessible
In TS-0004, in _softwareCampaign _resource, when the resource is not accessible, the following error is mentioned: 4) The Receiver shall check the accessibility of the resources referenced by the softwareTargets attribute. If the Originator does not have privileges to create [software] specialization child resources for any of the referenced resources, then the Receiver shall return a response primitive with a Response Status Code indicating an “ORIGINATOR_HAS_NO_PRIVILEGE” error.
while in action resource, when the resource is not accessible, the following error is mentioned: 1) The Receiver shall check the existence and accessibility of the resource defined in the referencedResourceID attribute. If the resource does not exist or is not accessible by the Originator, then the Receiver shall return a response primitive with a Response Status Code indicating "BAD_REQUEST" error.
So when <node> resource in softwareTargets attribute is not accessible then the error is "ORIGINATOR_HAS_NO_PRIVILEGE" while in action resource when referenced resources are not accessible then the error is "BAD_REQUEST" error.
It was discussed during TDE meeting, BAD_REQUEST error seems incorrect for the resource as it's not the error in the format etc.. So both errors look incorrect, a proper error needs to be set.