Decoding returns success code
Encoding and decoding work