'Builds a response object.'

def __init__(self, obj, code=None, headers=None):

    self.obj = obj
    self._default_code = 200
    self._code = code
    self._headers = (headers or {})
    self.serializer = JSONDictSerializer()
