Revert "Changed Some Error code."

This reverts commit 16198b64c8907418245633b1e0e46a2f1d76e00b.