The error message is persistent, then, and keeps the printer from doing anything else.
That is, I am sorry to say, not a very favorable sign.
How old is your printer?
Try unplugging it for several hours or overnight. Sometimes this may relieve the problem.
While it is unplugged, also look inside the printer for foreign objects, loose parts, or anything unusual. (Let me know what you find if you see anything. As for extraneous objects, remove them, of course.)
A general error message like that, may well mean the printer is simply 'broken', but the above may be tried, before deciding whether the printer is worth repair costs and time.
(Be it noted, that HP's return/recycling/re-use/buyback options, for disposing of printers, are very favorable and advantageous. Let me know if you need to hear more about them and how to make use of them.)