resp doesn't exist on an error