The code is 0 4 2
Let the statements be A,B,C,D and E.
Now from Statements A,B,D we know that one of the digit is 2 and well placed(third place).
from statements C and E we know that another digit is 0 and its place is first in the code.
finally from statement B we now know that 4 is the remaining digit of the code and its place is second in the code.
Hence the code is 0 4 2