When you try to perform a hard reset of the Motorola device you may get the following message error message:
Device is LOCKED. Status Code: 0
This error usually occured when you press POWER + VOLUME DOWN key.
So why are you getting this message and what can you do about it? Some people said that they are getting this message due to the fact that they have rooted their phone. Anyhow here is the things that you could do to try to solve the issue.
Flash your Android phone with a new rom file.
You will need to download a ROM file and then flash the new ROM file onto your phone. Read this article if you don't know how to install the ROM.