Can't we check against the status code on the response? I don't like grepping error strings unless we have to.