docs: def create_response(request, body=None, status=None, headers=None):
      # type: (BaseHttpRequest, Any, HTTPStatus, dict) -> HttpResponse
      """
      Generate a HttpResponse.
  
      :param request: Request object
      :param body: Body of the response
      :param status: HTTP status code
      :param headers: Any headers.
  
      """
      if body is None:
          return HttpResponse(None, status or HTTPStatus.NO_CONTENT, headers)
      else:
          body = request.response_codec.dumps(body)
          response = HttpResponse(body, status or HTTPStatus.OK, headers)
          response.set_content_type(request.response_codec.CONTENT_TYPE)
          return response