[RestClient::ResourceNotFound]: 404 Resource Not Found foreman

I got given below error when I try to import Classes from puppet-master
using foreman,Error looks like:

This can depend on context (the proxy may return a 404 because some entry
isn't found), but may mean that a feature that's expected to be available
on the proxy (e.g. Puppet, DNS) isn't actually enabled in the config file
or running instance.

Let me know How could be resolve this issue.