@fatimaezzah8117 here is what the service manual says about the 4 blink code
Power failure (power supply is overloaded).
OR
The incorrect external power supply adapter is being used on the USDT.
and here is what to check:
1. Open the hood and ensure the 4 or 6-wire power supply cable is seated into the connector on the system board.
2. Check if a device is causing the problem by removing ALL attached devices (such as hard, diskette, or optical drives, and expansion cards). Power on the system. If the system enters the POST, then power off and replace one device at a time and repeat this procedure until failure occurs. Replace the device that is causing the failure. Continue adding devices one at a time to ensure all devices are functioning properly.
3. Replace the power supply.
4. Replace the system board.
OR
The USDT power supply adapter must be at 135W and use the Smart ID technology before the system will power up. Replace the power supply adapter with the HP-supplied USDT power supply adapter.
Let us know what you find out and then we can try to fix your computer. Check the power supply first.
Here is the HP 8200 Elite Series Maintenance And Service Guide for your computer.