fix null deref and don't special case 413 when ignoring errors