Add check for bad HTTP code and response time