def METHOD_NAME(self, code=None, size=None):
    if isinstance(code, HTTPStatus):
        code = code.value
    body = self.body = self.requestBody()
    if body:
        body = self.body[0:min(1000, len(body))]
    self.log_message('"%s" %s %s%s',
                     self.requestline, str(code), "({} bytes)".format(size) if size else '', body)