UnMarshal return error code