Needs to check for err.code !== 'nonJSON' here.