code: def is_no_body(request, response, no_content_codes=DEFAULT_NO_CONTENT_CODES):
      '''Return whether a content body is not expected.'''
      if 'Content-Length' not in response.fields \
              and 'Transfer-Encoding' not in response.fields \
              and (
                  response.status_code in no_content_codes
                  or request.method.upper() == 'HEAD'
              ):
          return True
      else:
          return Falsf is_no_body(request, response, no_content_codes=DEFAULT_NO_CONTENT_CODES):
      '''Return whether a content body is not expected.'''
      if 'Content-Length' not in response.fields \
              and 'Transfer-Encoding' not in response.fields \
              and (
                  response.status_code in no_content_codes
                  or request.method.upper() == 'HEAD'
              ):
          return True
      else:
          return False
docs: Return whether a content body is not expected.