disable UDP and simplify response code checking logic