Depends, what’s the error code, (usually flashing leds)
Document the flash pattern and check the HP site for meaning. I had similar
issue with my HP earlier this year, the flash code showed motherboard
replacement was required., since it wasn’t under warranty and The Hackery had
no luck getting it working, I got a different refurbed HP machine.