[CB-2213] Updated errors for write and truncate.