code: def make_response(self, rv, status=200, headers=None, mime='application/json'):
          
          if not isinstance(rv, Response):
              resp = Response(
                  response=rv,
                  headers=headers,
                  mimetype=mime,
                  status=status
              )
          else:
              resp = rv
  
          return resp
docs: Create a response object using the :class:`flask.Response` class.
  
          :param rv: Response value.  If the value is not an instance
              of :class:`werkzeug.wrappers.Response` it will be converted
              into a Response object.
          :param status: specify the HTTP status code for this response.
          :param mime: Specify the mimetype for this request.
          :param headers: Specify dict of headers for the response.