Make XAN decoder return meaningful error codes.