decodeResponse keeps data and errors together