Set flash[:error] from response