rest type errors