Check error first so we don't assume we have resp