code: def check_response (self):
          
          if self.url_connection.status_code >= 400:
              self.set_result(u"%d %s" % (self.url_connection.status_code, self.url_connection.reason),
                              valid=False)
          else:
              if self.url_connection.status_code == 204:
                  # no content
                  self.add_warning(self.url_connection.reason,
                                   tag=WARN_HTTP_EMPTY_CONTENT)
              if self.url_connection.status_code >= 200:
                  self.set_result(u"%r %s" % (self.url_connection.status_code, self.url_connection.reason))
              else:
                  self.set_result(_("OK"))
docs: Check final result and log it.