throw error when 404 occurs, distinguish non-module by 'non'